aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/wpt/metadata/2dcontext/text-styles/2d.text.font.relative_size.html.ini4
-rw-r--r--tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini6
-rw-r--r--tests/wpt/metadata/MANIFEST.json865
-rw-r--r--tests/wpt/metadata/css/CSS2/floats/hit-test-floats-001.html.ini4
-rw-r--r--tests/wpt/metadata/css/css-backgrounds/parsing/background-image-computed.sub.html.ini10
-rw-r--r--tests/wpt/metadata/css/css-backgrounds/parsing/background-image-invalid.html.ini19
-rw-r--r--tests/wpt/metadata/css/css-fonts/crash-font-face-invalid-descriptor.html.ini4
-rw-r--r--tests/wpt/metadata/css/css-transitions/properties-value-001.html.ini21
-rw-r--r--tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini3
-rw-r--r--tests/wpt/metadata/css/css-ui/appearance-initial-value-001.html.ini13
-rw-r--r--tests/wpt/metadata/css/cssom-view/elementsFromPoint-iframes.html.ini2
-rw-r--r--tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-brightness.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-contrast.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-grayscale.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-hue-rotate.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-invert.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-saturate.html.ini2
-rw-r--r--tests/wpt/metadata/css/filter-effects/backdrop-filters-sepia.html.ini2
-rw-r--r--tests/wpt/metadata/fetch/content-type/response.window.js.ini10
-rw-r--r--tests/wpt/metadata/fetch/content-type/script.window.js.ini9
-rw-r--r--tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini4
-rw-r--r--tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini (renamed from tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini)2
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini19
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html.ini19
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini19
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini19
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html.ini34
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html.ini28
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html.ini28
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html.ini28
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html.ini28
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html.ini28
-rw-r--r--tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini34
-rw-r--r--tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini4
-rw-r--r--tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini4
-rw-r--r--tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.html.ini4
-rw-r--r--tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.worker.js.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini9
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini4
-rw-r--r--tests/wpt/metadata/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini6
-rw-r--r--tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini4
-rw-r--r--tests/wpt/metadata/workers/constructors/Worker/Worker-constructor.html.ini2
-rw-r--r--tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html1
-rw-r--r--tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html27
-rw-r--r--tests/wpt/web-platform-tests/2dcontext/text-styles/2d.text.font.relative_size.html30
-rw-r--r--tests/wpt/web-platform-tests/2dcontext/tools/tests2dtext.yaml9
-rw-r--r--tests/wpt/web-platform-tests/IndexedDB/idbindex_keyPath.any.js30
-rw-r--r--tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_keyPath.any.js27
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/floats/hit-test-floats-001.html21
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-001.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-002.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-003.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-004.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-005.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-006.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-007.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-009.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-010.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-011.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-012.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-013.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-015.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-016.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-017.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-019.xht3
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-001.xht2
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-002.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-003.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-004.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-005.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-006.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-008.xht2
-rw-r--r--tests/wpt/web-platform-tests/css/CSS2/values/units-009.xht1
-rw-r--r--tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html14
-rw-r--r--tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-invalid.html10
-rw-r--r--tests/wpt/web-platform-tests/css/css-fonts/crash-font-face-invalid-descriptor.html13
-rw-r--r--tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025-ref.html15
-rw-r--r--tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-layout-api/layout-child-inlines-dynamic.https.html39
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-002.html31
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-003.html39
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-004.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-computed.html24
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-computed.sub.html32
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-invalid.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-valid.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-invalid.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-computed.html19
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-invalid.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-valid.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html50
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-invalid.html28
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html50
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-valid.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-010.html14
-rw-r--r--tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-011.html67
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested-ref.html2
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-ref.html2
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color.html23
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block-ref.html5
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block.html16
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-ref.html5
-rw-r--r--tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow.html20
-rw-r--r--tests/wpt/web-platform-tests/css/css-ui/appearance-initial-value-001.html28
-rw-r--r--tests/wpt/web-platform-tests/css/cssom/shorthand-values.html2
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity-ref.html26
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity.html45
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia-ref.html37
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia.html36
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity-ref.html2
-rw-r--r--tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity.html11
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html35
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html50
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html24
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html35
-rw-r--r--tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list2
-rw-r--r--tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html (renamed from tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html)0
-rw-r--r--tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html.headers (renamed from tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html.headers)0
-rw-r--r--tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html (renamed from tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html)0
-rw-r--r--tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html.headers (renamed from tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html.headers)0
-rw-r--r--tests/wpt/web-platform-tests/html/dom/elements-obsolete.js13
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tenative.html2
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html38
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html14
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html2
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-transfer-with-click.tentative.html2
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/activation-transfer-without-click.tentative.html2
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-child.sub.html32
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-grandchild.html28
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/resources/child-five.html15
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/resources/child-four.html2
-rw-r--r--tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html14
-rw-r--r--tests/wpt/web-platform-tests/inert/frame/button.html36
-rw-r--r--tests/wpt/web-platform-tests/inert/inert-retargeting-iframe.tentative.html285
-rw-r--r--tests/wpt/web-platform-tests/inert/inert-retargeting.tentative.html290
-rw-r--r--tests/wpt/web-platform-tests/interfaces/animation-worklet.idl2
-rw-r--r--tests/wpt/web-platform-tests/largest-contentful-paint/observe-image.html13
-rw-r--r--tests/wpt/web-platform-tests/lint.whitelist3
-rw-r--r--tests/wpt/web-platform-tests/mediacapture-streams/idlharness.https.window.js25
-rw-r--r--tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.html25
-rw-r--r--tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.worker.js21
-rw-r--r--tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml7
-rw-r--r--tests/wpt/web-platform-tests/preload/subresource-integrity.html284
-rw-r--r--tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js44
-rw-r--r--tests/wpt/web-platform-tests/resources/chromium/webxr-test.js27
-rw-r--r--tests/wpt/web-platform-tests/resources/sriharness.js98
-rw-r--r--tests/wpt/web-platform-tests/shape-detection/detection-HTMLVideoElement-invalid-state.html50
-rw-r--r--tests/wpt/web-platform-tests/shape-detection/shapedetection-cross-origin.sub.html31
-rw-r--r--tests/wpt/web-platform-tests/std-toast/attributes.html5
-rw-r--r--tests/wpt/web-platform-tests/subresource-integrity/sri-test-helpers.sub.js17
-rw-r--r--tests/wpt/web-platform-tests/webusb/usbDevice.https.any.js60
826 files changed, 8234 insertions, 521 deletions
diff --git a/tests/wpt/metadata/2dcontext/text-styles/2d.text.font.relative_size.html.ini b/tests/wpt/metadata/2dcontext/text-styles/2d.text.font.relative_size.html.ini
new file mode 100644
index 00000000000..5353ddbe2dc
--- /dev/null
+++ b/tests/wpt/metadata/2dcontext/text-styles/2d.text.font.relative_size.html.ini
@@ -0,0 +1,4 @@
+[2d.text.font.relative_size.html]
+ [Canvas test: 2d.text.font.relative_size]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini b/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
index 947e223fb28..3a3d15b8406 100644
--- a/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
+++ b/tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
@@ -14,6 +14,9 @@
[Revoke blob URL after creating Request, will fetch]
expected: FAIL
+ [Revoke blob URL after calling fetch, fetch should succeed]
+ expected: FAIL
+
[url-with-fetch.any.html]
[Untitled]
@@ -34,3 +37,6 @@
[Revoke blob URL after creating Request, will fetch]
expected: FAIL
+ [Revoke blob URL after calling fetch, fetch should succeed]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json
index 5057f8ca497..abb1a75f79a 100644
--- a/tests/wpt/metadata/MANIFEST.json
+++ b/tests/wpt/metadata/MANIFEST.json
@@ -13873,6 +13873,12 @@
{}
]
],
+ "html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html": [
+ [
+ "html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html",
+ {}
+ ]
+ ],
"html/user-activation/activation-thru-contextmenu-event-manual.html": [
[
"html/user-activation/activation-thru-contextmenu-event-manual.html",
@@ -121693,6 +121699,18 @@
{}
]
],
+ "css/css-fonts/font-family-name-025.html": [
+ [
+ "css/css-fonts/font-family-name-025.html",
+ [
+ [
+ "/css/css-fonts/font-family-name-025-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/css-fonts/font-feature-resolution-001.html": [
[
"css/css-fonts/font-feature-resolution-001.html",
@@ -135529,6 +135547,54 @@
{}
]
],
+ "css/css-pseudo/first-line-change-inline-color-nested.html": [
+ [
+ "css/css-pseudo/first-line-change-inline-color-nested.html",
+ [
+ [
+ "/css/css-pseudo/first-line-change-inline-color-nested-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/css-pseudo/first-line-change-inline-color.html": [
+ [
+ "css/css-pseudo/first-line-change-inline-color.html",
+ [
+ [
+ "/css/css-pseudo/first-line-change-inline-color-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/css-pseudo/first-line-on-ancestor-block.html": [
+ [
+ "css/css-pseudo/first-line-on-ancestor-block.html",
+ [
+ [
+ "/css/css-pseudo/first-line-on-ancestor-block-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/css-pseudo/first-line-with-out-of-flow.html": [
+ [
+ "css/css-pseudo/first-line-with-out-of-flow.html",
+ [
+ [
+ "/css/css-pseudo/first-line-with-out-of-flow-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/css-pseudo/marker-and-other-pseudo-elements.html": [
[
"css/css-pseudo/marker-and-other-pseudo-elements.html",
@@ -177283,6 +177349,102 @@
{}
]
],
+ "css/filter-effects/backdrop-filters-brightness.html": [
+ [
+ "css/filter-effects/backdrop-filters-brightness.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-brightness-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-contrast.html": [
+ [
+ "css/filter-effects/backdrop-filters-contrast.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-contrast-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-grayscale.html": [
+ [
+ "css/filter-effects/backdrop-filters-grayscale.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-grayscale-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-hue-rotate.html": [
+ [
+ "css/filter-effects/backdrop-filters-hue-rotate.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-hue-rotate-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-invert.html": [
+ [
+ "css/filter-effects/backdrop-filters-invert.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-invert-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-opacity.html": [
+ [
+ "css/filter-effects/backdrop-filters-opacity.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-opacity-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-saturate.html": [
+ [
+ "css/filter-effects/backdrop-filters-saturate.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-saturate-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/filter-effects/backdrop-filters-sepia.html": [
+ [
+ "css/filter-effects/backdrop-filters-sepia.html",
+ [
+ [
+ "/css/filter-effects/backdrop-filters-sepia-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/filter-effects/blur-clip-stacking-context-001.html": [
[
"css/filter-effects/blur-clip-stacking-context-001.html",
@@ -183187,6 +183349,30 @@
{}
]
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html": [
+ [
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html",
+ [
+ [
+ "/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html": [
+ [
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html",
+ [
+ [
+ "/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-table-caption-001.html": [
[
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-table-caption-001.html",
@@ -242848,6 +243034,9 @@
"css/css-fonts/font-family-name-024-ref.xht": [
[]
],
+ "css/css-fonts/font-family-name-025-ref.html": [
+ []
+ ],
"css/css-fonts/font-family-name-mixcase-ref.xht": [
[]
],
@@ -249766,6 +249955,18 @@
"css/css-pseudo/first-line-and-placeholder-ref.html": [
[]
],
+ "css/css-pseudo/first-line-change-inline-color-nested-ref.html": [
+ []
+ ],
+ "css/css-pseudo/first-line-change-inline-color-ref.html": [
+ []
+ ],
+ "css/css-pseudo/first-line-on-ancestor-block-ref.html": [
+ []
+ ],
+ "css/css-pseudo/first-line-with-out-of-flow-ref.html": [
+ []
+ ],
"css/css-pseudo/marker-and-other-pseudo-elements-ref.html": [
[]
],
@@ -257167,6 +257368,30 @@
"css/filter-effects/backdrop-filter-zero-size-ref.html": [
[]
],
+ "css/filter-effects/backdrop-filters-brightness-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-contrast-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-grayscale-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-hue-rotate-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-invert-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-opacity-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-saturate-ref.html": [
+ []
+ ],
+ "css/filter-effects/backdrop-filters-sepia-ref.html": [
+ []
+ ],
"css/filter-effects/blur-clip-stacking-context-ref.html": [
[]
],
@@ -258520,6 +258745,12 @@
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-multicol-003-ref.html": [
[]
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html": [
+ []
+ ],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html": [
+ []
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-table-caption-001-ref.html": [
[]
],
@@ -262516,10 +262747,10 @@
"feature-policy/reporting/microphone-reporting.https.html.headers": [
[]
],
- "feature-policy/reporting/midi-report-only.html.headers": [
+ "feature-policy/reporting/midi-report-only.https.html.headers": [
[]
],
- "feature-policy/reporting/midi-reporting.html.headers": [
+ "feature-policy/reporting/midi-reporting.https.html.headers": [
[]
],
"feature-policy/reporting/payment-report-only.https.html.headers": [
@@ -269908,7 +270139,10 @@
"html/tools/update_html5lib_tests.py": [
[]
],
- "html/user-activation/resources/child-five.html": [
+ "html/user-activation/resources/activation-hierarchy-child.sub.html": [
+ []
+ ],
+ "html/user-activation/resources/activation-hierarchy-grandchild.html": [
[]
],
"html/user-activation/resources/child-four.html": [
@@ -270394,6 +270628,9 @@
"import-maps/static-import.js": [
[]
],
+ "inert/frame/button.html": [
+ []
+ ],
"infrastructure/META.yml": [
[]
],
@@ -288471,6 +288708,12 @@
{}
]
],
+ "2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html": [
+ [
+ "2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html",
+ {}
+ ]
+ ],
"2dcontext/imagebitmap/createImageBitmap-drawImage.html": [
[
"2dcontext/imagebitmap/createImageBitmap-drawImage.html",
@@ -290373,6 +290616,12 @@
{}
]
],
+ "2dcontext/text-styles/2d.text.font.relative_size.html": [
+ [
+ "2dcontext/text-styles/2d.text.font.relative_size.html",
+ {}
+ ]
+ ],
"2dcontext/text-styles/2d.text.measure.width.space.html": [
[
"2dcontext/text-styles/2d.text.measure.width.space.html",
@@ -292480,6 +292729,38 @@
{}
]
],
+ "IndexedDB/idbindex_keyPath.any.js": [
+ [
+ "IndexedDB/idbindex_keyPath.any.html",
+ {
+ "script_metadata": [
+ [
+ "title",
+ "IndexedDB: IDBIndex keyPath attribute - same object"
+ ],
+ [
+ "script",
+ "support.js"
+ ]
+ ]
+ }
+ ],
+ [
+ "IndexedDB/idbindex_keyPath.any.worker.html",
+ {
+ "script_metadata": [
+ [
+ "title",
+ "IndexedDB: IDBIndex keyPath attribute - same object"
+ ],
+ [
+ "script",
+ "support.js"
+ ]
+ ]
+ }
+ ]
+ ],
"IndexedDB/idbindex_openCursor.htm": [
[
"IndexedDB/idbindex_openCursor.htm",
@@ -292980,6 +293261,38 @@
{}
]
],
+ "IndexedDB/idbobjectstore_keyPath.any.js": [
+ [
+ "IndexedDB/idbobjectstore_keyPath.any.html",
+ {
+ "script_metadata": [
+ [
+ "title",
+ "IndexedDB: IDBObjectStore keyPath attribute - same object"
+ ],
+ [
+ "script",
+ "support.js"
+ ]
+ ]
+ }
+ ],
+ [
+ "IndexedDB/idbobjectstore_keyPath.any.worker.html",
+ {
+ "script_metadata": [
+ [
+ "title",
+ "IndexedDB: IDBObjectStore keyPath attribute - same object"
+ ],
+ [
+ "script",
+ "support.js"
+ ]
+ ]
+ }
+ ]
+ ],
"IndexedDB/idbobjectstore_openCursor.htm": [
[
"IndexedDB/idbobjectstore_openCursor.htm",
@@ -306761,6 +307074,12 @@
{}
]
],
+ "css/CSS2/floats/hit-test-floats-001.html": [
+ [
+ "css/CSS2/floats/hit-test-floats-001.html",
+ {}
+ ]
+ ],
"css/CSS2/floats/list-item-taller-than-opportunity-001.html": [
[
"css/CSS2/floats/list-item-taller-than-opportunity-001.html",
@@ -309523,6 +309842,12 @@
{}
]
],
+ "css/css-fonts/crash-font-face-invalid-descriptor.html": [
+ [
+ "css/css-fonts/crash-font-face-invalid-descriptor.html",
+ {}
+ ]
+ ],
"css/css-fonts/font-display/font-display-failure-fallback.html": [
[
"css/css-fonts/font-display/font-display-failure-fallback.html",
@@ -311819,6 +312144,12 @@
{}
]
],
+ "css/css-layout-api/layout-child-inlines-dynamic.https.html": [
+ [
+ "css/css-layout-api/layout-child-inlines-dynamic.https.html",
+ {}
+ ]
+ ],
"css/css-layout-api/supports.https.html": [
[
"css/css-layout-api/supports.https.html",
@@ -311849,12 +312180,102 @@
{}
]
],
+ "css/css-lists/list-and-margin-collapse-002.html": [
+ [
+ "css/css-lists/list-and-margin-collapse-002.html",
+ {}
+ ]
+ ],
+ "css/css-lists/list-and-margin-collapse-003.html": [
+ [
+ "css/css-lists/list-and-margin-collapse-003.html",
+ {}
+ ]
+ ],
+ "css/css-lists/list-and-margin-collapse-004.html": [
+ [
+ "css/css-lists/list-and-margin-collapse-004.html",
+ {}
+ ]
+ ],
"css/css-lists/list-and-writing-mode-001.html": [
[
"css/css-lists/list-and-writing-mode-001.html",
{}
]
],
+ "css/css-lists/parsing/list-style-computed.html": [
+ [
+ "css/css-lists/parsing/list-style-computed.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-image-computed.sub.html": [
+ [
+ "css/css-lists/parsing/list-style-image-computed.sub.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-image-invalid.html": [
+ [
+ "css/css-lists/parsing/list-style-image-invalid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-image-valid.html": [
+ [
+ "css/css-lists/parsing/list-style-image-valid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-invalid.html": [
+ [
+ "css/css-lists/parsing/list-style-invalid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-position-computed.html": [
+ [
+ "css/css-lists/parsing/list-style-position-computed.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-position-invalid.html": [
+ [
+ "css/css-lists/parsing/list-style-position-invalid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-position-valid.html": [
+ [
+ "css/css-lists/parsing/list-style-position-valid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-type-computed.html": [
+ [
+ "css/css-lists/parsing/list-style-type-computed.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-type-invalid.html": [
+ [
+ "css/css-lists/parsing/list-style-type-invalid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-type-valid.html": [
+ [
+ "css/css-lists/parsing/list-style-type-valid.html",
+ {}
+ ]
+ ],
+ "css/css-lists/parsing/list-style-valid.html": [
+ [
+ "css/css-lists/parsing/list-style-valid.html",
+ {}
+ ]
+ ],
"css/css-logical/animation-001.html": [
[
"css/css-logical/animation-001.html",
@@ -313013,6 +313434,18 @@
{}
]
],
+ "css/css-position/position-absolute-crash-chrome-010.html": [
+ [
+ "css/css-position/position-absolute-crash-chrome-010.html",
+ {}
+ ]
+ ],
+ "css/css-position/position-absolute-crash-chrome-011.html": [
+ [
+ "css/css-position/position-absolute-crash-chrome-011.html",
+ {}
+ ]
+ ],
"css/css-position/position-absolute-dynamic-containing-block.html": [
[
"css/css-position/position-absolute-dynamic-containing-block.html",
@@ -319801,6 +320234,12 @@
{}
]
],
+ "css/css-ui/appearance-initial-value-001.html": [
+ [
+ "css/css-ui/appearance-initial-value-001.html",
+ {}
+ ]
+ ],
"css/css-ui/appearance-parsing.html": [
[
"css/css-ui/appearance-parsing.html",
@@ -337354,15 +337793,15 @@
{}
]
],
- "feature-policy/reporting/midi-report-only.html": [
+ "feature-policy/reporting/midi-report-only.https.html": [
[
- "feature-policy/reporting/midi-report-only.html",
+ "feature-policy/reporting/midi-report-only.https.html",
{}
]
],
- "feature-policy/reporting/midi-reporting.html": [
+ "feature-policy/reporting/midi-reporting.https.html": [
[
- "feature-policy/reporting/midi-reporting.html",
+ "feature-policy/reporting/midi-reporting.https.html",
{}
]
],
@@ -355879,6 +356318,22 @@
{}
]
],
+ "inert/inert-retargeting-iframe.tentative.html": [
+ [
+ "inert/inert-retargeting-iframe.tentative.html",
+ {
+ "testdriver": true
+ }
+ ]
+ ],
+ "inert/inert-retargeting.tentative.html": [
+ [
+ "inert/inert-retargeting.tentative.html",
+ {
+ "testdriver": true
+ }
+ ]
+ ],
"infrastructure/assumptions/allowed-to-play.html": [
[
"infrastructure/assumptions/allowed-to-play.html",
@@ -369961,6 +370416,18 @@
{}
]
],
+ "offscreen-canvas/text/2d.text.font.relative_size.html": [
+ [
+ "offscreen-canvas/text/2d.text.font.relative_size.html",
+ {}
+ ]
+ ],
+ "offscreen-canvas/text/2d.text.font.relative_size.worker.js": [
+ [
+ "offscreen-canvas/text/2d.text.font.relative_size.worker.html",
+ {}
+ ]
+ ],
"offscreen-canvas/text/2d.text.measure.actualBoundingBox.html": [
[
"offscreen-canvas/text/2d.text.measure.actualBoundingBox.html",
@@ -373498,6 +373965,12 @@
{}
]
],
+ "preload/subresource-integrity.html": [
+ [
+ "preload/subresource-integrity.html",
+ {}
+ ]
+ ],
"presentation-api/controlling-ua/PresentationRequest_error.https.html": [
[
"presentation-api/controlling-ua/PresentationRequest_error.https.html",
@@ -387134,12 +387607,6 @@
{}
]
],
- "shape-detection/detection-HTMLVideoElement-invalid-state.html": [
- [
- "shape-detection/detection-HTMLVideoElement-invalid-state.html",
- {}
- ]
- ],
"shape-detection/detection-HTMLVideoElement.html": [
[
"shape-detection/detection-HTMLVideoElement.html",
@@ -435275,7 +435742,7 @@
"testharness"
],
"2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html": [
- "366d1fd36e0cbeae4b2aca60d1c86c98844e69cc",
+ "94fc0d1c57ac6cab4e5f637584d5e1d9db7e1a5c",
"testharness"
],
"2dcontext/imagebitmap/common.sub.js": [
@@ -435290,6 +435757,10 @@
"544bd77b8852a2495595c52a0628d0830214d582",
"testharness"
],
+ "2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html": [
+ "ea65355e58e545481c48cf540f8f090abad5cdf3",
+ "testharness"
+ ],
"2dcontext/imagebitmap/createImageBitmap-drawImage.html": [
"9146a3704bae56c4a298c271436b734ff299aa6a",
"testharness"
@@ -436646,6 +437117,10 @@
"f668e8a4ccf7529182196faa6333935242b39e06",
"testharness"
],
+ "2dcontext/text-styles/2d.text.font.relative_size.html": [
+ "1c0f7bc2b2a10f9a58e175f594c313daccbf574a",
+ "testharness"
+ ],
"2dcontext/text-styles/2d.text.measure.width.space.html": [
"82a6118fee94967da02125a01bfd3611eb080eee",
"testharness"
@@ -436807,7 +437282,7 @@
"support"
],
"2dcontext/tools/tests2dtext.yaml": [
- "0ee476d755dc7647e7b258974f3aad2cf6ea680e",
+ "c57caee8f199279fc3a2d408d993944bdff0030f",
"support"
],
"2dcontext/transformations/2d.transformation.order.html": [
@@ -438290,6 +438765,10 @@
"f80c4c1379032c5fe08dc4795c18d6ae4768622c",
"testharness"
],
+ "IndexedDB/idbindex_keyPath.any.js": [
+ "19cf231f44b801240876c5d27f72dd6f2b9d2d68",
+ "testharness"
+ ],
"IndexedDB/idbindex_openCursor.htm": [
"0efff9325f762ca35cbba00947f0db905e90d106",
"testharness"
@@ -438618,6 +439097,10 @@
"5da58ecc3116fd66f15ce2ee4f6d5184d2285ec7",
"testharness"
],
+ "IndexedDB/idbobjectstore_keyPath.any.js": [
+ "91c3674c312aaaf0235b1bcda5d776137c2ee9b1",
+ "testharness"
+ ],
"IndexedDB/idbobjectstore_openCursor.htm": [
"c54760a7cd7a0dcd47c6bf150fa53e290076fba6",
"testharness"
@@ -487074,6 +487557,10 @@
"679f5b073f98d0fb9dd3efe29c5655897d2ceafd",
"reftest"
],
+ "css/CSS2/floats/hit-test-floats-001.html": [
+ "e554918e7538b0afedb60c80c74647967a114d47",
+ "testharness"
+ ],
"css/CSS2/floats/intrinsic-size-float-and-line.html": [
"060312454915307da67988ac52dc41e558479dd1",
"reftest"
@@ -521859,27 +522346,27 @@
"reftest"
],
"css/CSS2/values/numbers-units-001.xht": [
- "7455f4f6094a6bc43709fbbbec079b3a621882fa",
+ "dae3fa6df3738395a6ecf16c63d8e97028a44401",
"reftest"
],
"css/CSS2/values/numbers-units-002.xht": [
- "9929f60343babc0aaf48d5f80278fa83e4d524c9",
+ "e915df6c2482584e27c7a9a3c66b9b29843bcc57",
"visual"
],
"css/CSS2/values/numbers-units-003.xht": [
- "705c8208fadb7fc353fe0d2e1459a7b35acb91a8",
+ "57600a7c70b4cbdab11b1565891808315db9a2ed",
"reftest"
],
"css/CSS2/values/numbers-units-004.xht": [
- "fb59620e64ac7c6d3898dd533070d554b4a11e6b",
+ "16d4b8df6e67c17d77e454f6e98b8675a63694e6",
"reftest"
],
"css/CSS2/values/numbers-units-005.xht": [
- "5f4545725240c90e241ac2d5a2349b023f87b410",
+ "300a23e5806d5c0436149e00be777cf709c04ccb",
"reftest"
],
"css/CSS2/values/numbers-units-006.xht": [
- "e6174ed65614f9dd312c38167fffb43259db7411",
+ "24fd36e0ad964b92825d273a9be7e667cd3c3421",
"reftest"
],
"css/CSS2/values/numbers-units-007-ref.xht": [
@@ -521887,7 +522374,7 @@
"support"
],
"css/CSS2/values/numbers-units-007.xht": [
- "ba3ee026185f5299f2e585d786e75c5767621e4a",
+ "b70cb36ca6de5fce5b499124a8173bc9c71bfc2e",
"reftest"
],
"css/CSS2/values/numbers-units-009-ref.xht": [
@@ -521895,7 +522382,7 @@
"support"
],
"css/CSS2/values/numbers-units-009.xht": [
- "104dbccd8bc407d6939d7cadd914210ee5620327",
+ "78882eba4b0079d0361a1682e86b1c9ba770b805",
"reftest"
],
"css/CSS2/values/numbers-units-010-ref.xht": [
@@ -521903,7 +522390,7 @@
"support"
],
"css/CSS2/values/numbers-units-010.xht": [
- "cfb49e4de420cd487caa44109095c03aaaa0a891",
+ "03b0b71aead9395f4e41d8a114e39d2cbfc1de1f",
"reftest"
],
"css/CSS2/values/numbers-units-011-ref.xht": [
@@ -521911,7 +522398,7 @@
"support"
],
"css/CSS2/values/numbers-units-011.xht": [
- "23d8521f6392054534375c3d17e2185132bb733d",
+ "e1edfea9e11ec9c4f8b3152ff3637169e21f0227",
"reftest"
],
"css/CSS2/values/numbers-units-012-ref.xht": [
@@ -521919,7 +522406,7 @@
"support"
],
"css/CSS2/values/numbers-units-012.xht": [
- "aba7b286e9bc55806caa3aa5bd1232ed3491cee9",
+ "f24e528c5b3ac1ffe8ea9e566d2c7690d99b8088",
"reftest"
],
"css/CSS2/values/numbers-units-013-ref.xht": [
@@ -521927,7 +522414,7 @@
"support"
],
"css/CSS2/values/numbers-units-013.xht": [
- "7db3c78720f499d75405e2aa62b96aa24cf2d808",
+ "ac42ede11973ad7d72424ec167ea468500bc8058",
"reftest"
],
"css/CSS2/values/numbers-units-015-ref-a.xht": [
@@ -521939,15 +522426,15 @@
"support"
],
"css/CSS2/values/numbers-units-015.xht": [
- "36babf0aa0b02faf3baeed0695d5373288a10a09",
+ "d79cce58900bb2fdb36a9e5758f62a2bbd2ae760",
"reftest"
],
"css/CSS2/values/numbers-units-016.xht": [
- "224a9f1d4d80df901d12a8d83adda61b5dd3db7a",
+ "97b0af586845bd75f1311f8cb758bab2e5f4cba3",
"reftest"
],
"css/CSS2/values/numbers-units-017.xht": [
- "654110802e176a0a05e6f7710ed061cd32d3490b",
+ "ad3aa3b044c7a5c14fbcf54dd0420328652b9d72",
"reftest"
],
"css/CSS2/values/numbers-units-018-ref.xht": [
@@ -521963,7 +522450,7 @@
"support"
],
"css/CSS2/values/numbers-units-019.xht": [
- "aedfeb5d495517e0715859432240ff8d2b93e7de",
+ "205e3b639251454fa6528b848dfac8c43d0a9684",
"reftest"
],
"css/CSS2/values/numbers-units-021-ref.xht": [
@@ -522127,7 +522614,7 @@
"support"
],
"css/CSS2/values/units-001.xht": [
- "35efbb1b9732cc868f668bc1aa4bd1bbbbd5d0c8",
+ "a3e08e45437f01ce1152ec1ac1295a00ff2bc551",
"reftest"
],
"css/CSS2/values/units-002-ref.xht": [
@@ -522135,7 +522622,7 @@
"support"
],
"css/CSS2/values/units-002.xht": [
- "84e7cd7299d2af0ba01e370fbf0673960f826801",
+ "8fd7b0bd5ebb575780dd5ebd688be867d2f98abf",
"reftest"
],
"css/CSS2/values/units-003-ref.xht": [
@@ -522143,7 +522630,7 @@
"support"
],
"css/CSS2/values/units-003.xht": [
- "682a8e9b4fce908c76c8c306a1e48fb7e28c4910",
+ "df6b1ab71ebd9dba4937447d242f7bd7cc7dad07",
"reftest"
],
"css/CSS2/values/units-004-ref.xht": [
@@ -522151,7 +522638,7 @@
"support"
],
"css/CSS2/values/units-004.xht": [
- "57b703fc8d18d1f4167256443568f4a190319ef6",
+ "a0e474e0aef072a075bdd9c185f6f87846620403",
"reftest"
],
"css/CSS2/values/units-005-ref.xht": [
@@ -522159,7 +522646,7 @@
"support"
],
"css/CSS2/values/units-005.xht": [
- "29a42de095176cb6a820f6f5655785a1c79699fb",
+ "052b7e331920195fdf758f346a3d03bbd3b8b3b1",
"reftest"
],
"css/CSS2/values/units-006-ref.xht": [
@@ -522167,15 +522654,15 @@
"support"
],
"css/CSS2/values/units-006.xht": [
- "321c777b4b43e6bb7af506293e8ad44995095db6",
+ "12713a15048a17fb59b64c2f6e7829081c412ba7",
"reftest"
],
"css/CSS2/values/units-008.xht": [
- "dee37f98baba633c3351921a9e232cdf64079aca",
+ "3510f4dfcaac9d443bab9e10bbf9be8266a66fc7",
"reftest"
],
"css/CSS2/values/units-009.xht": [
- "baf3004d5317cb41f611678d77c717f667f9f4a3",
+ "982fc96f44a023a551d42030387be4b20b531d94",
"reftest"
],
"css/CSS2/visudet/content-height-001.html": [
@@ -531179,11 +531666,11 @@
"testharness"
],
"css/css-backgrounds/parsing/background-image-computed.sub.html": [
- "4dc0aad0fd5101f7dc7bc64c1bd0b77d2f872b4f",
+ "a67823cc125a89b454d6c25a055ec5f2ae56ae21",
"testharness"
],
"css/css-backgrounds/parsing/background-image-invalid.html": [
- "eaba64a715ce71a9f828569a24df51f1476664dd",
+ "7f1bc98ab63907eb8ab71abc1dd1cc214737bac3",
"testharness"
],
"css/css-backgrounds/parsing/background-image-valid.html": [
@@ -540058,6 +540545,10 @@
"1a7c59abd5ddebfc6cd1f972ee6a186bdb7b97df",
"testharness"
],
+ "css/css-fonts/crash-font-face-invalid-descriptor.html": [
+ "73cea13f091a767c66ff4eba956fa130cb3ea66e",
+ "testharness"
+ ],
"css/css-fonts/first-available-font-001-ref.html": [
"0acbd338e0ce9f558d2eaa2e48ad4be0524fb0ae",
"support"
@@ -540338,6 +540829,14 @@
"92fc90ea4401bdeac1f773dc7fccadfca016f47c",
"manual"
],
+ "css/css-fonts/font-family-name-025-ref.html": [
+ "035ed5f29d0fb9e7f08f130a20c0e82fe89f7225",
+ "support"
+ ],
+ "css/css-fonts/font-family-name-025.html": [
+ "d6ee10db24820cc98102b0fd21e2b4c6af4f4a65",
+ "reftest"
+ ],
"css/css-fonts/font-family-name-mixcase-ref.xht": [
"6721b652a21d84b92f2ae9511c46bd63e64538f9",
"support"
@@ -551354,6 +551853,10 @@
"11f2b88aa1fe930f36907e3e4c3b5e1b13d28b06",
"reftest"
],
+ "css/css-layout-api/layout-child-inlines-dynamic.https.html": [
+ "50052087f44e42740e639d098ce4861dd008d81a",
+ "testharness"
+ ],
"css/css-layout-api/layout-child-inlines.https.html": [
"811af3f40b299b874bcc71d38e8de6b86c67ab34",
"reftest"
@@ -551654,6 +552157,18 @@
"e267b839083b4dfb343c92118f93d73a7e8d019f",
"testharness"
],
+ "css/css-lists/list-and-margin-collapse-002.html": [
+ "ef110ca17ce04b458100ca9c7b61f71cbc7b3b67",
+ "testharness"
+ ],
+ "css/css-lists/list-and-margin-collapse-003.html": [
+ "78dcbc6cd4503c2dac6122809f498fbd772c3bc1",
+ "testharness"
+ ],
+ "css/css-lists/list-and-margin-collapse-004.html": [
+ "4a92f8becf204f03e865218b9d82060f83a8cf7e",
+ "testharness"
+ ],
"css/css-lists/list-and-writing-mode-001.html": [
"df54e8fb0df8146f896c2abd136d63d930d92d1c",
"testharness"
@@ -551710,6 +552225,54 @@
"9627ce936ae570325b430a1ac673cd66ae7d4252",
"reftest"
],
+ "css/css-lists/parsing/list-style-computed.html": [
+ "84409e8335b097cf4f30aa15e10427a242df91d1",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-image-computed.sub.html": [
+ "114f08ecd75f77cf7889e8af375476702a0fb13f",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-image-invalid.html": [
+ "ea8bb8ca9632bde992ef4f171368409331a2b58a",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-image-valid.html": [
+ "7b7d43e4bf63e754b302cd7694e895f1cc6dc974",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-invalid.html": [
+ "0dda1630ad8f451908cc5aeddecb7549f12a40c2",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-position-computed.html": [
+ "e36181b1dd4c703d5b6c5b6d8a1ea9d7f3ef81b9",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-position-invalid.html": [
+ "3cf596135a78e2210e5131df4390d47c2d21c5f3",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-position-valid.html": [
+ "ff0c8366bb988fafe72746837a330801ae2fe34b",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-type-computed.html": [
+ "0a8cd48b6af9e214841064ad6fcf63a6174c9a73",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-type-invalid.html": [
+ "c49f61ca705f83863ecc1219d24b962b8221426c",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-type-valid.html": [
+ "66067ca43232975409aab83684da9258f10abcea",
+ "testharness"
+ ],
+ "css/css-lists/parsing/list-style-valid.html": [
+ "6f6c344f305d84d8334fc38f07484ebc95266643",
+ "testharness"
+ ],
"css/css-lists/resources/white.gif": [
"3aa2098dc8817f5360d13440f3d6245a030dc31d",
"support"
@@ -556190,6 +556753,14 @@
"23df49cfaae5cdba6225c981d652b491f9df6784",
"testharness"
],
+ "css/css-position/position-absolute-crash-chrome-010.html": [
+ "91b439a3422db62df86d2ae0f4b8e52cce7fa550",
+ "testharness"
+ ],
+ "css/css-position/position-absolute-crash-chrome-011.html": [
+ "fd3d63e0cf749d315d06e4fe5067f0840d8c64dd",
+ "testharness"
+ ],
"css/css-position/position-absolute-dynamic-containing-block.html": [
"3968f685849663574ca213fcb90dc5fb3eaffaa3",
"testharness"
@@ -556890,10 +557461,42 @@
"2db3480feb5928c6a39fbf6084cf07bec0ba4767",
"reftest"
],
+ "css/css-pseudo/first-line-change-inline-color-nested-ref.html": [
+ "84becd9a78d186ba3c0e658746fd56aef8039b74",
+ "support"
+ ],
+ "css/css-pseudo/first-line-change-inline-color-nested.html": [
+ "4a58f1ea5b623ffa5acd2993be16de399cd24127",
+ "reftest"
+ ],
+ "css/css-pseudo/first-line-change-inline-color-ref.html": [
+ "84becd9a78d186ba3c0e658746fd56aef8039b74",
+ "support"
+ ],
+ "css/css-pseudo/first-line-change-inline-color.html": [
+ "2a5be916b01d5d12eec1a4e81d912d95c7036916",
+ "reftest"
+ ],
"css/css-pseudo/first-line-first-letter-insert-crash.html": [
"17f035dedf1ef8df71918a1eacb01e1f0b80d46b",
"testharness"
],
+ "css/css-pseudo/first-line-on-ancestor-block-ref.html": [
+ "7193bf25eb88c5443457480f7ce27782acd9473a",
+ "support"
+ ],
+ "css/css-pseudo/first-line-on-ancestor-block.html": [
+ "6b797107df80156b511b9dc58c5ee40d6114cfc4",
+ "reftest"
+ ],
+ "css/css-pseudo/first-line-with-out-of-flow-ref.html": [
+ "7193bf25eb88c5443457480f7ce27782acd9473a",
+ "support"
+ ],
+ "css/css-pseudo/first-line-with-out-of-flow.html": [
+ "798ecf8264e2ddb38257c6cb1174bcc069c6e6d1",
+ "reftest"
+ ],
"css/css-pseudo/idlharness.html": [
"4c113fc9091fb773cabd77f1419fac9a2e99650b",
"testharness"
@@ -577254,6 +577857,10 @@
"f7dd4d1d761ed57831ae7842280f47164c6c080e",
"testharness"
],
+ "css/css-ui/appearance-initial-value-001.html": [
+ "6e7d3002676d7c9a7bde572e903e5a148c5f34d5",
+ "testharness"
+ ],
"css/css-ui/appearance-listbox-001.html": [
"b391754b7493242010cda8789bcb10beb0be5ea1",
"reftest"
@@ -588859,7 +589466,7 @@
"testharness"
],
"css/cssom/shorthand-values.html": [
- "d8d7f5349a4561cb4d764f366236e88eb3775c8f",
+ "5a50bc44b789378e54590b83ce4818696ae83bcd",
"testharness"
],
"css/cssom/style-attr-update-across-documents.html": [
@@ -589262,6 +589869,70 @@
"bcefe042b4bcf329062f231d663cefc9419cdffc",
"reftest"
],
+ "css/filter-effects/backdrop-filters-brightness-ref.html": [
+ "cb6ea674d385d39dfc7c9c75fea4ec7c0d7117ad",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-brightness.html": [
+ "1cc63ed2dd380f0e9726063f32344831259e1f8b",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-contrast-ref.html": [
+ "7978fec4d492b90d9a159ffa07dd4bc05a87f4e2",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-contrast.html": [
+ "15c97a94238710858f900b883f3fe9c37e1b9f25",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-grayscale-ref.html": [
+ "eb403f16a0030aca22fefbf919daa987aaa2ee50",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-grayscale.html": [
+ "925c83cd027c1398544d4f6aa7e996f1b14fdac7",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-hue-rotate-ref.html": [
+ "c70f6bcf9e315f2a9d39b3a564649d2f2d6b7e5d",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-hue-rotate.html": [
+ "17d2a3c6a83f0208ffde3cf04c7352f82de2f0da",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-invert-ref.html": [
+ "ed3da4201617770961fea2b003e899d3d66bf199",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-invert.html": [
+ "59ec599f08e3b20c64ecaeefebeac9b393a628dc",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-opacity-ref.html": [
+ "fef130ea59cf91529e9e4260ed4d27c03cf3dc22",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-opacity.html": [
+ "850c41d10d58002b5259b8c7406593221d871113",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-saturate-ref.html": [
+ "d8b72346c0b79fa90d8ab763a9a2ddffcdf15430",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-saturate.html": [
+ "f131641ce85f233ffc8c7dbf3079497c5783b269",
+ "reftest"
+ ],
+ "css/filter-effects/backdrop-filters-sepia-ref.html": [
+ "624fb876f523d9a53aa825b60b2a189a29ea1f20",
+ "support"
+ ],
+ "css/filter-effects/backdrop-filters-sepia.html": [
+ "bcfae3d2c7235693d83d7c7448aa7083128e6d0d",
+ "reftest"
+ ],
"css/filter-effects/blur-clip-stacking-context-001.html": [
"a96994a8afe126e474f9ee015338749f0015dc1f",
"reftest"
@@ -589339,11 +590010,11 @@
"reftest"
],
"css/filter-effects/css-backdrop-filters-animation-opacity-ref.html": [
- "fd92dba5e575dc298ebbd34c306ee506e6b40fcc",
+ "c9253d281388e9a3916f20281968fd2c82ebeba0",
"support"
],
"css/filter-effects/css-backdrop-filters-animation-opacity.html": [
- "d6c6d35efc670bc4b1f92696345052c71077553f",
+ "72078e7c07b0230cc89e33aca21c9616e72b1022",
"reftest"
],
"css/filter-effects/css-backdrop-filters-animation-saturate-ref.html": [
@@ -594466,6 +595137,22 @@
"447e3cc98dd78c4c5789c66e74e46ff37f25dd4e",
"reftest"
],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html": [
+ "095b2f0ba58cda3b53d631a9811c7fbd943a1eab",
+ "support"
+ ],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html": [
+ "fbb776a2568ce9d84602b846f91743bc3225d80b",
+ "reftest"
+ ],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html": [
+ "a2ec520bb3e2e41cfe5aa57b1462d7f55a707b9f",
+ "support"
+ ],
+ "css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html": [
+ "c9fcfbd2cdf8d105de2310f224f8d7c95f9c81f6",
+ "reftest"
+ ],
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-table-caption-001-ref.html": [
"49b09334f2bf4ec2651dd13ec3484838336d50c9",
"support"
@@ -594475,7 +595162,7 @@
"reftest"
],
"css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list": [
- "9a70ca1e9ae609f583a9837916718392e799571c",
+ "7bb355283c803a9765e37be9e00bdb79e660ab35",
"support"
],
"css/vendor-imports/mozilla/mozilla-central-reftests/counter-styles-3/dependent-builtin-ref.html": [
@@ -608470,19 +609157,19 @@
"a86e0a077851a84f704e2aa4df1d526ecd9a55b2",
"support"
],
- "feature-policy/reporting/midi-report-only.html": [
+ "feature-policy/reporting/midi-report-only.https.html": [
"bf0234d3f6511f4ecfeb43857494e4dee0666b79",
"testharness"
],
- "feature-policy/reporting/midi-report-only.html.headers": [
+ "feature-policy/reporting/midi-report-only.https.html.headers": [
"d307ccc9b09ca486e2ffd85efec14cfdbd285ad4",
"support"
],
- "feature-policy/reporting/midi-reporting.html": [
+ "feature-policy/reporting/midi-reporting.https.html": [
"94674a37a8106ccc44ae4c8bb646e472ae98aab9",
"testharness"
],
- "feature-policy/reporting/midi-reporting.html.headers": [
+ "feature-policy/reporting/midi-reporting.https.html.headers": [
"0e145978a014f08fb5faff42750e9338da0f9ede",
"support"
],
@@ -614755,7 +615442,7 @@
"support"
],
"html/dom/elements-obsolete.js": [
- "7f673cb7f0ee9bbeae746448163bbc11e31a1220",
+ "3ef9e9f99711f7321a86f7f7ab7e6dab691b58ea",
"support"
],
"html/dom/elements-sections.js": [
@@ -629691,31 +630378,35 @@
"testharness"
],
"html/user-activation/activation-api-iframe.tenative.html": [
- "2202048ae9166d092673084c6a08fc9d39a1f666",
+ "16b0ba672bc4a27659efaa0fc24907e3f5925437",
"testharness"
],
"html/user-activation/activation-api-setTimeout.tentative.html": [
"a8eba38c60eeef7396c2725d26ea3c6e6609be7a",
"testharness"
],
+ "html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html": [
+ "7dd8018573db2808b7166cf7e94650a2a5a330bc",
+ "manual"
+ ],
"html/user-activation/activation-thru-contextmenu-event-manual.html": [
"998bac3694c6f81e099c1c9eab41c704adcf10f9",
"manual"
],
"html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html": [
- "edaad261478561c15550488df56f5e82da02e9bd",
+ "777cb5b11efe0ad664d34825bc6b5b69724f8c68",
"testharness"
],
"html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html": [
- "e7d98c3b194a03da025ab5b08b5d2c47007222c4",
+ "ef1602a8c36a43b078950521a81c3747979d7b82",
"testharness"
],
"html/user-activation/activation-transfer-with-click.tentative.html": [
- "6b7a2b72967124c5a4cbb7d5df1a7546784b2254",
+ "040d36c3190d228a7326ed0ea5dd46153f1b997b",
"testharness"
],
"html/user-activation/activation-transfer-without-click.tentative.html": [
- "50cce1fcc6ac38a745b5748f4e2d3a3fd3982311",
+ "a12d4346a8e3cb475bb7446f784a626e46cd1e26",
"testharness"
],
"html/user-activation/message-event-activation-api-iframe-cross-origin.sub.tentative.html": [
@@ -629730,12 +630421,16 @@
"4f03195f434742d80574c481092b307d4ad9108f",
"manual"
],
- "html/user-activation/resources/child-five.html": [
- "9260a300a1bdd1561dbae8ae99e8be7a74bce337",
+ "html/user-activation/resources/activation-hierarchy-child.sub.html": [
+ "ebccc8c0dbf9da8a95049712f0fdd641b66b629b",
+ "support"
+ ],
+ "html/user-activation/resources/activation-hierarchy-grandchild.html": [
+ "b9fe19a746ffbbe63740df67a77da8a894b573ae",
"support"
],
"html/user-activation/resources/child-four.html": [
- "4811edb7ef0bf125d9256c6bb7c1bc863729b077",
+ "65d17f273e1868312f59c89f3f2d05bda759ae1a",
"support"
],
"html/user-activation/resources/child-one.html": [
@@ -629747,7 +630442,7 @@
"support"
],
"html/user-activation/resources/child-two.html": [
- "7d48789878a902e8a773548e2012665d279fb4ea",
+ "1fa8343a18684e1160ae763c4d32cd3fa4027399",
"support"
],
"html/webappapis/animation-frames/callback-exception.html": [
@@ -631546,6 +632241,10 @@
"1686fc123a798bddbf626f4d112516317739da8f",
"support"
],
+ "inert/frame/button.html": [
+ "5867c758142c6652362a23f19533a8d86fe29648",
+ "support"
+ ],
"inert/inert-does-not-match-disabled-selector.tentative.html": [
"74b8ac3f7dd5c3447bf47fd732fade9220497c93",
"testharness"
@@ -631574,6 +632273,14 @@
"7d5e90821bb0bd0d83711685853c78ff9fee6c4f",
"testharness"
],
+ "inert/inert-retargeting-iframe.tentative.html": [
+ "78d7f6b36a7af8181916c125a789e24dd2535ac1",
+ "testharness"
+ ],
+ "inert/inert-retargeting.tentative.html": [
+ "d239a7056f2ffa971eda8e185bb1ab594e29226d",
+ "testharness"
+ ],
"infrastructure/META.yml": [
"c1d3b0c9ec4c3f6458597d8596cc3213866598df",
"support"
@@ -632111,7 +632818,7 @@
"support"
],
"interfaces/animation-worklet.idl": [
- "159cabd09cd0b425c933cdfde58c46c8f14c9819",
+ "d223a745046f5ff65054306488285c031288d105",
"support"
],
"interfaces/appmanifest.idl": [
@@ -633071,7 +633778,7 @@
"testharness"
],
"largest-contentful-paint/observe-image.html": [
- "f98912085aaf2677f4dbd85fba37c4b7f49ac5c2",
+ "43cdfab074d62827fca5e55b8b334b9fafb6507b",
"testharness"
],
"largest-contentful-paint/observe-text.html": [
@@ -633147,7 +633854,7 @@
"testharness"
],
"lint.whitelist": [
- "9966d7c307b5520ab251d69f231526df762dc4ba",
+ "c344c3a834444db4be24db1d0132c85a4b14395c",
"support"
],
"loading/preloader-css-import-no-quote.tentative.html": [
@@ -634991,7 +635698,7 @@
"testharness"
],
"mediacapture-streams/idlharness.https.window.js": [
- "976d31b6609350a0ccc18a4be7764e7e3797b614",
+ "5b255fca6b0b770ab6f849afe5d657c66052215a",
"testharness"
],
"mediasession/META.yml": [
@@ -643694,6 +644401,14 @@
"11a96dcd745e3c282f352ad44b8485319846eb89",
"testharness"
],
+ "offscreen-canvas/text/2d.text.font.relative_size.html": [
+ "75ce1053ae5c58174d74901488c980fdfdd28c33",
+ "testharness"
+ ],
+ "offscreen-canvas/text/2d.text.font.relative_size.worker.js": [
+ "34836a1c4f4d3f8f00a3c5da9c42a480642e3480",
+ "testharness"
+ ],
"offscreen-canvas/text/2d.text.measure.actualBoundingBox.html": [
"e747d30680318cb8c0a9214219b4eefe9e74cd6c",
"testharness"
@@ -644327,7 +645042,7 @@
"support"
],
"offscreen-canvas/tools/tests2d.yaml": [
- "0aaad783101b5695fe49a9c3869fdb4e6ee69a18",
+ "4bdf32db6c1be5c6a53b8d7f38a1b662e623f6e8",
"support"
],
"offscreen-canvas/transformations/2d.transformation.order.html": [
@@ -646526,6 +647241,10 @@
"16d893ca7e54adde5fec3744b95a14f7e2cf3f34",
"testharness"
],
+ "preload/subresource-integrity.html": [
+ "08c7854a9ecff0c6510d7ce7752de8e601e1530a",
+ "testharness"
+ ],
"presentation-api/META.yml": [
"beba89062154273b1eabca34f392ccbc1794932c",
"support"
@@ -647123,7 +647842,7 @@
"support"
],
"referrer-policy/generic/referrer-policy-test-case.sub.js": [
- "b2867609e7ecb09d2ffc84494b8cdb6650f14a76",
+ "0c0f38195309e45de66e106f574a18cdde0e7cdf",
"support"
],
"referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html": [
@@ -656583,7 +657302,7 @@
"support"
],
"resources/chromium/webxr-test.js": [
- "5406b6745bdf021b59aa21f669e0cdbc6e858045",
+ "5ed96b8fc93fa21dd5631e27ccec0544828d1c3b",
"support"
],
"resources/chromium/webxr-test.js.headers": [
@@ -656603,7 +657322,7 @@
"support"
],
"resources/sriharness.js": [
- "9d7fa76a7d65f63ce8a3844920388ffb39b83bc3",
+ "fe8ad2b4270c2f048a6a9eada153b1a1b2e90f1b",
"support"
],
"resources/test/README.md": [
@@ -661286,10 +662005,6 @@
"979efabdcb07cfdc0190383026a24e144dea1747",
"testharness"
],
- "shape-detection/detection-HTMLVideoElement-invalid-state.html": [
- "e777c96e4a1737968d60f390bf97d5f4c971e95d",
- "testharness"
- ],
"shape-detection/detection-HTMLVideoElement.html": [
"7b3736d02e9b6b0769a18354b054e5c3ce268773",
"testharness"
@@ -661335,7 +662050,7 @@
"support"
],
"shape-detection/shapedetection-cross-origin.sub.html": [
- "f45369266973ee771c648d01b6e4a48ce1282959",
+ "c9d86430356de470bca7a8dfef8596e9159164ad",
"testharness"
],
"shape-detection/shapedetection-empty-input.html": [
@@ -661927,7 +662642,7 @@
"support"
],
"std-toast/attributes.html": [
- "9bfc65c395cd37c07f7499a03e5cdfb6fe16c85e",
+ "2aef41aea618e0ec838ba7885494c69dd106ff17",
"testharness"
],
"std-toast/events-open.html": [
@@ -662443,7 +663158,7 @@
"support"
],
"subresource-integrity/sri-test-helpers.sub.js": [
- "22c9e9c5dd9af81d988f9c1570645925a558d070",
+ "53102d45442ead0576f34b8c33f659f6f7a10999",
"support"
],
"subresource-integrity/style.css": [
@@ -680183,7 +680898,7 @@
"testharness"
],
"webusb/usbDevice.https.any.js": [
- "baff28367b28ac373f0b01af99881c64fefb33c2",
+ "03dbe8f441369f824e17a850dffdfa3b616c63b0",
"testharness"
],
"webusb/usbEndpoint.https.any.js": [
diff --git a/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-001.html.ini b/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-001.html.ini
new file mode 100644
index 00000000000..5e3f2d998e3
--- /dev/null
+++ b/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-001.html.ini
@@ -0,0 +1,4 @@
+[hit-test-floats-001.html]
+ [hit-test-floats-001]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-computed.sub.html.ini b/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-computed.sub.html.ini
new file mode 100644
index 00000000000..673f52af105
--- /dev/null
+++ b/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-computed.sub.html.ini
@@ -0,0 +1,10 @@
+[background-image-computed.sub.html]
+ [Property background-image value 'radial-gradient(ellipse calc(-0.5em + 10px) calc(0.5em + 10px) at 20px 30px, red, blue)' computes to 'radial-gradient(0px 30px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))']
+ expected: FAIL
+
+ [Property background-image value 'radial-gradient(circle calc(-0.5em + 10px) at calc(-1em + 10px) calc(-2em + 10px), red, blue)' computes to 'radial-gradient(0px at -30px -70px, rgb(255, 0, 0), rgb(0, 0, 255))']
+ expected: FAIL
+
+ [Property background-image value 'radial-gradient(ellipse calc(0.5em + 10px) calc(-0.5em + 10px) at 20px 30px, red, blue)' computes to 'radial-gradient(30px 0px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))']
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-invalid.html.ini b/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-invalid.html.ini
new file mode 100644
index 00000000000..183b1db9b2e
--- /dev/null
+++ b/tests/wpt/metadata/css/css-backgrounds/parsing/background-image-invalid.html.ini
@@ -0,0 +1,19 @@
+[background-image-invalid.html]
+ [e.style['background-image'\] = "radial-gradient(ellipse -20px 30px at center, red, blue)" should not set the property value]
+ expected: FAIL
+
+ [e.style['background-image'\] = "repeating-radial-gradient(-20% 30% at center, red, blue)" should not set the property value]
+ expected: FAIL
+
+ [e.style['background-image'\] = "radial-gradient(circle -10px at center, red, blue)" should not set the property value]
+ expected: FAIL
+
+ [e.style['background-image'\] = "repeating-radial-gradient(20px -30px ellipse at center, red, blue)" should not set the property value]
+ expected: FAIL
+
+ [e.style['background-image'\] = "radial-gradient(20px -30px at center, red, blue)" should not set the property value]
+ expected: FAIL
+
+ [e.style['background-image'\] = "repeating-radial-gradient(-10px at center, red, blue)" should not set the property value]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-fonts/crash-font-face-invalid-descriptor.html.ini b/tests/wpt/metadata/css/css-fonts/crash-font-face-invalid-descriptor.html.ini
new file mode 100644
index 00000000000..ab193b8aed2
--- /dev/null
+++ b/tests/wpt/metadata/css/css-fonts/crash-font-face-invalid-descriptor.html.ini
@@ -0,0 +1,4 @@
+[crash-font-face-invalid-descriptor.html]
+ [Do not crash when setting an invalid @font-face descriptor via CSSOM]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-transitions/properties-value-001.html.ini b/tests/wpt/metadata/css/css-transitions/properties-value-001.html.ini
index 1bf87ac2d4a..daaf3fa242e 100644
--- a/tests/wpt/metadata/css/css-transitions/properties-value-001.html.ini
+++ b/tests/wpt/metadata/css/css-transitions/properties-value-001.html.ini
@@ -1079,12 +1079,27 @@
[text-indent percentage(%) / values]
expected: FAIL
- [margin-top length(pt) / values]
- expected: FAIL
-
[padding-bottom length(ex) / values]
expected: FAIL
[padding-bottom length(cm) / values]
expected: FAIL
+ [margin-right length(in) / values]
+ expected: FAIL
+
+ [padding-left length(px) / values]
+ expected: FAIL
+
+ [padding-bottom length(mm) / values]
+ expected: FAIL
+
+ [margin-top length(px) / values]
+ expected: FAIL
+
+ [padding-left length(pt) / values]
+ expected: FAIL
+
+ [margin-right length(cm) / values]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini b/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini
index 1c8f983cd37..8850ec200da 100644
--- a/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini
+++ b/tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini
@@ -74,6 +74,3 @@
[opacity end]
expected: FAIL
- [outline-width end]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/css/css-ui/appearance-initial-value-001.html.ini b/tests/wpt/metadata/css/css-ui/appearance-initial-value-001.html.ini
new file mode 100644
index 00000000000..3e1041748fa
--- /dev/null
+++ b/tests/wpt/metadata/css/css-ui/appearance-initial-value-001.html.ini
@@ -0,0 +1,13 @@
+[appearance-initial-value-001.html]
+ [support for appearance]
+ expected: FAIL
+
+ [initial value for appearance]
+ expected: FAIL
+
+ [support for -webkit-appearance]
+ expected: FAIL
+
+ [initial value for -webkit-appearance]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/css/cssom-view/elementsFromPoint-iframes.html.ini b/tests/wpt/metadata/css/cssom-view/elementsFromPoint-iframes.html.ini
index e89282b04a1..ff5b07adb77 100644
--- a/tests/wpt/metadata/css/cssom-view/elementsFromPoint-iframes.html.ini
+++ b/tests/wpt/metadata/css/cssom-view/elementsFromPoint-iframes.html.ini
@@ -1,5 +1,5 @@
[elementsFromPoint-iframes.html]
- expected: CRASH
+ expected: TIMEOUT
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL
diff --git a/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini b/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
new file mode 100644
index 00000000000..e6e1f29e274
--- /dev/null
+++ b/tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
@@ -0,0 +1,2 @@
+[matchMedia-display-none-iframe.html]
+ expected: ERROR
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-brightness.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-brightness.html.ini
new file mode 100644
index 00000000000..b943fa3accb
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-brightness.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-brightness.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-contrast.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-contrast.html.ini
new file mode 100644
index 00000000000..9c7457cb524
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-contrast.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-contrast.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-grayscale.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-grayscale.html.ini
new file mode 100644
index 00000000000..2bc222e8e5e
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-grayscale.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-grayscale.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-hue-rotate.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-hue-rotate.html.ini
new file mode 100644
index 00000000000..441f50d322f
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-hue-rotate.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-hue-rotate.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-invert.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-invert.html.ini
new file mode 100644
index 00000000000..cf798099734
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-invert.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-invert.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-saturate.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-saturate.html.ini
new file mode 100644
index 00000000000..714f3725437
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-saturate.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-saturate.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/css/filter-effects/backdrop-filters-sepia.html.ini b/tests/wpt/metadata/css/filter-effects/backdrop-filters-sepia.html.ini
new file mode 100644
index 00000000000..c35ae9ceea1
--- /dev/null
+++ b/tests/wpt/metadata/css/filter-effects/backdrop-filters-sepia.html.ini
@@ -0,0 +1,2 @@
+[backdrop-filters-sepia.html]
+ expected: FAIL
diff --git a/tests/wpt/metadata/fetch/content-type/response.window.js.ini b/tests/wpt/metadata/fetch/content-type/response.window.js.ini
index f5210864539..b3d5fd5662a 100644
--- a/tests/wpt/metadata/fetch/content-type/response.window.js.ini
+++ b/tests/wpt/metadata/fetch/content-type/response.window.js.ini
@@ -312,18 +312,18 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL
- [<iframe>: combined response Content-Type: */* text/html]
- expected: FAIL
-
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
- [<iframe>: separate response Content-Type: text/plain */*]
+ [<iframe>: combined response Content-Type: text/html;" text/plain]
+ expected: FAIL
+
+ [<iframe>: separate response Content-Type: text/html */*]
expected: FAIL
- [<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
+ [<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL
diff --git a/tests/wpt/metadata/fetch/content-type/script.window.js.ini b/tests/wpt/metadata/fetch/content-type/script.window.js.ini
index 2d5faa72ac7..7d1d683ccbf 100644
--- a/tests/wpt/metadata/fetch/content-type/script.window.js.ini
+++ b/tests/wpt/metadata/fetch/content-type/script.window.js.ini
@@ -56,3 +56,12 @@
[separate text/javascript;charset=windows-1252 error text/javascript]
expected: FAIL
+ [separate text/javascript x/x]
+ expected: FAIL
+
+ [separate text/javascript;charset=windows-1252 text/javascript]
+ expected: FAIL
+
+ [separate text/javascript ]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
deleted file mode 100644
index 87b07c3e670..00000000000
--- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[traverse_the_history_1.html]
- [Multiple history traversals from the same task]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini
index dc2e45516de..51f8272a6de 100644
--- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini
+++ b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini
@@ -1,4 +1,4 @@
-[traverse_the_history_5.html]
+[traverse_the_history_3.html]
[Multiple history traversals, last would be aborted]
expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini
index e02f179ec25..bf50d59df41 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini
@@ -1,24 +1,5 @@
[open-features-negative-innerwidth-innerheight.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: negative values for legacy `innerwidth`, `innerheight`]
expected: FAIL
- [features "innerheight=-404.5" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "innerwidth=-404.5" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "innerwidth=-404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "innerheight=-404e1" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "innerheight=-404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "innerwidth=-404e1" should NOT set "width=404"]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html.ini
index 23eefb8eaf9..e150c9d848f 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-screenx-screeny.html.ini
@@ -1,24 +1,5 @@
[open-features-negative-screenx-screeny.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: negative values for legacy `screenx`, `screeny`]
expected: FAIL
- [features "screenx=-204" should NOT set "left=204"]
- expected: TIMEOUT
-
- [features "screeny=-204" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "screeny=-204.5" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "screeny=-0" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "screenx=-0" should NOT set "left=204"]
- expected: TIMEOUT
-
- [features "screenx=-204.5" should NOT set "left=204"]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini
index 940516ddd33..ad8840fbb68 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini
@@ -1,24 +1,5 @@
[open-features-negative-top-left.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: negative values for `top`, `left`]
expected: FAIL
- [features "top=-204" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "top=-204.5" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "left=-204" should NOT set "left=204"]
- expected: TIMEOUT
-
- [features "top=-0" should NOT set "top=204"]
- expected: TIMEOUT
-
- [features "left=-204.5" should NOT set "left=204"]
- expected: TIMEOUT
-
- [features "left=-0" should NOT set "left=204"]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini
index 9027336b453..d1ed9088b2b 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini
@@ -1,24 +1,5 @@
[open-features-negative-width-height.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: negative values for `width`, `height`]
expected: FAIL
- [features "height=-404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "height=-404e1" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "height=-404.5" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "width=-404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "width=-404e1" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "width=-404.5" should NOT set "width=404"]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html.ini
index 4e44584b123..a70e9dbad4d 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-height.html.ini
@@ -1,48 +1,32 @@
[open-features-non-integer-height.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for feature `height`]
expected: FAIL
[features "height=405*3" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405.32" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405e1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405/5" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405^4" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405.5" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405e-1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405 " should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "height=405LLl" should set "height=405"]
- expected: TIMEOUT
-
- [features "height=/404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [top=0,left=0,width=401,: absence of feature "height" should be treated same as "height=0"]
- expected: TIMEOUT
-
- [top=0,left=0: absence of feature "height" should be treated same as "height=0"]
- expected: TIMEOUT
-
- [features "height=_404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "height=L404" should NOT set "height=404"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html.ini
index fcaeae5336d..779531b4a98 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerheight.html.ini
@@ -1,42 +1,32 @@
[open-features-non-integer-innerheight.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for legacy feature `innerheight`]
expected: FAIL
[features "innerheight=405e-1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405LLl" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405^4" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405e1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405 " should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405/5" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405.32" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405.5" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerheight=405*3" should set "height=405"]
- expected: TIMEOUT
-
- [features "innerheight=_404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "innerheight=L404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "innerheight=/404" should NOT set "height=404"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html.ini
index 42327fedd27..7a1b258d52e 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-innerwidth.html.ini
@@ -1,42 +1,32 @@
[open-features-non-integer-innerwidth.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for legacy feature `innerwidth`]
expected: FAIL
[features "innerwidth=405e-1" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405*3" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405.5" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405e1" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405.32" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405 " should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405LLl" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405/5" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "innerwidth=405^4" should set "width=405"]
- expected: TIMEOUT
-
- [features "innerwidth=/404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "innerwidth=_404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "innerwidth=L404" should NOT set "width=404"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html.ini
index a8e4fe06618..caba4124f0b 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-left.html.ini
@@ -1,42 +1,32 @@
[open-features-non-integer-left.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for feature `left`]
expected: FAIL
[features "left=105e1" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105 " should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105/5" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105e-1" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105^4" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105LLl" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105.32" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105*3" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "left=105.5" should set "left=105"]
- expected: TIMEOUT
-
- [features "left=L104" should NOT set "left=104"]
- expected: TIMEOUT
-
- [features "left=/104" should NOT set "left=104"]
- expected: TIMEOUT
-
- [features "left=_104" should NOT set "left=104"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html.ini
index 64a08faf0e6..9ace8a4cbdb 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screenx.html.ini
@@ -1,42 +1,32 @@
[open-features-non-integer-screenx.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for legacy feature `screenx`]
expected: FAIL
[features "screenx=105.5" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105e1" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105 " should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105*3" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105e-1" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105^4" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105LLl" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105/5" should set "left=105"]
- expected: TIMEOUT
+ expected: FAIL
[features "screenx=105.32" should set "left=105"]
- expected: TIMEOUT
-
- [features "screenx=_104" should NOT set "left=104"]
- expected: TIMEOUT
-
- [features "screenx=L104" should NOT set "left=104"]
- expected: TIMEOUT
-
- [features "screenx=/104" should NOT set "left=104"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html.ini
index 4f22ef4ef29..a82bd0f981a 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-screeny.html.ini
@@ -1,42 +1,32 @@
[open-features-non-integer-screeny.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for legacy feature `screeny`]
expected: FAIL
[features "screeny=405^4" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405e-1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405LLl" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405e1" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405 " should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405/5" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405*3" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405.32" should set "height=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "screeny=405.5" should set "height=405"]
- expected: TIMEOUT
-
- [features "screeny=_404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "screeny=L404" should NOT set "height=404"]
- expected: TIMEOUT
-
- [features "screeny=/404" should NOT set "height=404"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini
index 9d841e61bc0..28f93ee71b5 100644
--- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini
+++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini
@@ -1,48 +1,32 @@
[open-features-non-integer-width.html]
type: testharness
- expected: TIMEOUT
[HTML: window.open `features`: non-integer values for feature `width`]
expected: FAIL
[features "width=405^4" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405.5" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405e1" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405 " should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405.32" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405LLl" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405*3" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405e-1" should set "width=405"]
- expected: TIMEOUT
+ expected: FAIL
[features "width=405/5" should set "width=405"]
- expected: TIMEOUT
-
- [top=0,left=0: absence of feature "width" should be treated same as "width=0"]
- expected: TIMEOUT
-
- [features "width=_404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [top=0,left=0,height=401,: absence of feature "width" should be treated same as "width=0"]
- expected: TIMEOUT
-
- [features "width=/404" should NOT set "width=404"]
- expected: TIMEOUT
-
- [features "width=L404" should NOT set "width=404"]
- expected: TIMEOUT
+ expected: FAIL
diff --git a/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini b/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
deleted file mode 100644
index a9677391662..00000000000
--- a/tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[DOMContentLoaded-defer.html]
- [The end: DOMContentLoaded and defer scripts]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini
index 034d9baebfa..496bad988c6 100644
--- a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini
+++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini
@@ -1,5 +1,4 @@
[promise-rejection-events.html]
- expected: TIMEOUT
[delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire]
expected: FAIL
@@ -9,6 +8,3 @@
[no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from createImageBitmap]
expected: FAIL
- [rejectionhandled is dispatched from a queued task, and not immediately]
- expected: TIMEOUT
-
diff --git a/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.html.ini b/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.html.ini
new file mode 100644
index 00000000000..3b0a22523af
--- /dev/null
+++ b/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.html.ini
@@ -0,0 +1,4 @@
+[2d.text.font.relative_size.html]
+ [OffscreenCanvas test: 2d.text.font.relative_size]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.worker.js.ini b/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.worker.js.ini
new file mode 100644
index 00000000000..d8ba1ee8817
--- /dev/null
+++ b/tests/wpt/metadata/offscreen-canvas/text/2d.text.font.relative_size.worker.js.ini
@@ -0,0 +1,4 @@
+[2d.text.font.relative_size.worker.html]
+ [2d]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 87fbd96db78..12a5cd09dc2 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 8d75c147ec2..a4d28f41d6d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 161226fe512..5817eb0da4a 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index ccca019bea2..ce1aad083cc 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 82a572ef120..b80fc613745 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index f04b239de32..8eb8b97559f 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 83305f6df9d..846abe7971d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 8e4d39fbfcb..50e8f299aeb 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index f9da898e2fd..8571a8a5666 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index ce7599014ff..bba23556c90 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 3ee93245611..0d9b95c7b42 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index b1dee3f6c89..fe668d7d230 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index a011497f594..42b8bf7707d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index b6e6dd13a14..e5e190fd617 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 13bf51b9f0c..4816dc6a526 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index d4cb4c546a2..35bed520d01 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 75fc6efa0e3..6315a5722d2 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 23fb2f0e215..c609cc3ec1c 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index a9d14d7c37d..7343a30eacb 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 75ddef372f8..66c03136d89 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 582364b9d6b..9cb0f322ab4 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 3c113cadc93..2c008cef1c8 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index a4e09c2cb7e..71f52c92fd0 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 745d0bb6471..51936159895 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index caed3c280da..f66c58d81e4 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index c9f2d9a2df5..abc14bc52d7 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 33d12116ea0..197d134a6d1 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index e0ec15c6453..ac26a6722e4 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index bb7b5a68e5d..fed459ac66f 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 283784ad708..3046c2815cd 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 1c91b43bde1..3f66eccd6f4 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 7f27d13053f..71b046b15d1 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index e453af3d9b6..45a1457440d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 31b29c11c9d..81596f80c0f 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 0ba8bf08141..e819d7f6741 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 983ef2008ac..828dcf21357 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index 3f562e4fd2c..c374f6f89fe 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 0a89b6c7637..6a000e32a7d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
index 7d7b3c47f1a..7fdd4d692ba 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 1d2cbaa7817..2118854fa9f 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
index 3d77b5936f9..766da0d6474 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 384e4612621..58d788d5786 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
index dc070973604..d5f74dfa772 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 8ef614e6be3..2286942b406 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index 1c9028cce27..943ef3fd159 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 17cc40feab4..db9c9f78f7e 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 1c713b886c6..61da1697d99 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index f4d7be215c3..a3c2ad5eef2 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 2eb178080ba..e975858b7ec 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index b80d3b8fe48..64c4c388ac0 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 877c9c15403..dde077f10d3 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 7c8c727c0ff..78149036e73 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index 1a7723838ee..0cf9912a33f 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index aff30655e2d..ad714ebb689 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 316fb1b4160..792cfc57d7d 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 67a48b005f5..3b31ba40615 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index b21f5806490..15349e531d0 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 1e91e32bd6a..1d072c7d4c9 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index f93e4ef1448..1daad6b7d6b 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 36e30ba6992..7d0c39cb3cc 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 7e00df7995a..6cd12958b43 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index ab1ab56ea48..3907f95eed7 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index af3301ec557..2a34651d6cf 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index d72a9835378..3be8d9efc09 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index c9e90224a2e..009b35be40c 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 0f203ba305b..65cfc676817 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index dcdd6938e5b..de68c5fa126 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 3f2404df74a..93793807f78 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 08c98a2f4a8..f50d08cd3cc 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 5dcaa637717..b9dcca87a63 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index 304fbf57855..c7fb3e205be 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 4579d20a688..a34a441e55a 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
index d1f76008abe..b271f375d30 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 20f1e63be34..52826ff8251 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
index d7137fcb533..2f0a7f1ec9c 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
index b25e2d2d880..b87bce3de93 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
index a2a5cffd1d5..8d77cf81ec0 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 41fe83efb95..31e07dd9f3e 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index 23da34b0cd5..d4a7d33f502 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 08898f89895..095cd3faa9a 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 8982fb1a9fa..35a4ddb2837 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index c59ff9a96a9..135a3d109f5 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index d97aa17fcd3..7967eb34605 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 9784deb2ea6..34b0e98e84a 100644
--- a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index af6cddecb4b..1d7148e9f9f 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index 4f7b66385c7..4b76a9b6851 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index 345f9e28f60..49d74de2246 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index c18fcf58b84..849093f1f7c 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 0907ce65f93..86514ba896e 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
index b8c5e0a20aa..9c10d225e0b 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index b52f5f0ae89..a001954a682 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index 5be743193c8..aaca5fdf3eb 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index 36db938a125..9f632f33fd7 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
index 973ff1a2d54..59cecc09863 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index 06d48da87e1..5670328a744 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
index 08ac52ca621..968d795fe10 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 9a0f9829ce4..5e01e9a6ba8 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
index cd15d620b94..a4fcfa403bf 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index 658b54a473e..02ebca61dc9 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 6973595defb..ad8ffc3ee0c 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
index 46f27b8ba8b..09570890753 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index 42a5eddc4b5..a5ab789dcef 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index e380c0724fc..545f59d1a19 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index f4c2d7508cf..39d6dda42d5 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
index 7275da85bfa..812d7ad9bdc 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index f6f8e0f6aa9..4535e5725f0 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
index 6ca3decba56..54a8f83d340 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index b824231e10b..5a6c8dbbec6 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
index 57ec6c44f4f..1ce696332ab 100644
--- a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index af6cddecb4b..1d7148e9f9f 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index 4f7b66385c7..4b76a9b6851 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index 345f9e28f60..49d74de2246 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index c18fcf58b84..849093f1f7c 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 0907ce65f93..86514ba896e 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
index b8c5e0a20aa..9c10d225e0b 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index b52f5f0ae89..a001954a682 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index 5be743193c8..aaca5fdf3eb 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index 36db938a125..9f632f33fd7 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
index 973ff1a2d54..59cecc09863 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index 06d48da87e1..5670328a744 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
index 08ac52ca621..968d795fe10 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 9a0f9829ce4..5e01e9a6ba8 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
index cd15d620b94..a4fcfa403bf 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
index 658b54a473e..02ebca61dc9 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index 6973595defb..ad8ffc3ee0c 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
index 46f27b8ba8b..09570890753 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
index 42a5eddc4b5..a5ab789dcef 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
index e380c0724fc..545f59d1a19 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index f4c2d7508cf..39d6dda42d5 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
index 7275da85bfa..812d7ad9bdc 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
index f6f8e0f6aa9..4535e5725f0 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
index 6ca3decba56..54a8f83d340 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
index b824231e10b..5a6c8dbbec6 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
index 57ec6c44f4f..1ce696332ab 100644
--- a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
new file mode 100644
index 00000000000..06a505e8827
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-origin-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
index ee279c1b51f..f2dcd805f7f 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
index d45f694be68..12109c3e2f4 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
index 9ce8e143fd7..bce94de5078 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
index c34d3fae07c..4a285eb1006 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
index b492317cdb2..8c5f67be889 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
index 03028674396..c013f340a15 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
index 90f5c85d349..5e1100f6735 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
index 2a0b2513060..5915f7e608c 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
index d7fee4926c1..267c0a34357 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
index 30a1f1db82c..03de534f0da 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
index ed7da8cfaab..97dd50a6dc5 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
index 77dcdf3095e..e475749fa52 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
index 139234b6f1a..6f7aa044258 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
index 7861f99ba84..d8377dfe8fb 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
index 9175dc9426f..bc1dbdcfbce 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
index 605ebf54b0a..59ef6228099 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
index 61408493c82..06e8a2fa985 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
index eb7fc8a5b47..6c80bf60055 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
index 9f08fd7a29a..fb54dd62ed7 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
index 7d0edee1cb6..1f1cdc2a0aa 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
index ea60dfae00d..365043a6a5e 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
index 5d95b1cc4fb..2fb839c195e 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
index 5cbfc8f5a14..59ad18b18b0 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
index 3200ba3e450..53ac15218e8 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
index a6497fceda3..5275d00f660 100644
--- a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini
new file mode 100644
index 00000000000..16b8d4b07a3
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.ini
@@ -0,0 +1,4 @@
+[same-insecure.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index 241c2992c66..6e1bbd01763 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index 07ce6cf8412..06f6b638140 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index df0201c01ba..2946534ce7f 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index b811a8a2e47..c51a2737ae8 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index 03583e915f3..d756a14a399 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 56ad8def1f6..8456e54dcde 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index e10259527ba..afc225cd19e 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index 8d907c757e7..6faed8d67f7 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index e2e1e5910d7..22c48cff1ab 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index 4983ea82110..2c31558bba2 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index 9513cd62147..bcf9dc8f58b 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index 448170bc576..a405585e6b5 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index 78a039b6187..60048fca2ce 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 332083f9a4c..5c552e9b729 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index 077a77022e0..21cc58e8d88 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index fd9dd77b95d..b37a1bbae83 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index 2f28fce0ca4..4e93c7e37d2 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
index 3f37fa88ba1..6a2342ba858 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
index a86c481cea7..31b657fe24e 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
index d0d1fa688ac..ea3eb524fb5 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index ae06287f163..fa7bcf165b1 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index b031578c47d..6e8f771beb6 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index 9dca305ff30..5348664f5e8 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index c6f650306cc..606dd43e834 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
index 4457a24f096..9498fe18901 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
index 1b7680735c8..26b5956d41e 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
index d116a80723d..c752d99f73a 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 2d8f2398fb1..736fc3b74ac 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index 84312717081..928195a1fff 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index cd5167f2260..1def7dc386c 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index 6eefb7e9c64..dc406d40d13 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
index d5765bcb691..bdf52283328 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
index 766324d6810..b3550a82c03 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
index ddd572f6994..06551e637dd 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index fef9fae51de..fa5cec93257 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index 1286941d61f..3ed4010e48a 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index 0fd246ff46c..d41b22e078f 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
index 560ed8caa2b..d351b210a72 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
index afa4cbd35ea..f823a25e7ff 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
index f96afb67367..377b079b01f 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
index d9053efc9b0..f1459f52d61 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
index 9208438ea34..0dc84dfc056 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
index eec614414a1..2f4f8e7d6b9 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index 4867ef3001b..ea3bbdd0569 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
index 75d63814de9..51e726eaf43 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
index cd420afe235..4b3dc3a3050 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
index 939cd5394f5..74a7b65fc34 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 1441ef9e30a..b9f8b3ef0cb 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index df45cca59de..892fae4e4fb 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index 8e7b7fd552a..a544ebf60a8 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index 63e74c508a1..abdb770dbfd 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
index 7f100b45481..608586e0964 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
index cfcdfc72619..22e1f99cdae 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
index 278c0c64e30..62762f4062c 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index c539581de14..c20a97ec4c4 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index a845d5b0a77..f2a543d22ae 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index f83aa07f6e5..a0df0825c81 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index 68885afa757..f19dfdbb842 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
index d4ab2a71b35..ccca3a3a2a7 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
index d2062230d01..f874b010937 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
index 76838f6c975..320cc0cb4a0 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 590b550c571..69c0dbc740d 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index f01ea8cd175..1d7e35ff205 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index 2b9f4193fc9..7200d92f694 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
index af7f2e087ca..71e2c1e7900 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
index fbe06659a53..4969bc0fc55 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
index 86bcec54d61..cc3f58b540b 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
index 7429d6c0027..d7ff28745b2 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
index a9d6e6ae597..8fc50258f02 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
index ea4e6607a53..082f05ced16 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
index 83b1952832d..b51ef75ccc3 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
index 3fa761846eb..b8da63e1a95 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
index d19fd03d4e2..821d57a087c 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
index d9c3038a8db..f474bee17e5 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
index a3a4b98a10c..12480cfc499 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
index 348b47b85e9..065794a61a1 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
index c67f9050e0e..d015e77acb5 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
index 70959ee90ce..07a959bf47e 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
index 8fb6aa0b8f3..3f3fd7f49ce 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
index b3452f737db..4b7a40d435a 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
index 8aaece730de..b5e5c3a4164 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
index 5d585c4476e..174b66f3d51 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
index 1724a1f908e..648d5ddcd8c 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
index a8b6662a111..8b1ec52449f 100644
--- a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
new file mode 100644
index 00000000000..98d5fc173bf
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.ini
@@ -0,0 +1,4 @@
+[generic.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 87fbd96db78..12a5cd09dc2 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 8d75c147ec2..a4d28f41d6d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 161226fe512..5817eb0da4a 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index ccca019bea2..ce1aad083cc 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 82a572ef120..b80fc613745 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index f04b239de32..8eb8b97559f 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 83305f6df9d..846abe7971d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 8e4d39fbfcb..50e8f299aeb 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index f9da898e2fd..8571a8a5666 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index ce7599014ff..bba23556c90 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 3ee93245611..0d9b95c7b42 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index b1dee3f6c89..fe668d7d230 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index a011497f594..42b8bf7707d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index b6e6dd13a14..e5e190fd617 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 13bf51b9f0c..4816dc6a526 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index d4cb4c546a2..35bed520d01 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 75fc6efa0e3..6315a5722d2 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 23fb2f0e215..c609cc3ec1c 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index a9d14d7c37d..7343a30eacb 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 75ddef372f8..66c03136d89 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 582364b9d6b..9cb0f322ab4 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 3c113cadc93..2c008cef1c8 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index a4e09c2cb7e..71f52c92fd0 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 745d0bb6471..51936159895 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index caed3c280da..f66c58d81e4 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index c9f2d9a2df5..abc14bc52d7 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 33d12116ea0..197d134a6d1 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index e0ec15c6453..ac26a6722e4 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index bb7b5a68e5d..fed459ac66f 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 283784ad708..3046c2815cd 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 1c91b43bde1..3f66eccd6f4 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 7f27d13053f..71b046b15d1 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index e453af3d9b6..45a1457440d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 31b29c11c9d..81596f80c0f 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 0ba8bf08141..e819d7f6741 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 983ef2008ac..828dcf21357 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index 3f562e4fd2c..c374f6f89fe 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 0a89b6c7637..6a000e32a7d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
index 7d7b3c47f1a..7fdd4d692ba 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 1d2cbaa7817..2118854fa9f 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
index 3d77b5936f9..766da0d6474 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 384e4612621..58d788d5786 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
index dc070973604..d5f74dfa772 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 8ef614e6be3..2286942b406 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index 1c9028cce27..943ef3fd159 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 17cc40feab4..db9c9f78f7e 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 1c713b886c6..61da1697d99 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index f4d7be215c3..a3c2ad5eef2 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index 2eb178080ba..e975858b7ec 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index b80d3b8fe48..64c4c388ac0 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index 877c9c15403..dde077f10d3 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 7c8c727c0ff..78149036e73 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index 1a7723838ee..0cf9912a33f 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index aff30655e2d..ad714ebb689 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 316fb1b4160..792cfc57d7d 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 67a48b005f5..3b31ba40615 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index b21f5806490..15349e531d0 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 1e91e32bd6a..1d072c7d4c9 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index f93e4ef1448..1daad6b7d6b 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 36e30ba6992..7d0c39cb3cc 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 7e00df7995a..6cd12958b43 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index ab1ab56ea48..3907f95eed7 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index af3301ec557..2a34651d6cf 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index d72a9835378..3be8d9efc09 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
index c9e90224a2e..009b35be40c 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
index 0f203ba305b..65cfc676817 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
index dcdd6938e5b..de68c5fa126 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
index 3f2404df74a..93793807f78 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
index 08c98a2f4a8..f50d08cd3cc 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
index 5dcaa637717..b9dcca87a63 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
index 304fbf57855..c7fb3e205be 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 4579d20a688..a34a441e55a 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
index d1f76008abe..b271f375d30 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via module-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
index 20f1e63be34..52826ff8251 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
index d7137fcb533..2f0a7f1ec9c 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via shared-worker using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
index b25e2d2d880..b87bce3de93 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
index a2a5cffd1d5..8d77cf81ec0 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via worker-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
new file mode 100644
index 00000000000..165a01ddeb9
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[insecure-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
index 41fe83efb95..31e07dd9f3e 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via a-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
index 23da34b0cd5..d4a7d33f502 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
index 08898f89895..095cd3faa9a 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
index 8982fb1a9fa..35a4ddb2837 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -2,3 +2,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via fetch-request using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
index c59ff9a96a9..135a3d109f5 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
index d97aa17fcd3..7967eb34605 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with no-redirect and when\n the target request is same-origin. (overridden by srcdoc iframe)]
expected: NOTRUN
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
index 9784deb2ea6..34b0e98e84a 100644
--- a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -9,3 +9,12 @@
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the meta-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin. (srcdoc iframe inherits parent)]
expected: TIMEOUT
+ [`Referer` header with length == 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length < 4k is not stripped to an origin.]
+ expected: FAIL
+
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
new file mode 100644
index 00000000000..18344838288
--- /dev/null
+++ b/tests/wpt/metadata/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.ini
@@ -0,0 +1,4 @@
+[upgrade-protocol.http.html]
+ [`Referer` header with length > 4k is stripped to an origin.]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini b/tests/wpt/metadata/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini
index 9cd1756edc9..088c57878f1 100644
--- a/tests/wpt/metadata/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini
+++ b/tests/wpt/metadata/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini
@@ -38,3 +38,9 @@
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[30\]\t9.4836157560348511e-1\t9.5236867666244507e-1\t4.0071010589599609e-3\t4.2075103446311962e-3\t3.8985999999999999e-3\n\t[31\]\t9.2646563053131104e-1\t9.3139332532882690e-1\t4.9276947975158691e-3\t5.2906700783754857e-3\t3.8985999999999999e-3\n\t[32\]\t9.0087991952896118e-1\t9.0675884485244751e-1\t5.8789253234863281e-3\t6.4834496590358351e-3\t3.8985999999999999e-3\n\t[33\]\t8.7170630693435669e-1\t8.7856203317642212e-1\t6.8557262420654297e-3\t7.8033490899654511e-3\t3.8985999999999999e-3\n\t[34\]\t8.3906102180480957e-1\t8.4691369533538818e-1\t7.8526735305786133e-3\t9.2721059699818163e-3\t3.8985999999999999e-3\n\t...and 31037 more errors.\n\tMax AbsError of 9.8276454228804466e-1 at index of 39267.\n\t[39267\]\t1.8523094169609067e-10\t-9.8276454210281372e-1\t9.8276454228804466e-1\t1.0000000001884795e+0\t3.8985999999999999e-3\n\tMax RelError of 3.3137802965303198e+0 at index of 1253.\n\t[1253\]\t-4.3022233992815018e-2\t-9.9732093513011932e-3\t3.3049024641513824e-2\t3.3137802965303198e+0\t3.8985999999999999e-3\n]
expected: FAIL
+ [X SNR (21.440582478649354 dB) is not greater than or equal to 65.737. Got 21.440582478649354.]
+ expected: FAIL
+
+ [X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[30\]\t9.4836157560348511e-1\t9.5236867666244507e-1\t4.0071010589599609e-3\t4.2075103446311962e-3\t3.8985999999999999e-3\n\t[31\]\t9.2646563053131104e-1\t9.3139332532882690e-1\t4.9276947975158691e-3\t5.2906700783754857e-3\t3.8985999999999999e-3\n\t[32\]\t9.0087991952896118e-1\t9.0675884485244751e-1\t5.8789253234863281e-3\t6.4834496590358351e-3\t3.8985999999999999e-3\n\t[33\]\t8.7170630693435669e-1\t8.7856203317642212e-1\t6.8557262420654297e-3\t7.8033490899654511e-3\t3.8985999999999999e-3\n\t[34\]\t8.3906102180480957e-1\t8.4691369533538818e-1\t7.8526735305786133e-3\t9.2721059699818163e-3\t3.8985999999999999e-3\n\t...and 31037 more errors.\n\tMax AbsError of 9.8276454210281372e-1 at index of 39267.\n\t[39267\]\t-6.5667369214366148e-24\t-9.8276454210281372e-1\t9.8276454210281372e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\tMax RelError of 3.3137802965303198e+0 at index of 1253.\n\t[1253\]\t-4.3022233992815018e-2\t-9.9732093513011932e-3\t3.3049024641513824e-2\t3.3137802965303198e+0\t3.8985999999999999e-3\n]
+ expected: FAIL
+
diff --git a/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini b/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini
deleted file mode 100644
index fe8654e447c..00000000000
--- a/tests/wpt/metadata/workers/WorkerGlobalScope-close.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[WorkerGlobalScope-close.html]
- [Test sending a message after closing.]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/workers/constructors/Worker/Worker-constructor.html.ini b/tests/wpt/metadata/workers/constructors/Worker/Worker-constructor.html.ini
new file mode 100644
index 00000000000..80f9a4f15b8
--- /dev/null
+++ b/tests/wpt/metadata/workers/constructors/Worker/Worker-constructor.html.ini
@@ -0,0 +1,2 @@
+[Worker-constructor.html]
+ expected: ERROR
diff --git a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html
index 366d1fd36e0..94fc0d1c57a 100644
--- a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html
+++ b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html
@@ -51,6 +51,7 @@ var t = async_test('createImageBitmap(HTMLVideoElement) with resize option');
// HTMLVideoElement
var video = document.createElement("video");
+video.preload = "auto";
video.oncanplaythrough = t.step_func(function() {
return generateTest();
});
diff --git a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html
new file mode 100644
index 00000000000..ea65355e58e
--- /dev/null
+++ b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-closed.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<title>attempt to draw a closed ImageBitmap to a 2d canvas throws INVALID_STATE_ERR</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/canvas-tests.js"></script>
+<script>
+promise_test(function(t) {
+ return new Promise(function(resolve, reject) {
+ const image = new Image();
+ image.onload = function() { resolve(image); };
+ image.onerror = function() { reject(); };
+ image.src = "/images/green-16x16.png";
+ }).then(function(image) {
+ return createImageBitmap(image, 0, 0, 16, 16);
+ }).then(function(imageBitmap) {
+ imageBitmap.close();
+
+ const canvas = document.createElement("canvas");
+ canvas.width = 16;
+ canvas.height = 16;
+
+ const ctx = canvas.getContext("2d");
+ assert_throws("InvalidStateError", function() { ctx.drawImage(imageBitmap, 0, 0); });
+ });
+});
+</script>
diff --git a/tests/wpt/web-platform-tests/2dcontext/text-styles/2d.text.font.relative_size.html b/tests/wpt/web-platform-tests/2dcontext/text-styles/2d.text.font.relative_size.html
new file mode 100644
index 00000000000..1c0f7bc2b2a
--- /dev/null
+++ b/tests/wpt/web-platform-tests/2dcontext/text-styles/2d.text.font.relative_size.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
+<title>Canvas test: 2d.text.font.relative_size</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/canvas-tests.js"></script>
+<link rel="stylesheet" href="/common/canvas-tests.css">
+<body class="show_output">
+
+<h1>2d.text.font.relative_size</h1>
+<p class="desc"></p>
+
+
+<p class="output">Actual output:</p>
+<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
+
+<ul id="d"></ul>
+<script>
+var t = async_test("");
+_addTest(function(canvas, ctx) {
+
+var canvas2 = document.createElement('canvas');
+var ctx2 = canvas2.getContext('2d');
+ctx2.font = '1em sans-serif';
+_assertSame(ctx2.font, '10px sans-serif', "ctx2.font", "'10px sans-serif'");
+
+
+});
+</script>
+
diff --git a/tests/wpt/web-platform-tests/2dcontext/tools/tests2dtext.yaml b/tests/wpt/web-platform-tests/2dcontext/tools/tests2dtext.yaml
index 0ee476d755d..c57caee8f19 100644
--- a/tests/wpt/web-platform-tests/2dcontext/tools/tests2dtext.yaml
+++ b/tests/wpt/web-platform-tests/2dcontext/tools/tests2dtext.yaml
@@ -112,7 +112,14 @@
code: |
@assert ctx.font === '10px sans-serif';
-
+- name: 2d.text.font.relative_size
+ testing:
+ - 2d.text.font.relative_size
+ code: |
+ var canvas2 = document.createElement('canvas');
+ var ctx2 = canvas2.getContext('2d');
+ ctx2.font = '1em sans-serif';
+ @assert ctx2.font === '10px sans-serif';
- name: 2d.text.align.valid
testing:
diff --git a/tests/wpt/web-platform-tests/IndexedDB/idbindex_keyPath.any.js b/tests/wpt/web-platform-tests/IndexedDB/idbindex_keyPath.any.js
new file mode 100644
index 00000000000..19cf231f44b
--- /dev/null
+++ b/tests/wpt/web-platform-tests/IndexedDB/idbindex_keyPath.any.js
@@ -0,0 +1,30 @@
+// META: title=IndexedDB: IDBIndex keyPath attribute - same object
+// META: script=support.js
+
+indexeddb_test(
+ (t, db) => {
+ const store = db.createObjectStore('store', {keyPath: ['a', 'b']});
+ store.createIndex('index', ['a', 'b']);
+ },
+ (t, db) => {
+ const tx = db.transaction('store');
+ const store = tx.objectStore('store');
+ const index = store.index('index');
+ assert_equals(typeof index.keyPath, 'object', 'keyPath is an object');
+ assert_true(Array.isArray(index.keyPath), 'keyPath is an array');
+
+ assert_equals(
+ index.keyPath, index.keyPath,
+ 'Same object instance is returned each time keyPath is inspected');
+
+ const tx2 = db.transaction('store');
+ const store2 = tx2.objectStore('store');
+ const index2 = store2.index('index');
+
+ assert_not_equals(
+ index.keyPath, index2.keyPath,
+ 'Different instances are returned from different index instances.');
+
+ t.done();
+ },
+ `IDBIndex's keyPath attribute returns the same object.`);
diff --git a/tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_keyPath.any.js b/tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_keyPath.any.js
new file mode 100644
index 00000000000..91c3674c312
--- /dev/null
+++ b/tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_keyPath.any.js
@@ -0,0 +1,27 @@
+// META: title=IndexedDB: IDBObjectStore keyPath attribute - same object
+// META: script=support.js
+
+indexeddb_test(
+ (t, db) => {
+ db.createObjectStore('store', {keyPath: ['a', 'b']});
+ },
+ (t, db) => {
+ const tx = db.transaction('store');
+ const store = tx.objectStore('store');
+ assert_equals(typeof store.keyPath, 'object', 'keyPath is an object');
+ assert_true(Array.isArray(store.keyPath), 'keyPath is an array');
+
+ assert_equals(
+ store.keyPath, store.keyPath,
+ 'Same object instance is returned each time keyPath is inspected');
+
+ const tx2 = db.transaction('store');
+ const store2 = tx2.objectStore('store');
+
+ assert_not_equals(
+ store.keyPath, store2.keyPath,
+ 'Different instances are returned from different store instances.');
+
+ t.done();
+ },
+ `IDBObjectStore's keyPath attribute returns the same object.`);
diff --git a/tests/wpt/web-platform-tests/css/CSS2/floats/hit-test-floats-001.html b/tests/wpt/web-platform-tests/css/CSS2/floats/hit-test-floats-001.html
new file mode 100644
index 00000000000..e554918e753
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/CSS2/floats/hit-test-floats-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<link rel="help" href="https://crbug.com/977856">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div style="width: 270px">
+ <img width="260" height="68">
+ <div style="float: left">
+ <a id="target" href="#">Link</a>
+ </div>
+ <br style="clear: both">
+</div>
+<script>
+test(() => {
+ let target = document.getElementById('target');
+ let bounds = target.getBoundingClientRect();
+ let element = document.elementFromPoint(bounds.x + 1, bounds.y + 1);
+ assert_equals(element, target);
+});
+</script>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-001.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-001.xht
index 7455f4f6094..dae3fa6df37 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-001.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-001.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing invalid numbers - alphanumeric characters</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#integers" />
<link rel="match" href="../reference/no-red-on-blank-page-ref.xht"/>
<meta name="flags" content="invalid" />
<meta name="assert" content="An integer cannot have alphanumeric characters within it." />
@@ -21,4 +22,4 @@
<p>Test passes if there is no red visible on the page.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-002.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-002.xht
index 9929f60343b..e915df6c248 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-002.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-002.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing decimal values - decimal with multiple decimal digits</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#numbers" />
<meta name="flags" content="" />
<meta name="assert" content="A number can be zero or more digits followed by a dot (.) followed by multiple digits." />
<style type="text/css">
@@ -20,4 +21,4 @@
<p>Test passes if there is a filled box below.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-003.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-003.xht
index 705c8208fad..57600a7c70b 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-003.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-003.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing invalid decimal values - alphanumeric characters within number</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#numbers" />
<link rel="match" href="../reference/no-red-on-blank-page-ref.xht"/>
<meta name="flags" content="invalid" />
<meta name="assert" content="An alphanumeric character cannot be within the number value." />
@@ -21,4 +22,4 @@
<p>Test passes if there is no red visible on the page.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-004.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-004.xht
index fb59620e64a..16d4b8df6e6 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-004.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-004.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing integer numbers with '+'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#integers" />
<link rel="match" href="../reference/ref-filled-black-96px-square.xht" />
<meta name="flags" content="" />
<meta name="assert" content="Integers can be preceded by '+'." />
@@ -21,4 +22,4 @@
<p>Test passes if there is a filled black square.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-005.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-005.xht
index 5f454572524..300a23e5806 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-005.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-005.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Optional unit identifier after 0</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#lengths" />
<link rel="match" href="../reference/no-red-on-blank-page-ref.xht"/>
<meta name="flags" content="" />
<meta name="assert" content="After a zero length, the unit identifier is not necessary." />
@@ -21,4 +22,4 @@
<p>Test passes if there is no red visible on the page.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-006.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-006.xht
index e6174ed6561..24fd36e0ad9 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-006.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-006.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Unsupported negative values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#lengths" />
<link rel="match" href="../reference/ref-filled-black-96px-square.xht" />
<meta name="flags" content="invalid" />
<meta name="assert" content="If a negative length value is set on a property that does not allow negative length values, the declaration is ignored." />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-007.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-007.xht
index ba3ee026185..b70cb36ca6d 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-007.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-007.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em sizes</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-007-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (default) of the element on which it is used." />
@@ -29,4 +30,4 @@
<div>X</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-009.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-009.xht
index 104dbccd8bc..78882eba4b0 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-009.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-009.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em size with the font-size set to px size</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-009-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (pixels) of the element on which it is used." />
@@ -33,4 +34,4 @@
<div>X</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-010.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-010.xht
index cfb49e4de42..03b0b71aead 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-010.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-010.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em size with font-size set to inch</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-010-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (inches) of the element on which it is used." />
@@ -33,4 +34,4 @@
<div>X</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-011.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-011.xht
index 23d8521f639..e1edfea9e11 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-011.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-011.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em size with font-size set to em</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-011-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="When 'em' is assigned in the value of the 'font-size' property itself, it uses the font size of the parent element." />
@@ -34,4 +35,4 @@
<div>X</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-012.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-012.xht
index aba7b286e9b..f24e528c5b3 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-012.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-012.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em size with font-size set to ex</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-012-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (ex) of the element on which it is used." />
@@ -45,4 +46,4 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-013.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-013.xht
index 7db3c78720f..ac42ede1197 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-013.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-013.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Em size with font-size set to percentage</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-013-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used." />
@@ -45,4 +46,4 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-015.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-015.xht
index 36babf0aa0b..d79cce58900 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-015.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-015.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Height of EX</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-015-ref-a.xht"/>
<link rel="match" href="numbers-units-015-ref-b.xht"/>
<meta name="flags" content="ahem should" />
@@ -39,4 +40,4 @@
<div id="div1"></div>
<div id="div2"></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-016.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-016.xht
index 224a9f1d4d8..97b0af58684 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-016.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-016.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing invalid percentage values - decimal value with multiple decimals</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#percentage-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#percentages" />
<link rel="match" href="../reference/no-red-on-blank-page-ref.xht"/>
<meta name="flags" content="invalid" />
<meta name="assert" content="Percentage assignments with more than one decimal are invalid." />
@@ -21,4 +22,4 @@
<p>Test passes if there is no red visible on the page.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-017.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-017.xht
index 654110802e1..ad3aa3b044c 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-017.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-017.xht
@@ -4,6 +4,7 @@
<title>CSS Test: Parsing of percentage values - 0%</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#percentage-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#percentages" />
<link rel="match" href="../reference/no-red-on-blank-page-ref.xht"/>
<meta name="flags" content="" />
<meta name="assert" content="Percentage of 0% is valid and calculates to 0." />
@@ -21,4 +22,4 @@
<p>Test passes if there is no red visible on the page.</p>
<div></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-019.xht b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-019.xht
index aedfeb5d495..205e3b63925 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-019.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/numbers-units-019.xht
@@ -4,6 +4,7 @@
<title>CSS Test: First available font defines the 'ex' unit size</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="numbers-units-019-ref.xht"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'ex' unit size is defined by the element's first available font." />
@@ -40,4 +41,4 @@
<div id="test"></div>
<div id="compare"></div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-001.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-001.xht
index 35efbb1b973..a3e08e45437 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-001.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-001.xht
@@ -6,6 +6,8 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/001.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" />
<link rel="match" href="units-001-ref.xht" />
<meta name="flags" content="ahem"/>
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-002.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-002.xht
index 84e7cd7299d..8fd7b0bd5eb 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-002.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-002.xht
@@ -6,6 +6,7 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/002.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="units-002-ref.xht" />
<meta name="flags" content="ahem" />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-003.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-003.xht
index 682a8e9b4fc..df6b1ab71eb 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-003.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-003.xht
@@ -6,6 +6,7 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/003.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="units-003-ref.xht" />
<meta name="flags" content="ahem" />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-004.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-004.xht
index 57b703fc8d1..a0e474e0aef 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-004.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-004.xht
@@ -6,6 +6,7 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/004.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="units-004-ref.xht" />
<meta name="flags" content="ahem" />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-005.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-005.xht
index 29a42de0951..052b7e33192 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-005.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-005.xht
@@ -5,6 +5,7 @@
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/005.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="units-005-ref.xht"/>
<style type="text/css">
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-006.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-006.xht
index 321c777b4b4..12713a15048 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-006.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-006.xht
@@ -6,6 +6,7 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/006.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" />
<link rel="match" href="units-006-ref.xht" />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-008.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-008.xht
index dee37f98bab..3510f4dfcaa 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-008.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-008.xht
@@ -6,6 +6,8 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/008.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#common-keywords" />
<link rel="match" href="units-006-ref.xht" />
<meta name="flags" content="ahem" />
diff --git a/tests/wpt/web-platform-tests/css/CSS2/values/units-009.xht b/tests/wpt/web-platform-tests/css/CSS2/values/units-009.xht
index baf3004d531..982fc96f44a 100644
--- a/tests/wpt/web-platform-tests/css/CSS2/values/units-009.xht
+++ b/tests/wpt/web-platform-tests/css/CSS2/values/units-009.xht
@@ -6,6 +6,7 @@
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/009.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
+ <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="match" href="units-006-ref.xht" />
diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html b/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html
index 4dc0aad0fd5..a67823cc125 100644
--- a/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html
+++ b/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html
@@ -5,17 +5,31 @@
<title>CSS Backgrounds and Borders: getComputedValue().backgroundImage</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-image">
<meta name="assert" content="background-image computed value is as specified.">
+<meta name="assert" content="Colors and lengths are computed, with radii clamped.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
+<style>
+ #target {
+ font-size: 40px;
+ }
+</style>
</head>
<body>
+<!-- target is used by test_computed_value -->
<div id="target"></div>
<script>
test_computed_value("background-image", "none");
test_computed_value("background-image", 'url("http://{{host}}/")');
test_computed_value("background-image", 'none, url("http://{{host}}/")');
+
+test_computed_value('background-image', 'linear-gradient(to left bottom, red, blue)', 'linear-gradient(to left bottom, rgb(255, 0, 0), rgb(0, 0, 255))');
+
+test_computed_value('background-image', 'radial-gradient(10px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('background-image', 'radial-gradient(circle calc(-0.5em + 10px) at calc(-1em + 10px) calc(-2em + 10px), red, blue)', 'radial-gradient(0px at -30px -70px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('background-image', 'radial-gradient(ellipse calc(-0.5em + 10px) calc(0.5em + 10px) at 20px 30px, red, blue)', 'radial-gradient(0px 30px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('background-image', 'radial-gradient(ellipse calc(0.5em + 10px) calc(-0.5em + 10px) at 20px 30px, red, blue)', 'radial-gradient(30px 0px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
</script>
</body>
</html>
diff --git a/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-invalid.html b/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-invalid.html
index eaba64a715c..7f1bc98ab63 100644
--- a/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-invalid.html
+++ b/tests/wpt/web-platform-tests/css/css-backgrounds/parsing/background-image-invalid.html
@@ -5,7 +5,9 @@
<title>CSS Backgrounds and Borders Module Level 3: parsing background-image with invalid values</title>
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-image">
+<link rel="help" href="https://drafts.csswg.org/css-images/#radial-gradients">
<meta name="assert" content="background-image supports only the grammar '<bg-image>#'.">
+<meta name="assert" content="Negative radial-gradient radii are invalid.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
@@ -13,6 +15,14 @@
<body>
<script>
test_invalid_value("background-image", "none, auto");
+
+// Negative radii are invalid.
+test_invalid_value("background-image", "radial-gradient(circle -10px at center, red, blue)");
+test_invalid_value("background-image", "repeating-radial-gradient(-10px at center, red, blue)");
+test_invalid_value("background-image", "radial-gradient(ellipse -20px 30px at center, red, blue)");
+test_invalid_value("background-image", "repeating-radial-gradient(-20% 30% at center, red, blue)");
+test_invalid_value("background-image", "radial-gradient(20px -30px at center, red, blue)");
+test_invalid_value("background-image", "repeating-radial-gradient(20px -30px ellipse at center, red, blue)");
</script>
</body>
</html>
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/crash-font-face-invalid-descriptor.html b/tests/wpt/web-platform-tests/css/css-fonts/crash-font-face-invalid-descriptor.html
new file mode 100644
index 00000000000..73cea13f091
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-fonts/crash-font-face-invalid-descriptor.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<link rel="help" href="https://crbug.com/977953" />
+<script type="text/javascript" src="/resources/testharness.js"></script>
+<script type="text/javascript" src="/resources/testharnessreport.js"></script>
+<style>
+ @font-face {}
+</style>
+<script>
+ test(() => {
+ let rule = document.styleSheets[0].cssRules[0];
+ rule.style.backgroundPosition = 'bottom 10px right 20px';
+ }, 'Do not crash when setting an invalid @font-face descriptor via CSSOM');
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025-ref.html b/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025-ref.html
new file mode 100644
index 00000000000..035ed5f29d0
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<title>CSS Test: PASS rendering</title>
+<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family" />
+<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" />
+<meta name="assert" content="The 'font-family' property set to and installed font renders the appropriate font." />
+<style type="text/css">
+body { font-size: 36px; }
+span#verify { font-family: CSSTest Verify; }
+p {
+ font-family: ahem, monospace;
+}
+</style>
+<div><a href="http://www.w3.org/Style/CSS/Test/Fonts/">Test fonts</a> must be installed for this test: <span id="verify">FAIL</span></div>
+<p>These two lines should use the same font.</p>
+<p>These two lines should use the same font.</p>
diff --git a/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025.html b/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025.html
new file mode 100644
index 00000000000..d6ee10db248
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-fonts/font-family-name-025.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<title>CSS Test: font family name should not match postscript font name</title>
+<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family" />
+<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" />
+<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-family-prop" />
+<link rel="match" href="font-family-name-025-ref.html" />
+<meta name="assert" content="The 'font-family' property set to and installed font renders the appropriate font. Postscript name should not match." />
+<style>
+body { font-size: 36px; }
+span#verify { font-family: CSSTest Verify; }
+p.test {
+ /* Verdana-Bold is a standard supplied font on Windows, Mac, and Linux
+ allowing this test to actually work on most systems without the CSS
+ test fonts. */
+ font-family: CSSTestBasic-Bold, Verdana-Bold, ahem, monospace;
+}
+p {
+ font-family: ahem, monospace;
+}
+</style>
+<div><a href="http://www.w3.org/Style/CSS/Test/Fonts/">Test fonts</a> must be installed for this test: <span id="verify">FAIL</span></div>
+<p class="test">These two lines should use the same font.</p>
+<p>These two lines should use the same font.</p>
diff --git a/tests/wpt/web-platform-tests/css/css-layout-api/layout-child-inlines-dynamic.https.html b/tests/wpt/web-platform-tests/css/css-layout-api/layout-child-inlines-dynamic.https.html
new file mode 100644
index 00000000000..50052087f44
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-layout-api/layout-child-inlines-dynamic.https.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Layout API: Dynamic blockification of inline children</title>
+<link rel="author" href="mailto:obrufau@igalia.com" title="Oriol Brufau">
+<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#layout-children" title="4.1. Layout Children">
+<meta name="assert" content="This test checks that inline children are correctly blockified or unblockified when the display of the parent changes dynamically." />
+
+<style>
+#wrapper {
+ display: layout(foo);
+}
+#test {
+ display: inline;
+}
+</style>
+
+<div id="wrapper">
+ <div id="test">Lorem ipsum</div>
+</div>
+
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/worklet-reftest.js"></script>
+<script>
+promise_test(async function() {
+ await importWorklet(CSS.layoutWorklet, {url: 'support/layout-child-worklet.js'});
+
+ const wrapper = document.getElementById("wrapper");
+ const test = document.getElementById("test");
+
+ assert_equals(getComputedStyle(test).display, "block", "The child should have been blockified by the custom layout");
+
+ wrapper.style.display = "block";
+ assert_equals(getComputedStyle(test).display, "inline", "The child should no longer be blockified in block layout");
+
+ wrapper.style.display = "";
+ assert_equals(getComputedStyle(test).display, "block", "The child should have been blockified again");
+});
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-002.html b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-002.html
new file mode 100644
index 00000000000..ef110ca17ce
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-002.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Lists: test the margin collapse of marker</title>
+<link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
+<link rel="help" href="http://crbug.com/969741">
+
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<div id="log"></div>
+
+<div id="target_with_marker" style="overflow:hidden; width:100px;">
+ <div style="margin-bottom:100px;"></div>
+ <div style="display:list-item; margin-left:100px; height:0px;"></div>
+ <div style="margin-top:100px;"></div>
+</div>
+
+<div id="target_without_marker" style="overflow:hidden; width:100px;">
+ <div style="margin-bottom:100px;"></div>
+ <div style="display:list-item; margin-left:100px; list-style:none;"></div>
+ <div style="margin-top:100px;"></div>
+</div>
+
+<script>
+test(function() {
+ var height_with_marker = document.getElementById("target_with_marker").clientHeight;
+ assert_equals(height_with_marker, 200, "Should not allow margin-collapsing through if list is with marker.");
+ var height_without_marker = document.getElementById("target_without_marker").clientHeight;
+ assert_equals(height_without_marker, 100, "Should allow margin-collapsing through if list is without marker.");
+}, "list and margin collapse");
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-003.html b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-003.html
new file mode 100644
index 00000000000..78dcbc6cd45
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-003.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Lists: test the margin collapse of marker</title>
+<link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
+<link rel="help" href="http://crbug.com/969741">
+
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<style type="text/css">
+.checkbox{
+ -moz-appearance: checkbox;
+ -webkit-appearance: checkbox;
+ height: 0px;
+}
+</style>
+
+<div id="log"></div>
+
+<div id="target_with_marker" style="overflow:hidden; width:100px;">
+ <div style="margin-bottom:100px;"></div>
+ <div style="display:list-item; margin-left:100px; height:0px;"><div class="checkbox"></div></div>
+ <div style="margin-top:100px;"></div>
+</div>
+
+<div id="target_without_marker" style="overflow:hidden; width:100px;">
+ <div style="margin-bottom:100px;"></div>
+ <div style="display:list-item; margin-left:100px; list-style:none;"><div class="checkbox"></div></div>
+ <div style="margin-top:100px;"></div>
+</div>
+
+<script>
+test(function() {
+ var height_with_marker = document.getElementById("target_with_marker").clientHeight;
+ assert_equals(height_with_marker, 200, "Should not allow margin-collapsing through if list is with marker.");
+ var height_without_marker = document.getElementById("target_without_marker").clientHeight;
+ assert_equals(height_without_marker, 100, "Should allow margin-collapsing through if list is without marker.");
+}, "list and margin collapse");
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-004.html b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-004.html
new file mode 100644
index 00000000000..4a92f8becf2
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/list-and-margin-collapse-004.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<title>Test if it doesn't crash when resolving BFC block-offset abort</title>
+<link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
+<link rel="help" href="http://crbug.com/969741">
+
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style type="text/css">
+#checkbox{
+ -moz-appearance: checkbox;
+ -webkit-appearance: checkbox;
+ height: 0px;
+}
+</style>
+<body>
+ <div style="float: left; width: 100px; height: 100px;"></div>
+ <div style="display: list-item;">
+ <div id="checkbox"></div>
+ </div>
+<script>
+test(() => {}, "Layout should not crash");
+</script>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-computed.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-computed.html
new file mode 100644
index 00000000000..84409e8335b
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-computed.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: getComputedValue().listStyle</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style">
+<meta name="assert" content="list-style computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value('list-style', 'none', 'outside none none');
+
+test_computed_value('list-style', 'inside', 'inside none disc');
+test_computed_value('list-style', 'url("https://example.com/")', 'outside url("https://example.com/") disc');
+test_computed_value('list-style', 'square', 'outside none square');
+
+test_computed_value('list-style', 'inside url("https://example.com/") square');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-computed.sub.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-computed.sub.html
new file mode 100644
index 00000000000..114f08ecd75
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-computed.sub.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: getComputedValue().listStyleImage</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-image">
+<meta name="assert" content="list-style-image computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+<style>
+ #target {
+ font-size: 40px;
+ }
+</style>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value('list-style-image', 'none');
+
+test_computed_value('list-style-image', 'url("https://{{host}}/")');
+
+test_computed_value('list-style-image', 'linear-gradient(to left bottom, red , blue )', 'linear-gradient(to left bottom, rgb(255, 0, 0), rgb(0, 0, 255))');
+
+test_computed_value('list-style-image', 'radial-gradient(10px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('list-style-image', 'radial-gradient(circle calc(-0.5em + 10px) at calc(-1em + 10px) calc(-2em + 10px), rgb(255, 0, 0), rgb(0, 0, 255))', 'radial-gradient(0px at -30px -70px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('list-style-image', 'radial-gradient(ellipse calc(-0.5em + 10px) calc(0.5em + 10px) at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))', 'radial-gradient(0px 30px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
+test_computed_value('list-style-image', 'radial-gradient(ellipse calc(0.5em + 10px) calc(-0.5em + 10px) at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))', 'radial-gradient(30px 0px at 20px 30px, rgb(255, 0, 0), rgb(0, 0, 255))');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-invalid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-invalid.html
new file mode 100644
index 00000000000..ea8bb8ca963
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-invalid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-image with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-image">
+<meta name="assert" content="list-style-image supports only the grammar '<image> | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value('list-style-image', 'auto');
+test_invalid_value('list-style-image', 'url("https://example.com/") none');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-valid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-valid.html
new file mode 100644
index 00000000000..7b7d43e4bf6
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-image-valid.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-image with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-image">
+<meta name="assert" content="list-style-image supports the full grammar '<image> | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value('list-style-image', 'none');
+
+test_valid_value('list-style-image', 'url("https://example.com/")');
+
+test_valid_value('list-style-image', 'linear-gradient(to left bottom, red, blue)');
+
+// TODO: Add cross-fade tests when browsers add support.
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-invalid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-invalid.html
new file mode 100644
index 00000000000..0dda1630ad8
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-invalid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style">
+<meta name="assert" content="list-style supports only the grammar '<'list-style-position'> || <'list-style-image'> || <'list-style-type'>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value('list-style', 'inside disc outside');
+test_invalid_value('list-style', 'square circle');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-computed.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-computed.html
new file mode 100644
index 00000000000..e36181b1dd4
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-computed.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: getComputedValue().listStylePosition</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-position">
+<meta name="assert" content="list-style-position computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value('list-style-position', 'inside');
+test_computed_value('list-style-position', 'outside');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-invalid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-invalid.html
new file mode 100644
index 00000000000..3cf596135a7
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-invalid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-position with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-position">
+<meta name="assert" content="list-style-position supports only the grammar 'inside | outside'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value('list-style-position', 'auto');
+test_invalid_value('list-style-position', 'inside outside');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-valid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-valid.html
new file mode 100644
index 00000000000..ff0c8366bb9
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-position-valid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-position with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-position">
+<meta name="assert" content="list-style-position supports the full grammar 'inside | outside'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value('list-style-position', 'inside');
+test_valid_value('list-style-position', 'outside');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html
new file mode 100644
index 00000000000..0a8cd48b6af
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: getComputedValue().listStyleType</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-type">
+<meta name="assert" content="list-style-type computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value('list-style-type', 'none');
+
+test_computed_value('list-style-type', 'disc');
+test_computed_value('list-style-type', 'circle');
+test_computed_value('list-style-type', 'square');
+test_computed_value('list-style-type', 'decimal');
+test_computed_value('list-style-type', 'decimal-leading-zero');
+test_computed_value('list-style-type', 'lower-roman');
+test_computed_value('list-style-type', 'upper-roman');
+test_computed_value('list-style-type', 'lower-greek');
+test_computed_value('list-style-type', 'lower-latin');
+test_computed_value('list-style-type', 'upper-latin');
+test_computed_value('list-style-type', 'armenian');
+test_computed_value('list-style-type', 'georgian');
+test_computed_value('list-style-type', 'lower-alpha');
+test_computed_value('list-style-type', 'upper-alpha');
+
+// <string>
+test_computed_value('list-style-type', '"marker string"');
+test_computed_value('list-style-type', '"Note: "');
+
+// <counter-style> = <counter-style-name> | symbols();
+test_computed_value('list-style-type', 'counter-Style-Name');
+test_computed_value('list-style-type', 'CounterStyleName');
+
+// symbols() = symbols( <symbols-type>? [ <string> | <image> ]+ );
+// <symbols-type> = cyclic | numeric | alphabetic | symbolic | fixed;
+test_computed_value('list-style-type', 'symbols(cyclic "string")');
+test_computed_value('list-style-type', 'symbols(cyclic "○" "●")');
+test_computed_value('list-style-type', 'symbols(fixed "1")');
+test_computed_value('list-style-type', 'symbols("string")');
+test_computed_value('list-style-type', 'symbols(alphabetic "first" "second")');
+test_computed_value('list-style-type', 'symbols(numeric "first" "second")');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-invalid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-invalid.html
new file mode 100644
index 00000000000..c49f61ca705
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-invalid.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-type with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-type">
+<meta name="assert" content="list-style-type supports only the grammar '<counter-style> | <string> | none'.">
+<meta name="assert" content="If the system is alphabetic or numeric, there must be at least two <string>s or <image>s, or else the function is invalid.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value('list-style-type', '"marker string" none');
+test_invalid_value('list-style-type', 'counter-Style-Name "marker string"');
+test_invalid_value('list-style-type', 'symbols(cyclic)');
+test_invalid_value('list-style-type', 'symbols(numeric "n")');
+test_invalid_value('list-style-type', 'symbols(alphabetic "a")');
+test_invalid_value('list-style-type', 'symbols("s" symbolic)');
+test_invalid_value('list-style-type', 'symbols(fixed url("https://example.com"))');
+
+// Example in an early spec.
+test_invalid_value('list-style-type', "symbols(repeating '○' '●')");
+
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html
new file mode 100644
index 00000000000..66067ca4323
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style-type with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style-type">
+<link rel="help" href="https://www.w3.org/TR/CSS2/generate.html#propdef-list-style-type">
+<meta name="assert" content="list-style-type supports the full grammar '<counter-style> | <string> | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value('list-style-type', 'none');
+
+test_valid_value('list-style-type', 'disc');
+test_valid_value('list-style-type', 'circle');
+test_valid_value('list-style-type', 'square');
+test_valid_value('list-style-type', 'decimal');
+test_valid_value('list-style-type', 'decimal-leading-zero');
+test_valid_value('list-style-type', 'lower-roman');
+test_valid_value('list-style-type', 'upper-roman');
+test_valid_value('list-style-type', 'lower-greek');
+test_valid_value('list-style-type', 'lower-latin');
+test_valid_value('list-style-type', 'upper-latin');
+test_valid_value('list-style-type', 'armenian');
+test_valid_value('list-style-type', 'georgian');
+test_valid_value('list-style-type', 'lower-alpha');
+test_valid_value('list-style-type', 'upper-alpha');
+
+// <string>
+test_valid_value('list-style-type', '"marker string"');
+test_valid_value('list-style-type', '"Note: "');
+
+// <counter-style> = <counter-style-name> | symbols();
+test_valid_value('list-style-type', 'counter-Style-Name');
+test_valid_value('list-style-type', 'CounterStyleName');
+
+// symbols() = symbols( <symbols-type>? [ <string> | <image> ]+ );
+// <symbols-type> = cyclic | numeric | alphabetic | symbolic | fixed;
+test_valid_value('list-style-type', 'symbols(cyclic "string")');
+test_valid_value('list-style-type', 'symbols(cyclic "○" "●")');
+test_valid_value('list-style-type', 'symbols(fixed "1")');
+test_valid_value('list-style-type', 'symbols(symbolic "string")', 'symbols("string")');
+test_valid_value('list-style-type', 'symbols(alphabetic "first" "second")');
+test_valid_value('list-style-type', 'symbols(numeric "first" "second")');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-valid.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-valid.html
new file mode 100644
index 00000000000..6f6c344f305
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/list-style-valid.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: parsing list-style with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-list-style">
+<meta name="assert" content="list-style supports the full grammar '<'list-style-position'> || <'list-style-image'> || <'list-style-type'>'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value('list-style', 'none');
+
+test_valid_value('list-style', 'inside');
+test_valid_value('list-style', 'url("https://example.com/")');
+test_valid_value('list-style', 'square');
+
+test_valid_value('list-style', 'square url("https://example.com/") inside', 'inside url("https://example.com/") square');
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-010.html b/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-010.html
new file mode 100644
index 00000000000..91b439a3422
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-010.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="help" href="https://crbug.com/976397">
+<div style="width: 100px; position: relative;">
+ <div style="float: left; width: 110px; height: 50px;">
+ <div style="display: flex;">
+ <div style="position: absolute; width: 50px; height: 50px;"></div>
+ </div>
+ </div>
+</div>
+<script>
+test(() => { }, 'test passes if it does not crash');
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-011.html b/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-011.html
new file mode 100644
index 00000000000..fd3d63e0cf7
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-position/position-absolute-crash-chrome-011.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="help" href="https://crbug.com/977930">
+<style>
+body {
+ margin: 20px;
+}
+.container {
+ position: relative;
+}
+#inline-container-absolute {
+ position: relative;
+ background: rgba(0,255,0,0.3);
+}
+#inline-container-fixed {
+ filter: blur(2px);
+ background: rgba(0,255,0,0.3);
+}
+.outofflow {
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ background: green;
+ top:0;
+ left:0;
+}
+.splitter {
+ width: 100px;
+ height: 20px;
+ background: gray;
+}
+</style>
+<div class="container">
+ <div>
+ absolute
+ <span id="inline-container-absolute" >
+ container
+ <div class="outofflow" style="position:absolute">A</div>
+ container
+ <div class="splitter">splitter</div>
+ container
+ </span>
+ </div>
+</div>
+<div class="container">
+ <div>
+ fixed
+ <span id="inline-container-fixed" >
+ container
+ <div class="outofflow" style="position:fixed">F</div>
+ container
+ <div class="splitter">splitter</div>
+ container
+ </span>
+ </div>
+</div>
+<script>
+test(_ => {
+ document.body.offsetTop;
+ document.querySelector("#inline-container-absolute").style.position = 'static';
+}, 'test passes if changing abspos inline container to static does not crash');
+test(_ => {
+ document.body.offsetTop;
+ document.querySelector("#inline-container-fixed").style.filter = 'none';
+}, 'test passes if changing fixed inline container to static does not crash');
+</script>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested-ref.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested-ref.html
new file mode 100644
index 00000000000..84becd9a78d
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested-ref.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<p style="color: blue">Blue <span style="color: green">This text should be green.</span> Blue</p>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested.html
new file mode 100644
index 00000000000..4a58f1ea5b6
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-nested.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
+<link rel="match" href="first-line-change-inline-color-nested-ref.html">
+<style>
+ #block { color: green; }
+ #block::first-line { color: blue; }
+ .green { color: green; }
+</style>
+<div id="block">
+ <div>
+ <p>Blue <span id="target"><span>This text should be green.</span></span> Blue</p>
+ </div>
+</div>
+<script>
+requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ target.className = 'green';
+ document.documentElement.removeAttribute('class');
+ });
+});
+</script>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-ref.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-ref.html
new file mode 100644
index 00000000000..84becd9a78d
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color-ref.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<p style="color: blue">Blue <span style="color: green">This text should be green.</span> Blue</p>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color.html
new file mode 100644
index 00000000000..2a5be916b01
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-change-inline-color.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
+<link rel="match" href="first-line-change-inline-color-ref.html">
+<style>
+ #block { color: green; }
+ #block::first-line { color: blue; }
+ .green { color: green; }
+</style>
+<div id="block">
+ <div>
+ <p>Blue <span id="target">This text should be green.</span> Blue</p>
+ </div>
+</div>
+<script>
+requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ target.className = 'green';
+ document.documentElement.removeAttribute('class');
+ });
+});
+</script>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block-ref.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block-ref.html
new file mode 100644
index 00000000000..7193bf25eb8
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block-ref.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<div>
+ <span style="color: green">This text should be green.</span><br>
+ <span style="color: blue">This text should be blue.</span>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block.html
new file mode 100644
index 00000000000..6b797107df8
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-on-ancestor-block.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
+<link rel="match" href="first-line-on-ancestor-block-ref.html">
+<style>
+ #block::first-line { color: green; }
+</style>
+<div id="block">
+ <div>
+ <div style="color: blue">
+ <div>
+ <span><span>This text should be green.</span></span><br>
+ This text should be blue.
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-ref.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-ref.html
new file mode 100644
index 00000000000..7193bf25eb8
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-ref.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<div>
+ <span style="color: green">This text should be green.</span><br>
+ <span style="color: blue">This text should be blue.</span>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow.html b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow.html
new file mode 100644
index 00000000000..798ecf8264e
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-pseudo/first-line-with-out-of-flow.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
+<link rel="match" href="first-line-with-out-of-flow-ref.html">
+<style>
+ #block::first-line { color: green; }
+</style>
+<div id="block">
+ <div style="position: absolute"><br></div>
+ <div style="float: right"><br></div>
+ <div>
+ <div style="position: absolute"><br></div>
+ <div style="float: right"><br></div>
+ <div style="color: blue">
+ <div>
+ <span><span>This text should be green.</span></span><br>
+ This text should be blue.
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/css-ui/appearance-initial-value-001.html b/tests/wpt/web-platform-tests/css/css-ui/appearance-initial-value-001.html
new file mode 100644
index 00000000000..6e7d3002676
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-ui/appearance-initial-value-001.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Basic User Interface Test: appearance and -webkit-appearance</title>
+<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
+<meta name="assert" content="The appearance and -webkit-appearance properties are supported.">
+<meta name="assert" content="Initial value is none.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+ #appearance { appearance: button; }
+ #-webkit-appearance { -webkit-appearance: button; }
+</style>
+<div id="appearance"></div>
+<div id="-webkit-appearance"></div>
+<div id="initial"></div>
+<script>
+for (const prop of ['appearance', '-webkit-appearance']) {
+ test(() => {
+ const actual = getComputedStyle(document.getElementById(prop)).getPropertyValue(prop);
+ assert_equals(actual, 'button');
+ }, `support for ${prop}`);
+
+ test(() => {
+ const actual = getComputedStyle(document.getElementById('initial')).getPropertyValue(prop);
+ assert_equals(actual, 'none');
+ }, `initial value for ${prop}`);
+}
+</script>
diff --git a/tests/wpt/web-platform-tests/css/cssom/shorthand-values.html b/tests/wpt/web-platform-tests/css/cssom/shorthand-values.html
index d8d7f5349a4..5a50bc44b78 100644
--- a/tests/wpt/web-platform-tests/css/cssom/shorthand-values.html
+++ b/tests/wpt/web-platform-tests/css/cssom/shorthand-values.html
@@ -36,7 +36,7 @@
'overflow-x: scroll; overflow-y: scroll;': 'overflow: scroll;',
'outline-width: 2px; outline-style: dotted; outline-color: blue;': 'outline: blue dotted 2px;',
'margin-top: 1px; margin-right: 2px; margin-bottom: 3px; margin-left: 4px;': 'margin: 1px 2px 3px 4px;',
- 'list-style-type: circle; list-style-position: inside; list-style-image: initial;': 'list-style: circle inside;',
+ 'list-style-type: circle; list-style-position: inside; list-style-image: initial;': 'list-style: inside circle;',
'list-style-type: lower-alpha;': 'list-style-type: lower-alpha;',
'font-family: sans-serif; line-height: 2em; font-size: 3em; font-style: italic; font-weight: bold;': 'font-family: sans-serif; line-height: 2em; font-size: 3em; font-style: italic; font-weight: bold;',
'padding-top: 1px; padding-right: 2px; padding-bottom: 3px; padding-left: 4px;': 'padding: 1px 2px 3px 4px;'
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness-ref.html
new file mode 100644
index 00000000000..cb6ea674d38
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Brightness</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ filter: brightness(50%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: brightness(50%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box. Neither black nor blue.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness.html
new file mode 100644
index 00000000000..1cc63ed2dd3
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-brightness.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Brightness</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-brightness-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .filt {
+ backdrop-filter: brightness(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box. Neither black nor blue.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast-ref.html
new file mode 100644
index 00000000000..7978fec4d49
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Contrast</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: black;
+ filter: contrast(50%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: contrast(50%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast.html
new file mode 100644
index 00000000000..15c97a94238
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-contrast.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Contrast</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-contrast-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: black;
+ }
+ .filt {
+ backdrop-filter: contrast(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale-ref.html
new file mode 100644
index 00000000000..eb403f16a00
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Grayscale</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ filter: grayscale(50%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: grayscale(50%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale.html
new file mode 100644
index 00000000000..925c83cd027
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-grayscale.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Grayscale</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-grayscale-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .filt {
+ backdrop-filter: grayscale(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate-ref.html
new file mode 100644
index 00000000000..c70f6bcf9e3
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Hue Rotate</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ filter: hue-rotate(45deg);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: hue-rotate(45deg);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a violet rectangle with a green box. Neither red nor blue.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate.html
new file mode 100644
index 00000000000..17d2a3c6a83
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-hue-rotate.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Hue-rotate</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-hue-rotate-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .filt {
+ backdrop-filter: hue-rotate(45deg);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a violet rectangle with a green box. Neither red nor blue.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert-ref.html
new file mode 100644
index 00000000000..ed3da420161
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Invert</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: black;
+ filter: invert(50%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: invert(50%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert.html
new file mode 100644
index 00000000000..59ec599f08e
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-invert.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Invert</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-invert-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: black;
+ }
+ .filt {
+ backdrop-filter: invert(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity-ref.html
new file mode 100644
index 00000000000..fef130ea59c
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity-ref.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Opacity</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a blue square with a green box inside.</p>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity.html
new file mode 100644
index 00000000000..850c41d10d5
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-opacity.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Opacity</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-opacity-ref.html">
+<style>
+ /* Note that per the spec, the backdrop image is read back, filters
+ are applied, any additional content is drawn, and then the resulting
+ image is composited back into the parent (over the top of the
+ existing backdrop image) using source-over compositing. In this case,
+ the only backdrop filter is opacity, so the backdrop image will be
+ filtered by opacity 50%, the green box (100% opacity) is drawn over
+ that at 100% opacity, and then the entire thing is composited into
+ the backdrop, which already contains the 100% opacity blue square.
+ So the blue square stays 100% blue. */
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .filt {
+ backdrop-filter: opacity(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a blue square with a green box inside.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate-ref.html
new file mode 100644
index 00000000000..d8b72346c0b
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Saturate</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: #f4fbff;
+ filter: saturate(2500%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: saturate(2500%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a light-blue rectangle with a green box. Neither cyan nor white.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate.html
new file mode 100644
index 00000000000..f131641ce85
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-saturate.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Saturate</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-saturate-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: #f4fbff;
+ }
+ .filt {
+ backdrop-filter: saturate(2500%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a light-blue rectangle with a green box. Neither cyan nor white.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia-ref.html
new file mode 100644
index 00000000000..624fb876f52
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Sepia</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+
+
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ filter: sepia(50%);
+ }
+ .filt {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ background: white;
+ filter: sepia(50%);
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 125px;
+ left: 125px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box.</p>
+<div class="filt"></div>
+<div class="square"></div>
+<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia.html b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia.html
new file mode 100644
index 00000000000..bcfae3d2c72
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/filter-effects/backdrop-filters-sepia.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>CSS Backdrop Filters Animation: Sepia</title>
+<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
+<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
+<link rel="match" href="backdrop-filters-sepia-ref.html">
+<style>
+ .square {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 100px;
+ left: 100px;
+ background: blue;
+ }
+ .filt {
+ backdrop-filter: sepia(50%);
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ top: 50px;
+ left: 50px;
+ }
+ .greenbox {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ top: 75px;
+ left: 75px;
+ background: green;
+ }
+</style>
+<p>You should see a dark blue rectangle with a green box.</p>
+<div class="square"></div>
+<div class="filt">
+ <div class="greenbox"></div>
+</div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity-ref.html b/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity-ref.html
index fd92dba5e57..c9253d28138 100644
--- a/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity-ref.html
+++ b/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity-ref.html
@@ -27,7 +27,7 @@
background: green;
}
</style>
-<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<p>You should see a blue square with a green box inside.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity.html b/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity.html
index d6c6d35efc6..72078e7c07b 100644
--- a/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity.html
+++ b/tests/wpt/web-platform-tests/css/filter-effects/css-backdrop-filters-animation-opacity.html
@@ -4,6 +4,15 @@
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="css-backdrop-filters-animation-opacity-ref.html">
<style>
+ /* Note that per the spec, the backdrop image is read back, filters
+ are applied, any additional content is drawn, and then the resulting
+ image is composited back into the parent (over the top of the
+ existing backdrop image) using source-over compositing. In this case,
+ the only backdrop filter is opacity, so the backdrop image will be
+ filtered by opacity 50%, the green box (100% opacity) is drawn over
+ that at 100% opacity, and then the entire thing is composited into
+ the backdrop, which already contains the 100% opacity blue square.
+ So the blue square stays 100% blue. */
@keyframes animate {
0% {
backdrop-filter: opacity(0%);
@@ -41,7 +50,7 @@
background: green;
}
</style>
-<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
+<p>You should see a blue square with a green box inside.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html
new file mode 100644
index 00000000000..095b2f0ba58
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001-ref.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
+ <style>
+ select {
+ color: transparent;
+ }
+ .minWidth {
+ min-width: 100px;
+ }
+ .width {
+ width: 100px;
+ }
+ .floatLWidth {
+ float: left;
+ width: 100px;
+ }
+ </style>
+</head>
+<body>
+ <select class="floatLWidth">
+ </select>
+ <br style="clear:both;">
+
+ <select class="minWidth">
+ </select>
+ <br>
+
+ <select class="width">
+ </select>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html
new file mode 100644
index 00000000000..fbb776a2568
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-001.html
@@ -0,0 +1,50 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Test: 'contain: size' on select objects should cause them to be sized as if they have no contents.</title>
+ <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
+ <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
+ <link rel="match" href="contain-size-select-elem-001-ref.html">
+ <style>
+ select {
+ contain: size;
+ color: transparent;
+ }
+ .minWidth {
+ min-width: 100px;
+ }
+ .width {
+ width: 100px;
+ }
+ .floatLWidth {
+ float: left;
+ width: 100px;
+ }
+ </style>
+</head>
+<body>
+ <select class="floatLWidth">
+ <option>CSS Test: A size-contained floated select with specified width and no specified height should size itself as if it had no contents.</option>
+ <option>a</option>
+ <option>b</option>
+ <option>c</option>
+ </select>
+ <br style="clear:both;">
+
+ <select class="minWidth">
+ <option>CSS Test: A size-contained select with specified min-width should size itself as if it had no contents.</option>
+ <option>a</option>
+ <option>b</option>
+ <option>c</option>
+ </select>
+ <br>
+
+ <select class="width">
+ <option>CSS Test: A size-contained select with specified width should size itself as if it had no contents.</option>
+ <option>a</option>
+ <option>b</option>
+ <option>c</option>
+ </select>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html
new file mode 100644
index 00000000000..a2ec520bb3e
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
+ <style>
+ select {
+ color: transparent;
+ }
+ .floatLBasic {
+ float: left;
+ }
+ </style>
+</head>
+<body>
+ <select>
+ </select>
+ <br>
+
+ <select class="floatLBasic">
+ </select>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html
new file mode 100644
index 00000000000..c9fcfbd2cdf
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/contain-size-select-elem-002.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Test: 'contain: size' on select objects should cause them to be sized as if they have no contents.</title>
+ <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
+ <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
+ <link rel="match" href="contain-size-select-elem-002-ref.html">
+ <style>
+ select {
+ contain: size;
+ color: transparent;
+ }
+ .floatLBasic {
+ float: left;
+ }
+ </style>
+</head>
+<body>
+ <select>
+ <option>CSS Test: A size-contained select with no specified size should size itself as if it had no contents.</option>
+ <option>aaaaaa</option>
+ <option>b</option>
+ <option>c</option>
+ </select>
+ <br>
+
+ <select class="floatLBasic">
+ <option>CSS Test: A size-contained floated select with no specified size should size itself as if it had no contents.</option>
+ <option>a</option>
+ <option>b</option>
+ <option>c</option>
+ </select>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list
index 9a70ca1e9ae..7bb355283c8 100644
--- a/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list
+++ b/tests/wpt/web-platform-tests/css/vendor-imports/mozilla/mozilla-central-reftests/contain/reftest.list
@@ -34,6 +34,8 @@
== contain-size-fieldset-002.html contain-size-fieldset-002-ref.html
== contain-size-multicol-002.html contain-size-multicol-002-ref.html
== contain-size-multicol-003.html contain-size-multicol-003-ref.html
+== contain-size-select-elem-001.html contain-size-select-elem-001-ref.html
+== contain-size-select-elem-002.html contain-size-select-elem-002-ref.html
== contain-layout-overflow-001.html contain-layout-overflow-001-ref.html
== contain-layout-overflow-002.html contain-layout-overflow-002-ref.html
== contain-size-table-caption-001.html contain-size-table-caption-001-ref.html
diff --git a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html
index bf0234d3f65..bf0234d3f65 100644
--- a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html
+++ b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html
diff --git a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html.headers b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html.headers
index d307ccc9b09..d307ccc9b09 100644
--- a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.html.headers
+++ b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-report-only.https.html.headers
diff --git a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html
index 94674a37a81..94674a37a81 100644
--- a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html
+++ b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html
diff --git a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html.headers b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html.headers
index 0e145978a01..0e145978a01 100644
--- a/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.html.headers
+++ b/tests/wpt/web-platform-tests/feature-policy/reporting/midi-reporting.https.html.headers
diff --git a/tests/wpt/web-platform-tests/html/dom/elements-obsolete.js b/tests/wpt/web-platform-tests/html/dom/elements-obsolete.js
index 7f673cb7f0e..3ef9e9f9971 100644
--- a/tests/wpt/web-platform-tests/html/dom/elements-obsolete.js
+++ b/tests/wpt/web-platform-tests/html/dom/elements-obsolete.js
@@ -1,17 +1,4 @@
var obsoleteElements = {
- applet: {
- align: "string",
- alt: "string",
- archive: "string",
- code: "string",
- codeBase: "url",
- height: "string",
- hspace: "unsigned long",
- name: "string",
- object: "url",
- vspace: "unsigned long",
- width: "string",
- },
marquee: {
behavior: {
type: {
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tenative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tenative.html
index 2202048ae91..16b0ba672bc 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tenative.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tenative.html
@@ -14,7 +14,7 @@
<body>
<h1>Clicking in iframe has activation state in child</h1>
<ol id="instructions">
- <li>Click inside the red area.
+ <li>Click inside the light-grey area.
</ol>
<iframe id="child" width="200" height="200"></iframe>
<script>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html
new file mode 100644
index 00000000000..7dd8018573d
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-parent-manual.sub.tentative.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<!--
+ Tentative due to:
+ https://github.com/whatwg/html/issues/1903
+-->
+<html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/testdriver.js"></script>
+<script src="/resources/testdriver-vendor.js"></script>
+</head>
+<body>
+ <h1>Activation state is visible in parent and not in child</h1>
+ <ol id="instructions">
+ <li>Click anywhere on the green area (child frame).
+ </ol>
+ <iframe id="child" width="400" height="400"></iframe>
+ <script>
+ async_test(function(t) {
+ assert_false(navigator.userActivation.isActive);
+ assert_false(navigator.userActivation.hasBeenActive);
+
+ let child = document.getElementById("child");
+
+ window.addEventListener("message", t.step_func(event => {
+ if (event.source === frames[0].frames[0] && event.data === 'checked') {
+ // Parent should be active after child is clicked.
+ assert_true(navigator.userActivation.isActive);
+ assert_true(navigator.userActivation.hasBeenActive);
+ t.done();
+ }
+ }));
+ child.src = "http://{{domains[www1]}}:{{ports[http][0]}}/html/user-activation/resources/activation-hierarchy-child.sub.html";
+ }, "Parent test");
+ </script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html
index edaad261478..777cb5b11ef 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click-two-child-frames.sub.tentative.html
@@ -24,12 +24,12 @@
var child1 = document.getElementById("child1");
var child2 = document.getElementById("child2");
var is_child_four_loaded = false;
- var is_child_five_loaded = false;
+ var is_child_two_loaded = false;
assert_false(navigator.userActivation.isActive);
assert_false(navigator.userActivation.hasBeenActive);
function tryClickInstructions() {
- if (is_child_four_loaded && is_child_five_loaded)
+ if (is_child_four_loaded && is_child_two_loaded)
test_driver.click(document.getElementById('instructions'));
}
@@ -52,15 +52,15 @@
assert_false(navigator.userActivation.hasBeenActive);
child2.contentWindow.postMessage('report', '*');
- } else if (msg.type == 'child-five-loaded') {
+ } else if (msg.type == 'child-two-loaded') {
// state should be false after load
assert_false(msg.isActive);
assert_false(msg.hasBeenActive);
// click in parent document after both child frames load
- is_child_five_loaded = true;
+ is_child_two_loaded = true;
tryClickInstructions();
- } else if (msg.type == 'child-five-report') {
+ } else if (msg.type == 'child-two-report') {
assert_false(msg.isActive);
assert_false(msg.hasBeenActive);
@@ -75,7 +75,7 @@
assert_true(navigator.userActivation.hasBeenActive);
// transfer user activation to the child frame
- child1.contentWindow.postMessage("transfer_user_activation",
+ child1.contentWindow.postMessage("report",
{targetOrigin: "*", transferUserActivation: true});
// sender's activation state is updated synchronously
@@ -83,7 +83,7 @@
assert_false(navigator.userActivation.hasBeenActive);
}));
child1.src = "http://{{domains[www]}}:{{ports[http][0]}}/html/user-activation/resources/child-four.html";
- child2.src = "http://{{domains[www1]}}:{{ports[http][0]}}/html/user-activation/resources/child-five.html";
+ child2.src = "http://{{domains[www1]}}:{{ports[http][0]}}/html/user-activation/resources/child-two.html";
}, "Cross-origin user activation transfer through postMessages");
</script>
</body>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html
index e7d98c3b194..ef1602a8c36 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-cross-origin-with-click.sub.tentative.html
@@ -48,7 +48,7 @@
assert_true(navigator.userActivation.hasBeenActive);
// transfer user activation to the child frame
- child.contentWindow.postMessage("transfer_user_activation",
+ child.contentWindow.postMessage("report",
{targetOrigin: "*", transferUserActivation: true});
// sender's activation state is updated synchronously
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-with-click.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-with-click.tentative.html
index 6b7a2b72967..040d36c3190 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-with-click.tentative.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-with-click.tentative.html
@@ -48,7 +48,7 @@
assert_true(navigator.userActivation.hasBeenActive);
// transfer user activation to the child frame
- child.contentWindow.postMessage("transfer_user_activation",
+ child.contentWindow.postMessage("report",
{transferUserActivation: true});
// sender's activation state is updated synchronously
diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-without-click.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-without-click.tentative.html
index 50cce1fcc6a..a12d4346a8e 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-without-click.tentative.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/activation-transfer-without-click.tentative.html
@@ -22,7 +22,7 @@
function tryPostMessaging() {
if (is_page_loaded && is_child_four_loaded)
- child.contentWindow.postMessage("transfer_user_activation", {transferUserActivation: true});
+ child.contentWindow.postMessage("report", {transferUserActivation: true});
}
window.addEventListener("message", t.step_func(event => {
diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-child.sub.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-child.sub.html
new file mode 100644
index 00000000000..ebccc8c0dbf
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-child.sub.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body style="background: lightgreen;">
+ <h1>Child frame</h1>
+ <iframe id="grandchild" width="350" height="200"></iframe>
+ <script>
+ async_test(function(t) {
+ assert_false(navigator.userActivation.isActive);
+ assert_false(navigator.userActivation.hasBeenActive);
+
+ var grandchild = document.getElementById("grandchild");
+
+ window.addEventListener("click", t.step_func(event => {
+ // Child should be active when clicked.
+ assert_true(navigator.userActivation.isActive);
+ assert_true(navigator.userActivation.hasBeenActive);
+
+ // Ask grandchild to check its state (and notify top frame).
+ grandchild.contentWindow.postMessage('check-request', '*');
+
+ t.done();
+ }));
+
+ grandchild.src = "http://{{domains[www2]}}:{{ports[http][0]}}/html/user-activation/resources/activation-hierarchy-grandchild.html";
+ }, "Child test");
+ </script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-grandchild.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-grandchild.html
new file mode 100644
index 00000000000..b9fe19a746f
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-grandchild.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body style="background: lightgrey;">
+ <h1>Grandchild frame</h1>
+ <script>
+ async_test(function(t) {
+ assert_false(navigator.userActivation.isActive);
+ assert_false(navigator.userActivation.hasBeenActive);
+
+ window.addEventListener("message", event => {
+ if (event.source === parent && event.data === 'check-request') {
+ // Grandchild shouldn't be active after child is clicked.
+ assert_false(navigator.userActivation.isActive);
+ assert_false(navigator.userActivation.hasBeenActive);
+
+ // Notify top frame that checks are done.
+ parent.parent.postMessage('checked', '*');
+
+ t.done();
+ }
+ });
+
+ }, "Grandchild test");
+ </script>
+</body>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/child-five.html b/tests/wpt/web-platform-tests/html/user-activation/resources/child-five.html
deleted file mode 100644
index 9260a300a1b..00000000000
--- a/tests/wpt/web-platform-tests/html/user-activation/resources/child-five.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<body style="background: red;">
-<script>
- window.parent.postMessage(JSON.stringify({"type": "child-five-loaded", "isActive": navigator.userActivation.isActive,
- "hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
-
- window.addEventListener("message", event => {
- if (event.source === window.parent && event.data == "report") {
- window.parent.postMessage(JSON.stringify({"type": "child-five-report", "isActive": navigator.userActivation.isActive,
- "hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
- }
- });
-
-</script>
-</body>
diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/child-four.html b/tests/wpt/web-platform-tests/html/user-activation/resources/child-four.html
index 4811edb7ef0..65d17f273e1 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/resources/child-four.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/resources/child-four.html
@@ -5,7 +5,7 @@
"hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
window.addEventListener("message", event => {
- if (event.source === window.parent && event.data == "transfer_user_activation") {
+ if (event.source === window.parent && event.data == "report") {
window.parent.postMessage(JSON.stringify({"type": "child-four-report", "isActive": navigator.userActivation.isActive,
"hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
}
diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html b/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html
index 7d48789878a..1fa8343a186 100644
--- a/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html
+++ b/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html
@@ -1,7 +1,15 @@
<!DOCTYPE html>
-<body style="background: red;">
+<body style="background: lightgrey;">
<script>
- window.parent.postMessage(JSON.stringify({"type": "child-two-loaded", "isActive": navigator.userActivation.isActive,
- "hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
+ window.parent.postMessage(JSON.stringify({"type": "child-two-loaded", "isActive": navigator.userActivation.isActive,
+ "hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
+
+ window.addEventListener("message", event => {
+ if (event.source === window.parent && event.data == "report") {
+ window.parent.postMessage(JSON.stringify({"type": "child-two-report", "isActive": navigator.userActivation.isActive,
+ "hasBeenActive": navigator.userActivation.hasBeenActive}), "*");
+ }
+ });
+
</script>
</body>
diff --git a/tests/wpt/web-platform-tests/inert/frame/button.html b/tests/wpt/web-platform-tests/inert/frame/button.html
new file mode 100644
index 00000000000..5867c758142
--- /dev/null
+++ b/tests/wpt/web-platform-tests/inert/frame/button.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+body {
+ overflow: hidden;
+}
+
+button#background {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 150px;
+ height: 40px;
+ line-height: 53px;
+}
+
+button.clicked {
+ background-color: red;
+}
+
+button.clicked::after {
+ content: " (clicked)";
+}
+
+</style>
+</head>
+<body>
+ <button id="background">background</button>
+<script>
+document.body.addEventListener('click', (e) => {
+ e.target.classList.add('clicked');
+});
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/inert/inert-retargeting-iframe.tentative.html b/tests/wpt/web-platform-tests/inert/inert-retargeting-iframe.tentative.html
new file mode 100644
index 00000000000..78d7f6b36a7
--- /dev/null
+++ b/tests/wpt/web-platform-tests/inert/inert-retargeting-iframe.tentative.html
@@ -0,0 +1,285 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/testdriver.js"></script>
+<script src="/resources/testdriver-actions.js"></script>
+<script src="/resources/testdriver-vendor.js"></script>
+<style>
+button#foreground,
+button#background {
+ position: absolute;
+ top: 75px;
+ left: 50px;
+ width: 100px;
+ height: 20px;
+}
+
+button#background {
+ left: 75px;
+ width: 150px;
+ height: 40px;
+ top: 125px;
+ line-height: 53px;
+}
+
+.clicked {
+ background-color: red;
+}
+
+#container.clicked {
+ background-color: green;
+}
+
+#ancestorContainer {
+ position: relative;
+ width: 300px;
+ height: 300px;
+ background-color: blue;
+}
+
+#displacedAncestor {
+ position: absolute;
+ top: 13px;
+ left: 240px;
+ width: 300px;
+ height: 250px;
+ background-color: #ff89;
+}
+
+#displacedAncestor.clicked {
+ background-color: #f009;
+}
+
+#inertContainer {
+ background-color: #fff9;
+ position: absolute;
+ top: 35px;
+ left: -192px;
+ width: 200px;
+ height: 200px;
+}
+
+fieldset {
+ margin: 0;
+ padding: 0;
+ border: 1px solid black;
+}
+
+legend {
+ background-color: white;
+ border: 1px solid black;
+ margin-left: 5px;
+}
+
+button.clicked::after {
+ content: " (clicked)";
+}
+
+.clicked > legend::after {
+ content: " (clicked)";
+}
+</style>
+</head>
+<body>
+ <p>Click on "Inert button".</p>
+ <ul>
+ <li>The blue square ("Non-inert ancestor container") should turn green.</li>
+ <li>The yellow, semi-transparent square ("Non-inert, displaced container") should not turn red.</li>
+ <li>"Non-inert button" should not turn red.</li>
+ </ul>
+ <p>(The full test suite checks a range of events.)</p>
+ <fieldset id="ancestorContainer">
+ <legend>Non-inert ancestor container</legend>
+ <iframe id="background" src="frame/button.html"></iframe>
+ <fieldset id="displacedAncestor">
+ <legend>Non-inert, displaced ancestor</legend>
+ <fieldset id="inertContainer" inert>
+ <legend>Inert container</legend>
+ <button id="foreground">foreground</button>
+ </fieldset>
+ </fieldset>
+ </fieldset>
+
+ <script>
+document.body.addEventListener('click', (e) => {
+ e.target.classList.add('clicked');
+});
+
+function clickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .send();
+}
+
+function auxClickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.RIGHT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.RIGHT})
+ .send();
+}
+
+function dblClickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .send();
+}
+
+function movePointerOver(element) {
+ let rect = element.getBoundingClientRect();
+ return new test_driver.Actions()
+ .pointerMove(0, 0, { origin: element })
+ .send();
+}
+
+function movePointerTo(x, y) {
+ return new test_driver.Actions()
+ .pointerMove(x, y, { origin: "viewport" })
+ .send();
+}
+
+function expectEventsOn(events, element) {
+ let promises = [];
+ for (event of events) {
+ ((event, element) => {
+ var promise = new Promise((resolve, reject) => {
+ let f = (e) => {
+ assert_equals(e.type, event);
+ assert_equals(e.target, element);
+ resolve();
+ }
+ element.addEventListener(event, f, { capture: true, once: true });
+
+ setTimeout(() => {
+ element.removeEventListener(event, f, { capture: true });
+ reject("did not get " + event + " on " + element.id);
+ }, 1000);
+ });
+ promises.push(promise);
+ })(event, element);
+ }
+ return promises;
+}
+
+function unexpectEventsOn(events, element) {
+ let promises = [];
+ for (event of events) {
+ ((event, element) => {
+ var promise = new Promise((resolve, reject) => {
+ let f = (e) => {
+ assert_equals(e.type, event);
+ assert_equals(e.target, element);
+ reject("got " + e.type + " on " + e.target.id);
+ }
+ element.addEventListener(event, f, { capture: true, once: true });
+
+ setTimeout(() => {
+ element.removeEventListener(event, f, { capture: true });
+ resolve();
+ }, 1000);
+ });
+ promises.push(promise);
+ })(event, element);
+ }
+ return promises;
+}
+
+test(() => {
+ let rect = foreground.getBoundingClientRect();
+ let center_x = rect.left + (rect.width / 2);
+ let center_y = rect.top + (rect.height / 2);
+ assert_equals(document.elementsFromPoint(center_x, center_y)[0], foreground);
+}, "elementsFromPoint returns inert element");
+
+promise_test(async () => {
+ // Test mouse events on non-inert element - events should go to "foreground"
+ inertContainer.inert = false;
+ await movePointerTo(0, 0);
+ let promises = expectEventsOn(["mouseover", "mouseenter", "mousemove", "mousedown",
+ "mouseup", "click", "auxclick", "mouseout",
+ "mouseleave"],
+ foreground);
+ await clickOn(foreground);
+ await auxClickOn(foreground);
+ await dblClickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, "Tests that any mouse event on a non-inert element is correctly targeted to that element");
+
+promise_test(async () => {
+ // Make the containing element inert - now events should go to "container"
+ // which is the non-inert ancestor at the same position
+ inertContainer.inert = true;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["mouseover", "mouseenter", "mousemove", "mousedown",
+ "mouseup", "click", "auxclick"],
+ ancestorContainer);
+
+ promises = promises.concat(unexpectEventsOn(["mouseout", "mouseleave"],
+ ancestorContainer));
+
+ await clickOn(foreground);
+ await auxClickOn(foreground);
+ await dblClickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, 'Tests that any mouse event on an inert element is targeted to the nearest non-inert ancestor at the same coordinates');
+
+promise_test(async () => {
+ // Test pointer events on non-inert element - events should go to "foreground"
+ inertContainer.inert = false;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["pointerover", "pointerenter", "pointermove",
+ "pointerdown", "pointerup", "pointerout",
+ "pointerleave"],
+ foreground);
+ await clickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, "Tests that any pointer event on a non-inert element is correctly targeted to that element");
+
+promise_test(async () => {
+ // Make the containing element inert - now events should go to "container"
+ // which is the non-inert ancestor at the same position
+ inertContainer.inert = true;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["pointerover", "pointerenter", "pointermove",
+ "pointerdown", "pointerup" ],
+ ancestorContainer);
+
+ promises = promises.concat(unexpectEventsOn(["pointerout", "pointerleave"],
+ ancestorContainer));
+ await clickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, 'Tests that any pointer event on an inert element is targeted to the nearest non-inert ancestor at the same coordinates');
+ </script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/inert/inert-retargeting.tentative.html b/tests/wpt/web-platform-tests/inert/inert-retargeting.tentative.html
new file mode 100644
index 00000000000..d239a7056f2
--- /dev/null
+++ b/tests/wpt/web-platform-tests/inert/inert-retargeting.tentative.html
@@ -0,0 +1,290 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/testdriver.js"></script>
+<script src="/resources/testdriver-actions.js"></script>
+<script src="/resources/testdriver-vendor.js"></script>
+<style>
+button#foreground,
+button#background {
+ position: absolute;
+ top: 75px;
+ left: 50px;
+ width: 100px;
+ height: 20px;
+}
+
+button#background {
+ left: 75px;
+ width: 150px;
+ height: 40px;
+ top: 125px;
+ line-height: 53px;
+}
+
+.clicked {
+ background-color: red;
+}
+
+#container.clicked {
+ background-color: green;
+}
+
+#ancestorContainer {
+ position: relative;
+ width: 300px;
+ height: 300px;
+ background-color: blue;
+}
+
+#displacedAncestor {
+ position: absolute;
+ top: 13px;
+ left: 240px;
+ width: 300px;
+ height: 250px;
+ background-color: #ff89;
+}
+
+#displacedAncestor.clicked {
+ background-color: #f009;
+}
+
+#inertContainer {
+ background-color: #fff9;
+ position: absolute;
+ top: 35px;
+ left: -192px;
+ width: 200px;
+ height: 200px;
+}
+
+fieldset {
+ margin: 0;
+ padding: 0;
+ border: 1px solid black;
+}
+
+legend {
+ background-color: white;
+ border: 1px solid black;
+ margin-left: 5px;
+}
+
+button.clicked::after {
+ content: " (clicked)";
+}
+
+.clicked > legend::after {
+ content: " (clicked)";
+}
+
+</style>
+</head>
+<body>
+ <p>Click on "foreground".</p>
+ <ul>
+ <li>The blue square ("Non-inert ancestor container") should turn green.</li>
+ <li>The yellow, semi-transparent square ("Non-inert, displaced container") should not turn red.</li>
+ <li>"Non-inert button" should not turn red.</li>
+ </ul>
+ <p>(The full test suite checks a range of events.)</p>
+ <fieldset id="ancestorContainer">
+ <legend>Non-inert ancestor container</legend>
+ <button id="background">background</button>
+ <fieldset id="displacedAncestor">
+ <legend>Non-inert, displaced ancestor</legend>
+ <fieldset id="inertContainer" inert>
+ <legend>Inert container</legend>
+ <button id="foreground">foreground</button>
+ </fieldset>
+ </fieldset>
+ </fieldset>
+
+ <script>
+document.body.addEventListener('click', (e) => {
+ e.target.classList.add('clicked');
+});
+
+function clickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .send();
+}
+
+function auxClickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.RIGHT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.RIGHT})
+ .send();
+}
+
+function dblClickOn(element) {
+ return new test_driver.Actions()
+ .pointerMove(0, 0, {origin: element})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerDown({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .pointerUp({button: test_driver.Actions.prototype.ButtonType.LEFT})
+ .send();
+}
+
+function movePointerOver(element) {
+ let rect = element.getBoundingClientRect();
+ return new test_driver.Actions()
+ .pointerMove(0, 0, { origin: element })
+ .send();
+}
+
+function movePointerTo(x, y) {
+ return new test_driver.Actions()
+ .pointerMove(x, y, { origin: "viewport" })
+ .send();
+}
+
+function expectEventsOn(events, element) {
+ let promises = [];
+ for (event of events) {
+ ((event, element) => {
+ var promise = new Promise((resolve, reject) => {
+ let f = (e) => {
+ assert_equals(e.type, event);
+ assert_equals(e.target, element);
+ resolve();
+ }
+ element.addEventListener(event, f, { capture: true, once: true });
+
+ setTimeout(() => {
+ element.removeEventListener(event, f, { capture: true });
+ reject("did not get " + event + " on " + element.id);
+ }, 1000);
+ });
+ promises.push(promise);
+ })(event, element);
+ }
+ return promises;
+}
+
+function unexpectEventsOn(events, element) {
+ let promises = [];
+ for (event of events) {
+ ((event, element) => {
+ var promise = new Promise((resolve, reject) => {
+ let f = (e) => {
+ assert_equals(e.type, event);
+ assert_equals(e.target, element);
+ reject("got " + e.type + " on " + e.target.id);
+ }
+ element.addEventListener(event, f, { capture: true, once: true });
+
+ setTimeout(() => {
+ element.removeEventListener(event, f, { capture: true });
+ resolve();
+ }, 1000);
+ });
+ promises.push(promise);
+ })(event, element);
+ }
+ return promises;
+}
+
+test(() => {
+ let rect = foreground.getBoundingClientRect();
+ let center_x = rect.left + (rect.width / 2);
+ let center_y = rect.top + (rect.height / 2);
+ assert_equals(document.elementsFromPoint(center_x, center_y)[0], foreground);
+}, "elementsFromPoint returns inert element");
+
+promise_test(async () => {
+ // Test mouse events on non-inert element - events should go to "foreground"
+ inertContainer.inert = false;
+ await movePointerTo(0, 0);
+ let promises = expectEventsOn(["mouseover", "mouseenter", "mousemove", "mousedown",
+ "mouseup", "click", "auxclick", "mouseout",
+ "mouseleave"],
+ foreground);
+ await clickOn(foreground);
+ await auxClickOn(foreground);
+ await dblClickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, "Tests that any mouse event on a non-inert element is correctly targeted to that element");
+
+promise_test(async () => {
+ // Make the containing element inert - now events should go to "container"
+ // which is the non-inert ancestor at the same position
+ inertContainer.inert = true;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["mouseover", "mouseenter", "mousemove", "mousedown",
+ "mouseup", "click", "auxclick"],
+ ancestorContainer);
+
+ // TODO(aboxhall): We are getting these unexpected events. Why?
+ promises = promises.concat(unexpectEventsOn(["mouseout", "mouseleave"],
+ ancestorContainer));
+
+ await clickOn(foreground);
+ await auxClickOn(foreground);
+ await dblClickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, 'Tests that any mouse event on an inert element is targeted to the nearest non-inert ancestor at the same coordinates');
+
+promise_test(async () => {
+ // Test pointer events on non-inert element - events should go to "foreground"
+ inertContainer.inert = false;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["pointerover", "pointerenter", "pointermove",
+ "pointerdown", "pointerup", "pointerout",
+ "pointerleave"],
+ foreground);
+ await clickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, "Tests that any pointer event on a non-inert element is correctly targeted to that element");
+
+promise_test(async () => {
+ // Make the containing element inert - now events should go to "container"
+ // which is the non-inert ancestor at the same position
+ inertContainer.inert = true;
+ await movePointerTo(0, 0);
+
+ let promises = expectEventsOn(["pointerover", "pointerenter", "pointermove",
+ "pointerdown", "pointerup" ],
+ ancestorContainer);
+
+ // TODO(aboxhall): We are getting these unexpected events. Why?
+ promises = promises.concat(unexpectEventsOn(["pointerout", "pointerleave"],
+ ancestorContainer));
+
+ await clickOn(foreground);
+ let ancestorBox = ancestorContainer.getBoundingClientRect();
+ let inertBox = inertContainer.getBoundingClientRect();
+ let x = ancestorBox.left + (ancestorBox.width / 2);
+ let y = inertBox.bottom + ((ancestorBox.bottom - inertBox.bottom) / 2);
+ await movePointerTo(x, y);
+ await Promise.all(promises);
+}, 'Tests that any pointer event on an inert element is targeted to the nearest non-inert ancestor at the same coordinates');
+
+</script>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/interfaces/animation-worklet.idl b/tests/wpt/web-platform-tests/interfaces/animation-worklet.idl
index 159cabd09cd..d223a745046 100644
--- a/tests/wpt/web-platform-tests/interfaces/animation-worklet.idl
+++ b/tests/wpt/web-platform-tests/interfaces/animation-worklet.idl
@@ -18,7 +18,7 @@ interface StatefulAnimator {
any state();
};
-[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
+[ Exposed=(AnimationWorklet, Worklet), Global=AnimationWorklet ]
interface AnimationWorkletGlobalScope : WorkletGlobalScope {
void registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor);
};
diff --git a/tests/wpt/web-platform-tests/largest-contentful-paint/observe-image.html b/tests/wpt/web-platform-tests/largest-contentful-paint/observe-image.html
index f98912085aa..43cdfab074d 100644
--- a/tests/wpt/web-platform-tests/largest-contentful-paint/observe-image.html
+++ b/tests/wpt/web-platform-tests/largest-contentful-paint/observe-image.html
@@ -5,21 +5,20 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
- let beforeRender;
- function computeTimestamp() {
- beforeRender = performance.now();
- }
async_test(function (t) {
if (!window.LargestContentfulPaint) {
assert_unreached("LargestContentfulPaint is not implemented");
}
+ let beforeRender = performance.now();
const observer = new PerformanceObserver(
t.step_func_done(function(entryList) {
assert_equals(entryList.getEntries().length, 1);
const entry = entryList.getEntries()[0];
assert_equals(entry.entryType, 'largestContentfulPaint');
- assert_greater_than_equal(entry.startTime, beforeRender);
- assert_greater_than_equal(performance.now(), entry.startTime);
+ assert_greater_than_equal(entry.startTime, beforeRender,
+ 'The rendering timestamp should occur after script starts running.');
+ assert_greater_than_equal(performance.now(), entry.startTime,
+ 'The rendering timestamp should occur before the entry is dispatched to the observer.');
assert_equals(entry.duration, 0);
// blue.png is 133 x 106.
assert_equals(entry.size, 14098);
@@ -29,5 +28,5 @@
}, 'Element with elementtiming attribute is observable.');
</script>
-<img src='/images/blue.png' onload='computeTimestamp()'/>
+<img src='/images/blue.png'/>
</body>
diff --git a/tests/wpt/web-platform-tests/lint.whitelist b/tests/wpt/web-platform-tests/lint.whitelist
index 9966d7c307b..c344c3a8344 100644
--- a/tests/wpt/web-platform-tests/lint.whitelist
+++ b/tests/wpt/web-platform-tests/lint.whitelist
@@ -817,3 +817,6 @@ LAYOUTTESTS APIS: resources/chromium/webxr-test.js
WEB-PLATFORM.TEST:signed-exchange/resources/*.sxg
WEB-PLATFORM.TEST:signed-exchange/appcache/resources/*.sxg
WEB-PLATFORM.TEST:signed-exchange/resources/generate-test-sxgs.sh
+
+SET TIMEOUT: inert/inert-retargeting.tentative.html
+SET TIMEOUT: inert/inert-retargeting-iframe.tentative.html
diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/idlharness.https.window.js b/tests/wpt/web-platform-tests/mediacapture-streams/idlharness.https.window.js
index 976d31b6609..5b255fca6b0 100644
--- a/tests/wpt/web-platform-tests/mediacapture-streams/idlharness.https.window.js
+++ b/tests/wpt/web-platform-tests/mediacapture-streams/idlharness.https.window.js
@@ -16,7 +16,7 @@ promise_test(async () => {
idl_array.add_dependency_idls(html);
idl_array.add_dependency_idls(dom);
- let input, media;
+ const devices = [];
// Errors will be surfaced in idlharness.js's test_object below.
try {
const list = await navigator.mediaDevices.enumerateDevices();
@@ -24,9 +24,9 @@ promise_test(async () => {
switch (item.kind) {
case 'audioinput':
case 'videoinput':
- input = item;
case 'audiooutput':
- media = item;
+ self[item.kind] = item;
+ devices.push(item.kind);
default:
assert_unreached(
'media.kind should be one of "audioinput", "videoinput", or "audiooutput".');
@@ -34,26 +34,21 @@ promise_test(async () => {
}
} catch (e) {}
- let stream, track, trackEvent;
try {
- stream = await navigator.mediaDevices.getUserMedia({audio: true});
- track = stream.getTracks()[0];
- trackEvent = new MediaStreamTrackEvent("type", {
+ self.stream = await navigator.mediaDevices.getUserMedia({audio: true});
+ self.track = stream.getTracks()[0];
+ self.trackEvent = new MediaStreamTrackEvent("type", {
track: track,
});
} catch (e) { throw e}
- if (input) {
- idl_array.add_objects({ InputDeviceInfo: [input] });
- } else {
- idl_array.add_objects({ MediaDeviceInfo: [media] });
- }
idl_array.add_objects({
- MediaStream: [stream, 'new MediaStream()'],
+ InputDeviceInfo: devices,
+ MediaStream: ['stream', 'new MediaStream()'],
Navigator: ['navigator'],
MediaDevices: ['navigator.mediaDevices'],
- MediaStreamTrack: [track],
- MediaStreamTrackEvent: [trackEvent],
+ MediaStreamTrack: ['track'],
+ MediaStreamTrackEvent: ['trackEvent'],
});
idl_array.test();
}, 'mediacapture-streams interfaces.');
diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.html b/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.html
new file mode 100644
index 00000000000..75ce1053ae5
--- /dev/null
+++ b/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
+<title>OffscreenCanvas test: 2d.text.font.relative_size</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/canvas-tests.js"></script>
+
+<h1>2d.text.font.relative_size</h1>
+<p class="desc"></p>
+
+
+<script>
+var t = async_test("");
+t.step(function() {
+
+var offscreenCanvas = new OffscreenCanvas(100, 50);
+var ctx = offscreenCanvas.getContext('2d');
+
+ctx.font = '1em sans-serif';
+_assertSame(ctx.font, '10px sans-serif', "ctx.font", "'10px sans-serif'");
+
+t.done();
+
+});
+</script>
diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.worker.js b/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.worker.js
new file mode 100644
index 00000000000..34836a1c4f4
--- /dev/null
+++ b/tests/wpt/web-platform-tests/offscreen-canvas/text/2d.text.font.relative_size.worker.js
@@ -0,0 +1,21 @@
+// DO NOT EDIT! This test has been generated by tools/gentest.py.
+// OffscreenCanvas test in a worker:2d.text.font.relative_size
+// Description:
+// Note:
+
+importScripts("/resources/testharness.js");
+importScripts("/common/canvas-tests.js");
+
+var t = async_test("");
+t.step(function() {
+
+var offscreenCanvas = new OffscreenCanvas(100, 50);
+var ctx = offscreenCanvas.getContext('2d');
+
+ctx.font = '1em sans-serif';
+_assertSame(ctx.font, '10px sans-serif', "ctx.font", "'10px sans-serif'");
+
+t.done();
+
+});
+done();
diff --git a/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml b/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml
index 0aaad783101..4bdf32db6c1 100644
--- a/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml
+++ b/tests/wpt/web-platform-tests/offscreen-canvas/tools/tests2d.yaml
@@ -9338,7 +9338,12 @@
code: |
@assert ctx.font === '10px sans-serif';
-
+- name: 2d.text.font.relative_size
+ testing:
+ - 2d.text.font.relative_size
+ code: |
+ ctx.font = '1em sans-serif';
+ @assert ctx.font === '10px sans-serif';
- name: 2d.text.align.valid
testing:
diff --git a/tests/wpt/web-platform-tests/preload/subresource-integrity.html b/tests/wpt/web-platform-tests/preload/subresource-integrity.html
new file mode 100644
index 00000000000..08c7854a9ec
--- /dev/null
+++ b/tests/wpt/web-platform-tests/preload/subresource-integrity.html
@@ -0,0 +1,284 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Subresource Integrity</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/sriharness.js"></script>
+<script src="/common/utils.js"></script>
+<script src="/subresource-integrity/sri-test-helpers.sub.js"></script>
+
+<div id="log"></div>
+
+<div id="container"></div>
+<script>
+ // This is a list of information for each preload destination. The information
+ // is used in a loop iterating over the below tests, so that each test is run
+ // for each destination.
+ const preload_destination_info = [
+ {
+ destination: 'script', ext: '.js', supports_sri: true,
+ sha256: 'sha256-Bu681KMnQ15RYHFvsYdWumweeFAw0hJDTFt9seErghA=',
+ sha384: 'sha384-cINXh+nCzEHPWzXS7eoT+vYMBpyqczOybRLNU3XAButFWCRhHT5hLByIbPRqIm2f',
+ sha512: 'sha512-KZdenhzBd7X7Q/vmaOSyvFz1CGdoVt26xzCZjlkU9lfBEK+V/ougGys7iYDi0+tOHIQSQa87bIqx95R7GU7I9Q=='
+ },
+ {
+ destination: 'style', ext: '.css', supports_sri: true,
+ sha256: 'sha256-CzHgdJ7wOccM8L89n4bhcJMz3F+SPLT7YZk7gyCWUV4=',
+ sha384: 'sha384-wDAWxH4tOWBwAwHfBn9B7XuNmFxHTMeigAMwn0iVQ0zq3FtmYMLxihcGnU64CwcX',
+ sha512: 'sha512-9wXDjd6Wq3H6nPAhI9zOvG7mJkUr03MTxaO+8ztTKnfJif42laL93Be/IF6YYZHHF4esitVYxiwpY2HSZX4l6w=='
+ },
+ // TODO(domfarolino): Add more destinations.
+ ];
+
+ for (const info of preload_destination_info) {
+ const {destination, ext, supports_sri, sha256, sha384, sha512} = info;
+
+ // Preload + Subresource Integrity tests. These tests work by passing some
+ // destination-specific information (defined in |preload_destination_info|)
+ // to the below tests, which do the following:
+ // Create a <link rel="preload"> for the given destination, with the
+ // specified `integrity`. After this has either loaded or failed to load,
+ // the subresource element corresponding to |destination| will be created,
+ // attempting to re-use the preloaded resource. `integrity` may be specified
+ // on the subresource elements that support SRI as well. The subresource
+ // will either load or fail to load, and the result will be compared with an
+ // expectation passed to the test.
+ SRIPreloadTest(
+ true, /* preload_sri_success */
+ true, /* subresource_sri_success */
+ `Same-origin ${destination} with correct sha256 hash.`, /* name */
+ destination, /* destination */
+ same_origin_prefix + destination + ext + `?${token()}`, /* resource_url (for preload + subresource) */
+ {integrity: sha256}, /* link_attrs */
+ {} /* subresource_attrs */
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with correct sha384 hash.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: sha384},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with correct sha512 hash.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: sha512},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with empty integrity.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {},
+ {}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `Same-origin ${destination} with incorrect hash.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: "sha256-deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdead"},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with multiple sha256 hashes, including correct.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `${sha256} sha256-deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdead`},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with multiple sha256 hashes, including unknown algorithm.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `${sha256} foo666-deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdead`},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with sha256 mismatch, sha512 match`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `${sha512} sha256-deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdead`},
+ {}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `Same-origin ${destination} with sha256 match, sha512 mismatch`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `sha512-deadbeefspbnUnwooKGNNCb39nvg+EW0O9hDScTXeo/9pVZztLSUYU3LNV6H0lZapo8bCJUpyPPLAzE9fDzpxg== ${sha256}`},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `<crossorigin='anonymous'> ${destination} with correct hash, ACAO: *`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + anonymous,
+ {integrity: sha256, crossOrigin: 'anonymous'},
+ {crossOrigin: "anonymous"}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `<crossorigin='anonymous'> ${destination} with incorrect hash, ACAO: *`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + anonymous,
+ {integrity: "sha256-sha256-deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdead", crossOrigin: "anonymous"},
+ {crossOrigin: "anonymous"}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `<crossorigin='use-credentials'> ${destination} with correct hash, CORS-eligible`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + use_credentials,
+ {integrity: sha256, crossOrigin: "use-credentials"},
+ {crossOrigin: "use-credentials"}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `<crossorigin='use-credentials'> ${destination} with incorrect hash CORS-eligible`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + use_credentials,
+ {integrity: "sha256-deadbeef2S+pTRZgiw3DWrhC6JLDlt2zRyGpwH7unU8=", crossOrigin: "use-credentials"},
+ {crossOrigin: "use-credentials"}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `<crossorigin='anonymous'> ${destination} with CORS-ineligible resource`,
+ destination,
+ // not piping ACAO header makes this CORS-ineligible
+ xorigin_prefix + destination + ext + `?${token()}`,
+ {integrity: sha256, crossOrigin: "anonymous"},
+ {crossOrigin: "anonymous"}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `Cross-origin ${destination}, not CORS request, with correct hash`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + anonymous,
+ {integrity: sha256},
+ {}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `Cross-origin ${destination}, not CORS request, with hash mismatch`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + anonymous,
+ {integrity: "sha256-deadbeef01Y0yKSx3/UoIKtIY2UQ9+H8WGyyMuOWOC0="},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Cross-origin ${destination}, empty integrity`,
+ destination,
+ xorigin_prefix + destination + ext + `?${token()}` + anonymous,
+ {},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with correct hash, options.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `${sha256}?foo=bar?spam=eggs`},
+ {}
+ )
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with unknown algorithm only.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: "foo666-8aBiAJl3ukQwSJ6eTs5wl6hGjnOtyXjcTRdAf89uIfY="},
+ {}
+ )
+
+ // The below tests are specific to subresource destinations that support
+ // SRI. See |supports_sri|.
+ if (supports_sri) {
+
+ SRIPreloadTest(
+ true,
+ true,
+ `Same-origin ${destination} with matching digest re-uses preload with matching digest.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: sha256},
+ {integrity: sha256}
+ )
+
+ SRIPreloadTest(
+ true,
+ false,
+ `Same-origin ${destination} with non-matching digest does not re-use preload with matching digest.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: sha256},
+ {integrity: "sha256-deadbeefQ15RYHFvsYdWumweeFAw0hJDTFt9seErghA="}
+ )
+
+ SRIPreloadTest(
+ false,
+ true,
+ `Same-origin ${destination} with matching digest does not re-use preload with non-matching digest.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: "sha256-deadbeefQ15RYHFvsYdWumweeFAw0hJDTFt9seErghA="},
+ {integrity: sha256}
+ )
+
+ SRIPreloadTest(
+ false,
+ false,
+ `Same-origin ${destination} with non-matching digest does not re-use preload with non-matching digest.`,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: "sha256-deadbeefQ15RYHFvsYdWumweeFAw0hJDTFt9seErghA="},
+ {integrity: "sha256-deaddeadbeefYHFvsYdWumweeFAw0hJDTFt9seErghA="}
+ )
+
+ } // if.
+
+ } // for-of.
+</script>
diff --git a/tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js b/tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js
index b2867609e7e..0c0f3819530 100644
--- a/tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js
+++ b/tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js
@@ -125,14 +125,52 @@ function ReferrerPolicyTestCase(scenario, testDescription, sanityChecker) {
policyDeliveries: [delivery]
};
+ let currentURL = location.toString();
const expectedReferrer =
- referrerUrlResolver[scenario.referrer_url](location.toString());
+ referrerUrlResolver[scenario.referrer_url](currentURL);
// Request in the top-level document.
promise_test(_ => {
+ return invokeRequest(subresource, [])
+ .then(result => checkResult(expectedReferrer, result));
+ }, testDescription);
+
+ // `Referer` headers with length over 4k are culled down to an origin, so, let's test around
+ // that boundary for tests that would otherwise return the complete URL.
+ if (scenario.referrer_url == "stripped-referrer") {
+ promise_test(_ => {
+ history.pushState(null, null, "/");
+ history.replaceState(null, null, "A".repeat(4096 - location.href.length - 1));
+ const expectedReferrer = location.href;
+ // Ensure that we don't load the same URL as the previous test.
+ subresource.url += "&-1";
return invokeRequest(subresource, [])
- .then(result => checkResult(expectedReferrer, result));
- }, testDescription);
+ .then(result => checkResult(location.href, result))
+ .finally(_ => history.back());
+ }, "`Referer` header with length < 4k is not stripped to an origin.");
+
+ promise_test(_ => {
+ history.pushState(null, null, "/");
+ history.replaceState(null, null, "A".repeat(4096 - location.href.length));
+ const expectedReferrer = location.href;
+ // Ensure that we don't load the same URL as the previous test.
+ subresource.url += "&0";
+ return invokeRequest(subresource, [])
+ .then(result => checkResult(expectedReferrer, result))
+ .finally(_ => history.back());
+ }, "`Referer` header with length == 4k is not stripped to an origin.");
+
+ promise_test(_ => {
+ const originString = referrerUrlResolver["origin"](currentURL);
+ history.pushState(null, null, "/");
+ history.replaceState(null, null, "A".repeat(4096 - location.href.length + 1));
+ // Ensure that we don't load the same URL as the previous test.
+ subresource.url += "&+1";
+ return invokeRequest(subresource, [])
+ .then(result => checkResult(originString, result))
+ .finally(_ => history.back());
+ }, "`Referer` header with length > 4k is stripped to an origin.");
+ }
// We test requests from inside iframes only for <img> tags.
// This is just to preserve the previous test coverage.
diff --git a/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js b/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
index 5406b6745bd..5ed96b8fc93 100644
--- a/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
+++ b/tests/wpt/web-platform-tests/resources/chromium/webxr-test.js
@@ -200,21 +200,21 @@ class MockRuntime {
}
poseFromMatrix(m) {
- let orientation = [];
-
let m00 = m[0];
let m11 = m[5];
let m22 = m[10];
+
// The max( 0, ... ) is just a safeguard against rounding error.
- orientation[3] = Math.sqrt(Math.max(0, 1 + m00 + m11 + m22)) / 2;
- orientation[0] = Math.sqrt(Math.max(0, 1 + m00 - m11 - m22)) / 2;
- orientation[1] = Math.sqrt(Math.max(0, 1 - m00 + m11 - m22)) / 2;
- orientation[2] = Math.sqrt(Math.max(0, 1 - m00 - m11 + m22)) / 2;
+ let orientation = new gfx.mojom.Quaternion();
+ orientation.w = Math.sqrt(Math.max(0, 1 + m00 + m11 + m22)) / 2;
+ orientation.x = Math.sqrt(Math.max(0, 1 + m00 - m11 - m22)) / 2;
+ orientation.y = Math.sqrt(Math.max(0, 1 - m00 + m11 - m22)) / 2;
+ orientation.z = Math.sqrt(Math.max(0, 1 - m00 - m11 + m22)) / 2;
- let position = [];
- position[0] = m[12];
- position[1] = m[13];
- position[2] = m[14];
+ let position = new gfx.mojom.Point3F();
+ position.x = m[12];
+ position.y = m[13];
+ position.z = m[14];
return {
orientation, position
@@ -249,7 +249,7 @@ class MockRuntime {
leftDegrees: 50.899,
rightDegrees: 35.197
},
- offset: [-0.032, 0, 0],
+ offset: new gfx.mojom.Vector3dF(-0.032, 0, 0),
renderWidth: 20,
renderHeight: 20
},
@@ -260,7 +260,7 @@ class MockRuntime {
leftDegrees: 50.899,
rightDegrees: 35.197
},
- offset: [0.032, 0, 0],
+ offset: new gfx.mojom.Vector3dF(0.032, 0, 0),
renderWidth: 20,
renderHeight: 20
},
@@ -293,7 +293,7 @@ class MockRuntime {
leftDegrees: toDegrees(leftTan),
rightDegrees: toDegrees(rightTan)
},
- offset: [0, 0, 0],
+ offset: new gfx.mojom.Vector3dF(0, 0, 0),
renderWidth: 20,
renderHeight: 20
};
@@ -320,7 +320,6 @@ class MockRuntime {
microseconds: now,
},
frameId: this.next_frame_id_++,
- projectionMatrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
bufferHolder: null,
bufferSize: {}
}
diff --git a/tests/wpt/web-platform-tests/resources/sriharness.js b/tests/wpt/web-platform-tests/resources/sriharness.js
index 9d7fa76a7d6..fe8ad2b4270 100644
--- a/tests/wpt/web-platform-tests/resources/sriharness.js
+++ b/tests/wpt/web-platform-tests/resources/sriharness.js
@@ -1,3 +1,5 @@
+// TODO(domfarolino): Refactor SRIScriptTest to just be a function instead of a
+// constructor, since there is no need to produce another object.
var SRIScriptTest = function(pass, name, src, integrityValue, crossoriginValue, nonce) {
this.pass = pass;
this.name = "Script: " + name;
@@ -32,6 +34,100 @@ SRIScriptTest.prototype.execute = function() {
document.body.appendChild(e);
};
+function buildElementFromDestination(resource_url, destination, attrs) {
+ // Assert: |destination| is a valid destination.
+ let element;
+
+ // The below switch is responsible for:
+ // 1. Creating the correct subresource element
+ // 2. Setting said element's href, src, or fetch-instigating property
+ // appropriately.
+ switch (destination) {
+ case "script":
+ element = document.createElement(destination);
+ element.src = resource_url;
+ break;
+ case "style":
+ element = document.createElement('link');
+ element.rel = 'stylesheet';
+ element.href = resource_url;
+ break;
+ case "image":
+ element = document.createElement('img');
+ element.src = resource_url;
+ break;
+ default:
+ assert_unreached("INVALID DESTINATION");
+ }
+
+ // Apply the rest of the attributes, if any.
+ for (const [attr_name, attr_val] of Object.entries(attrs)) {
+ element[attr_name] = attr_val;
+ }
+
+ return element;
+}
+
+const SRIPreloadTest = (preload_sri_success, subresource_sri_success, name,
+ destination, resource_url, link_attrs,
+ subresource_attrs) => {
+ const test = async_test(name);
+ const link = document.createElement('link');
+
+ // Early-fail in UAs that do not support `preload` links.
+ test.step_func(() => {
+ assert_true(link.relList.supports('preload'),
+ "This test is automatically failing because the browser does not" +
+ "support `preload` links.");
+ })();
+
+ // Build up the link.
+ link.rel = 'preload';
+ link.as = destination;
+ link.href = resource_url;
+ for (const [attr_name, attr_val] of Object.entries(link_attrs)) {
+ link[attr_name] = attr_val; // This may override `rel` to modulepreload.
+ }
+
+ // Preload + subresource success and failure loading functions.
+ const valid_preload_failed = test.step_func(() =>
+ { assert_unreached("Valid preload fired error handler.") });
+ const invalid_preload_succeeded = test.step_func(() =>
+ { assert_unreached("Invalid preload load succeeded.") });
+ const valid_subresource_failed = test.step_func(() =>
+ { assert_unreached("Valid subresource fired error handler.") });
+ const invalid_subresource_succeeded = test.step_func(() =>
+ { assert_unreached("Invalid subresource load succeeded.") });
+ const subresource_pass = test.step_func(() => { test.done(); });
+ const preload_pass = test.step_func(() => {
+ const subresource_element = buildElementFromDestination(
+ resource_url,
+ destination,
+ subresource_attrs
+ );
+
+ if (subresource_sri_success) {
+ subresource_element.onload = subresource_pass;
+ subresource_element.onerror = valid_subresource_failed;
+ } else {
+ subresource_element.onload = invalid_subresource_succeeded;
+ subresource_element.onerror = subresource_pass;
+ }
+
+ document.body.append(subresource_element);
+ });
+
+ if (preload_sri_success) {
+ link.onload = preload_pass;
+ link.onerror = valid_preload_failed;
+ } else {
+ link.onload = invalid_preload_succeeded;
+ link.onerror = preload_pass;
+ }
+
+ document.head.append(link);
+}
+
// <link> tests
// Style tests must be done synchronously because they rely on the presence
// and absence of global style, which can affect later tests. Thus, instead
@@ -63,6 +159,8 @@ SRIStyleTest.prototype.execute = function() {
var div = document.createElement("div");
div.className = "testdiv";
var e = document.createElement("link");
+
+ // The link relation is guaranteed to not be "preload" or "modulepreload".
this.attrs.rel = this.attrs.rel || "stylesheet";
for (var key in this.attrs) {
if (this.attrs.hasOwnProperty(key)) {
diff --git a/tests/wpt/web-platform-tests/shape-detection/detection-HTMLVideoElement-invalid-state.html b/tests/wpt/web-platform-tests/shape-detection/detection-HTMLVideoElement-invalid-state.html
deleted file mode 100644
index e777c96e4a1..00000000000
--- a/tests/wpt/web-platform-tests/shape-detection/detection-HTMLVideoElement-invalid-state.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
-
-const videoElementTests =
- [
- {
- createDetector: () => { return new FaceDetector(); },
- name: "Face - detect(HTMLVideoElement)",
- },
- {
- createDetector: () => { return new BarcodeDetector(); },
- name: "Barcode - detect(HTMLVideoElement)",
- }
- ];
-
-for (let videoElementTest of videoElementTests) {
-
- // Detector's detect() rejects on a HAVE_NOTHING HTMLVideoElement.
- promise_test(async t => {
- const video = document.createElement("video");
- video.src = "";
- const videoWatcher = new EventWatcher(t, video, ["play", "error"]);
- video.load();
- await videoWatcher.wait_for("error");
- assert_equals(video.readyState, video.HAVE_NOTHING);
-
- const detector = videoElementTest.createDetector();
- await promise_rejects(t, 'InvalidStateError', detector.detect(video));
- }, `${videoElementTest.name} - HAVE_NOTHING`);
-
- // Detector's detect() rejects on a HAVE_METADATA HTMLVideoElement.
- promise_test(async t => {
- const video = document.createElement("video");
- video.src = "/media/white.webm";
- video.loop = true;
- video.autoplay = true;
- const videoWatcher = new EventWatcher(t, video, ["loadedmetadata", "error"]);
- video.load();
- await videoWatcher.wait_for("loadedmetadata");
- assert_equals(video.readyState, video.HAVE_METADATA);
-
- const detector = videoElementTest.createDetector();
- await promise_rejects(t, 'InvalidStateError', detector.detect(video));
- }, `${videoElementTest.name} - HAVE_METADATA`);
-
-}
-
-</script> \ No newline at end of file
diff --git a/tests/wpt/web-platform-tests/shape-detection/shapedetection-cross-origin.sub.html b/tests/wpt/web-platform-tests/shape-detection/shapedetection-cross-origin.sub.html
index f4536926697..c9d86430356 100644
--- a/tests/wpt/web-platform-tests/shape-detection/shapedetection-cross-origin.sub.html
+++ b/tests/wpt/web-platform-tests/shape-detection/shapedetection-cross-origin.sub.html
@@ -30,9 +30,9 @@ for (let crossOriginTest of crossOriginTests) {
img.src = IMAGE_URL;
await imgWatcher.wait_for("load");
const detector = crossOriginTest.createDetector();
- await promise_rejects(t, "SecurityError", detector.detect(img));
- }, `${crossOriginTest.detectorType} should reject cross-origin \
-HTMLImageElements with a SecurityError.`);
+ promise_rejects(t, "SecurityError", detector.detect(img));
+ }, crossOriginTest.detectorType
+ + " should reject cross-origin HTMLImageElements with a SecurityError.");
// Verifies that Detector rejects a cross-origin ImageBitmap.
promise_test(async t => {
@@ -42,9 +42,9 @@ HTMLImageElements with a SecurityError.`);
await imgWatcher.wait_for("load");
const imgBitmap = await createImageBitmap(img);
const detector = crossOriginTest.createDetector();
- await promise_rejects(t, "SecurityError", detector.detect(imgBitmap));
- }, `${crossOriginTest.detectorType} should reject cross-origin \
-ImageBitmaps with a SecurityError.`);
+ promise_rejects(t, "SecurityError", detector.detect(imgBitmap));
+ }, crossOriginTest.detectorType
+ + " should reject cross-origin ImageBitmaps with a SecurityError.");
// Verifies that Detector rejects a cross-origin HTMLVideoElement.
promise_test(async t => {
@@ -53,22 +53,9 @@ ImageBitmaps with a SecurityError.`);
video.src = VIDEO_URL;
await videoWatcher.wait_for("loadeddata");
const detector = crossOriginTest.createDetector();
- await promise_rejects(t, "SecurityError", detector.detect(video));
- }, `${crossOriginTest.detectorType} should reject cross-origin \
-HTMLVideoElements with a SecurityError.`);
-
- // Verifies that Detector rejects a cross-origin HTMLCanvasElement.
- promise_test(async t => {
- const img = new Image();
- const imgWatcher = new EventWatcher(t, img, ["load", "error"]);
- img.src = IMAGE_URL;
- await imgWatcher.wait_for("load");
- const canvas = document.createElement("canvas");
- canvas.getContext("2d").drawImage(img, 0, 0);
- const detector = crossOriginTest.createDetector();
- await promise_rejects(t, "SecurityError", detector.detect(canvas));
- }, `${crossOriginTest.detectorType} should reject cross-origin \
-HTMLCanvasElement with a SecurityError.`);
+ promise_rejects(t, "SecurityError", detector.detect(video));
+ }, crossOriginTest.detectorType
+ + " should reject cross-origin HTMLVideoElements with a SecurityError.");
}
diff --git a/tests/wpt/web-platform-tests/std-toast/attributes.html b/tests/wpt/web-platform-tests/std-toast/attributes.html
index 9bfc65c395c..2aef41aea61 100644
--- a/tests/wpt/web-platform-tests/std-toast/attributes.html
+++ b/tests/wpt/web-platform-tests/std-toast/attributes.html
@@ -113,4 +113,9 @@ testToastElementAsync((t, toast) => {
t.done();
}, 2000);
}, 'toggling open attribute does not start timeout');
+
+testToastElement((toast) => {
+ const permitted_properties = ['constructor', 'show', 'hide', 'toggle', 'open'];
+ assert_array_equals(permitted_properties.sort(), Object.getOwnPropertyNames(toast.__proto__).sort());
+}, 'toast only exposes certain properties');
</script>
diff --git a/tests/wpt/web-platform-tests/subresource-integrity/sri-test-helpers.sub.js b/tests/wpt/web-platform-tests/subresource-integrity/sri-test-helpers.sub.js
index 22c9e9c5dd9..53102d45442 100644
--- a/tests/wpt/web-platform-tests/subresource-integrity/sri-test-helpers.sub.js
+++ b/tests/wpt/web-platform-tests/subresource-integrity/sri-test-helpers.sub.js
@@ -9,19 +9,24 @@
// Thus, we only want the Access-Control-Allow-Origin header to have
// the port if it's not port 80 or 443, since the user agent will elide the
// ports in those cases.
-const main_domain = "{{domains[]}}";
-const www_domain = "{{domains[www]}}";
-const default_port = (location.protocol === "https:") ? "{{ports[https][0]}}" :
- "{{ports[http][0]}}";
+const main_domain = '{{domains[]}}';
+const www_domain = '{{domains[www]}}';
+const default_port = (location.protocol === 'https:') ? '{{ports[https][0]}}' :
+ '{{ports[http][0]}}';
-const port_string = (default_port !== "80" && default_port !== "443") ?
- `:${default_port}` : "";
+const port_string = (default_port !== '80' && default_port !== '443') ?
+ `:${default_port}` : '';
const www_host_and_port = www_domain + port_string;
// General resource prefixes.
const same_origin_prefix = '/subresource-integrity/';
const xorigin_prefix = `${location.protocol}//${www_host_and_port}/subresource-integrity/`;
+// General resource suffixes, for piping CORS headers.
+const anonymous = '&pipe=header(Access-Control-Allow-Origin,*)';
+const use_credentials = "&pipe=header(Access-Control-Allow-Credentials,true)|" +
+ "header(Access-Control-Allow-Origin," + location.origin + ")";
+
// Note that all of these style URLs have query parameters started, so any
// additional parameters should be appended starting with '&'.
const xorigin_anon_style = location.protocol
diff --git a/tests/wpt/web-platform-tests/webusb/usbDevice.https.any.js b/tests/wpt/web-platform-tests/webusb/usbDevice.https.any.js
index baff28367b2..03dbe8f4413 100644
--- a/tests/wpt/web-platform-tests/webusb/usbDevice.https.any.js
+++ b/tests/wpt/web-platform-tests/webusb/usbDevice.https.any.js
@@ -262,21 +262,51 @@ usb_test(() => {
});
}, 'methods requiring it reject when the device is unconfigured');
-usb_test(() => {
- return getFakeDevice().then(({ device }) => {
- return device.open()
- .then(() => device.selectConfiguration(1))
- .then(() => device.claimInterface(0))
- .then(() => {
- assert_true(device.configuration.interfaces[0].claimed);
- return device.releaseInterface(0);
- })
- .then(() => {
- assert_false(device.configuration.interfaces[0].claimed);
- return device.close();
- });
- });
-}, 'an interface can be claimed and released');
+usb_test(async () => {
+ let { device } = await getFakeDevice();
+ await device.open();
+ await device.selectConfiguration(1);
+ assert_false(device.configuration.interfaces[0].claimed);
+ assert_false(device.configuration.interfaces[1].claimed);
+
+ await device.claimInterface(0);
+ assert_true(device.configuration.interfaces[0].claimed);
+ assert_false(device.configuration.interfaces[1].claimed);
+
+ await device.claimInterface(1);
+ assert_true(device.configuration.interfaces[0].claimed);
+ assert_true(device.configuration.interfaces[1].claimed);
+
+ await device.releaseInterface(0);
+ assert_false(device.configuration.interfaces[0].claimed);
+ assert_true(device.configuration.interfaces[1].claimed);
+
+ await device.releaseInterface(1);
+ assert_false(device.configuration.interfaces[0].claimed);
+ assert_false(device.configuration.interfaces[1].claimed);
+
+ await device.close();
+}, 'interfaces can be claimed and released');
+
+usb_test(async () => {
+ let { device } = await getFakeDevice();
+ await device.open();
+ await device.selectConfiguration(1);
+ assert_false(device.configuration.interfaces[0].claimed);
+ assert_false(device.configuration.interfaces[1].claimed);
+
+ await Promise.all([device.claimInterface(0),
+ device.claimInterface(1)]);
+ assert_true(device.configuration.interfaces[0].claimed);
+ assert_true(device.configuration.interfaces[1].claimed);
+
+ await Promise.all([device.releaseInterface(0),
+ device.releaseInterface(1)]);
+ assert_false(device.configuration.interfaces[0].claimed);
+ assert_false(device.configuration.interfaces[1].claimed);
+
+ await device.close();
+}, 'interfaces can be claimed and released in parallel');
usb_test(async () => {
let { device } = await getFakeDevice()