[ Feature Policy ] Followup on Opener Policies
This CL fixes a few types and mistakes in the original CL which
implemented opener policies (CL: 1384992).
Besides, this CL adds two WPTs to complement the test coverage for
"FeaturePolicyForSandbox". The current tests verify correctness of
propagation in the following cases:
1- "window.open" from an <iframe> that is not sandbox.
2- "window.open" from an <iframe> that is sandboxed but allows
escaping.
In case (1) the policies are expected to be inherited but in case (2)
they should not be inherited from the <iframe>.
Future tests add support for cross-origin frames/window as well as
rel=noopener case if need be.
[email protected]
Bug: 774620, 926293
Change-Id: I2da875a008584c7e2015a020fcad92e9528e748d
Reviewed-on: https://chromium-review.googlesource.com/c/1483942
Commit-Queue: Ehsan Karamad <[email protected]>
Reviewed-by: Ehsan Karamad <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Ćukasz Anforowicz <[email protected]>
Cr-Commit-Position: refs/heads/master@{#635680}
diff --git a/third_party/blink/web_tests/VirtualTestSuites b/third_party/blink/web_tests/VirtualTestSuites
index 114e7264..46f56b1 100644
--- a/third_party/blink/web_tests/VirtualTestSuites
+++ b/third_party/blink/web_tests/VirtualTestSuites
@@ -998,6 +998,11 @@
"args": ["--enable-blink-features=FeaturePolicyForSandbox"]
},
{
+ "prefix": "feature-policy-for-sandbox",
+ "base": "external/wpt/feature-policy/feature-policy-for-sandbox",
+ "args": ["--enable-blink-features=FeaturePolicyForSandbox"]
+ },
+ {
"prefix": "secure-device-sensor-events",
"base": "http/tests/security/powerfulFeatureRestrictions/",
"args": ["--enable-features=RestrictDeviceSensorEventsToSecureContexts"]