diff --git a/third_party/blink/common/permissions_policy/permissions_policy_unittest.cc b/third_party/blink/common/permissions_policy/permissions_policy_unittest.cc index 9a69cc1456471..0753321002f99 100644 --- a/third_party/blink/common/permissions_policy/permissions_policy_unittest.cc +++ b/third_party/blink/common/permissions_policy/permissions_policy_unittest.cc @@ -2574,7 +2574,7 @@ TEST_F(PermissionsPolicyTest, CreateForFledgeFencedFrame) { EXPECT_FALSE(policy->IsFeatureEnabled(kDefaultSelfFeature)); EXPECT_TRUE(policy->IsFeatureEnabled( mojom::PermissionsPolicyFeature::kAttributionReporting)); - EXPECT_FALSE(policy->IsFeatureEnabled( + EXPECT_TRUE(policy->IsFeatureEnabled( mojom::PermissionsPolicyFeature::kSharedStorage)); } diff --git a/third_party/blink/public/common/frame/fenced_frame_permissions_policies.h b/third_party/blink/public/common/frame/fenced_frame_permissions_policies.h index 8287bcb3da7d1..042078a3a4f6a 100644 --- a/third_party/blink/public/common/frame/fenced_frame_permissions_policies.h +++ b/third_party/blink/public/common/frame/fenced_frame_permissions_policies.h @@ -15,7 +15,9 @@ namespace blink { constexpr blink::mojom::PermissionsPolicyFeature kFencedFrameFledgeDefaultRequiredFeatures[] = { blink::mojom::PermissionsPolicyFeature::kAttributionReporting, - blink::mojom::PermissionsPolicyFeature::kPrivateAggregation}; + blink::mojom::PermissionsPolicyFeature::kPrivateAggregation, + blink::mojom::PermissionsPolicyFeature::kSharedStorage, + blink::mojom::PermissionsPolicyFeature::kSharedStorageSelectUrl}; constexpr blink::mojom::PermissionsPolicyFeature kFencedFrameSharedStorageDefaultRequiredFeatures[] = { diff --git a/third_party/blink/web_tests/external/wpt/fenced-frame/resources/default-enabled-features-helper.js b/third_party/blink/web_tests/external/wpt/fenced-frame/resources/default-enabled-features-helper.js index 821ebf69e367b..5b4c292622f0a 100644 --- a/third_party/blink/web_tests/external/wpt/fenced-frame/resources/default-enabled-features-helper.js +++ b/third_party/blink/web_tests/external/wpt/fenced-frame/resources/default-enabled-features-helper.js @@ -31,15 +31,23 @@ async function runDefaultEnabledFeaturesTest(t, should_load, fenced_origin, "frame loaded using FLEDGE or shared storage."); if (generator_api == "fledge") { - assert_false( + assert_true( document.featurePolicy.allowsFeature('shared-storage'), - "Shared storage should be disallowed if the fenced " + + "Shared Storage should be allowed if the fenced " + + "frame loaded using FLEDGE."); + assert_true( + document.featurePolicy.allowsFeature('private-aggregation'), + "Private Aggregation should be allowed if the fenced " + "frame loaded using FLEDGE."); } else { assert_true( document.featurePolicy.allowsFeature('shared-storage'), - "Shared storage should be allowed if the fenced " + - "frame loaded using shared storage."); + "Shared Storage should be allowed if the fenced " + + "frame loaded using Shared Storage."); + assert_false( + document.featurePolicy.allowsFeature('private-aggregation'), + "Private Aggregation should be disabled if the fenced " + + "frame loaded using Shared Storage."); } }, [generator_api]); }