diff --git a/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js b/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js index 2f168f06508a4..707d6d1fa54c1 100644 --- a/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy-attribute-redirect.tentative.https.window.js +++ b/testing/web-platform/tests/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/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js b/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js index b65013d177f10..24628f0103a86 100644 --- a/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-allowed-by-permissions-policy.tentative.https.window.js +++ b/testing/web-platform/tests/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/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js b/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js index 51b7e51844939..a4cc45ef6be4f 100644 --- a/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-default-permissions-policy.tentative.https.window.js +++ b/testing/web-platform/tests/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/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js b/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js deleted file mode 100644 index 283f703a283be..0000000000000 --- a/testing/web-platform/tests/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/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers b/testing/web-platform/tests/fetch/fetch-later/permissions-policy/deferred-fetch-disabled-by-permissions-policy.tentative.https.window.js.headers deleted file mode 100644 index 9c2b593ec80d3..0000000000000 --- a/testing/web-platform/tests/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=()