From 7ad205d97760938d18aab19cb12bdd125f3f3113 Mon Sep 17 00:00:00 2001 From: Uzlopak <5059100+Uzlopak@users.noreply.github.com> Date: Fri, 6 Sep 2024 00:16:16 +0000 Subject: [PATCH] chore: update WPT --- ...tribute-redirect.tentative.https.window.js | 4 +-- ...rmissions-policy.tentative.https.window.js | 4 +-- ...rmissions-policy.tentative.https.window.js | 4 +-- ...rmissions-policy.tentative.https.window.js | 34 ------------------- ...s-policy.tentative.https.window.js.headers | 1 - 5 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js delete mode 100644 test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers diff --git a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js index 2f168f06508..707d6d1fa54 100644 --- a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js +++ b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js @@ -27,5 +27,5 @@ async_test(t => { 'fetchLater()', t, getDeferredFetchPolicyInIframeHelperUrl( `${baseUrl}${HTTPS_NOTSAMESITE_ORIGIN}`), - expect_feature_unavailable_default, /*feature_name=*/ 'deferred-fetch'); -}, `${description} disallows cross-origin navigation in an iframe.`); + expect_feature_available_default, /*feature_name=*/ 'deferred-fetch'); +}, `${description} allows cross-origin navigation in an iframe.`); diff --git a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js index b65013d177f..24628f0103a 100644 --- a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js +++ b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js @@ -34,8 +34,8 @@ async_test(t => { test_feature_availability( 'fetchLater()', t, getDeferredFetchPolicyInIframeHelperUrl(HTTPS_NOTSAMESITE_ORIGIN), - expect_feature_unavailable_default); -}, `${description} disallows fetchLater() in the cross-origin iframe.`); + expect_feature_available_default); +}, `${description} allows fetchLater() in the cross-origin iframe.`); async_test(t => { test_feature_availability( diff --git a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js index 51b7e518449..a4cc45ef6be 100644 --- a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js +++ b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js @@ -34,5 +34,5 @@ async_test(t => { test_feature_availability( 'fetchLater()', t, getDeferredFetchPolicyInIframeHelperUrl(HTTPS_NOTSAMESITE_ORIGIN), - expect_feature_unavailable_default); -}, `${description} disallows fetchLater() in the cross-origin iframe.`); + expect_feature_available_default); +}, `${description} allows fetchLater() in the cross-origin iframe.`); diff --git a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js deleted file mode 100644 index 283f703a283..00000000000 --- a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js +++ /dev/null @@ -1,34 +0,0 @@ -// META: title=Permissions Policy "deferred-fetch" is disabled -// META: script=/permissions-policy/resources/permissions-policy.js -// META: script=/common/utils.js -// META: script=/common/get-host-info.sub.js -// META: script=/fetch/fetch-later/resources/fetch-later-helper.js -// META: script=/fetch/fetch-later/permissions-policy/resources/helper.js -// META: timeout=long -'use strict'; - -const { - HTTPS_ORIGIN, - HTTPS_NOTSAMESITE_ORIGIN, -} = get_host_info(); - -const description = 'Permissions policy header: "deferred-fetch=()"'; - -parallelPromiseTest(async _ => { - // Request the browser to fetchLater() immediately, which is not allowed. - assert_throws_dom( - 'NotAllowedError', () => fetchLater('/', {activateAfter: 0})); -}, `${description} disallows fetchLater() in the top-level document.`); - -async_test(t => { - test_feature_availability( - 'fetchLater()', t, getDeferredFetchPolicyInIframeHelperUrl(HTTPS_ORIGIN), - expect_feature_unavailable_default); -}, `${description} disallows fetchLater() in the same-origin iframe.`); - -async_test(t => { - test_feature_availability( - 'fetchLater()', t, - getDeferredFetchPolicyInIframeHelperUrl(HTTPS_NOTSAMESITE_ORIGIN), - expect_feature_unavailable_default); -}, `${description} disallows fetchLater() in the cross-origin iframe.`); diff --git a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers b/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers deleted file mode 100644 index 9c2b593ec80..00000000000 --- a/test/fixtures/wpt/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers +++ /dev/null @@ -1 +0,0 @@ -Permissions-Policy: deferred-fetch=()