Closed Bug 1793992 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36314 - [Permissions Policy Wildcards] (5) Add WPTs

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 36314 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/36314
Details from upstream follow.

Ari Chivukula <arichiv@chromium.org> wrote:

[Permissions Policy Wildcards] (5) Add WPTs

We can see the entire thing work end to end now! This includes a fix for
the JS permissions inspection API now that it's tested e2e.
Design doc:
https://github.com/w3c/webappsec-permissions-policy/pull/482/

This CL is part of a series:
(1) Add function to detect subdomain matches
(2) Use OriginWithPossibleWildcards in policy
(3) Propagate node source to allow list parser
(4) Parse wildcard subdomain matches
(5) Add WPTs
(6) Enable by default

Bug: 1345994
Change-Id: I8826db4e74eb8a40e09e176459fe5f84343d456e
Reviewed-on: https://chromium-review.googlesource.com/3938164
WPT-Export-Revision: 809e03120be894722a04da029b866d3de8d19398

CI Results

Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 9 subtests

Status Summary

Firefox

OK : 2
FAIL: 16

Chrome

OK : 2
PASS: 13
FAIL: 3

Safari

OK : 2
FAIL: 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /permissions-policy/permissions-policy-header-policy-allowed-for-malformed-wildcard.https.sub.html [wpt.fyi]
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test allowlist lists all the malformed wildcards and self.: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is allowed on same-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is allowed on same-origin subframe with allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is disallowed on cross-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is disallowed on cross-origin subframe allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is disallowed on another cross-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("$MALFORMED_WILDCARD_ORIGINS self") -- test fullscreen is disallowed on another cross-origin subframe allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
  • /permissions-policy/permissions-policy-header-policy-allowed-for-wildcard.https.sub.html [wpt.fyi]
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test allowlist is [self wildcard_origin].: FAIL (Chrome: FAIL, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is allowed on same-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is allowed on same-origin subframe even with allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is disallowed on cross-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is allowed on cross-origin subframe allow attribute: FAIL (Chrome: FAIL, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is disallowed on another cross-origin subframe: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is allowed on another cross-origin subframe allow attribute: FAIL (Chrome: FAIL, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is disallowed on cross-origin subframe with wildcard allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
    • Permissions-Policy: fullscreen=("https://*.web-platform.test:8443") -- test fullscreen is disallowed on another cross-origin subframe with wildcard allow attribute: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e06fae433378 [wpt PR 36314] - [Permissions Policy Wildcards] (6) Add WPTs, a=testonly https://hg.mozilla.org/integration/autoland/rev/9991668d9a03 [wpt PR 36314] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.