Closed Bug 1446406 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 10076 - Fix feature policy in isolated sandboxes.

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mozilla.org, Unassigned)

Details

(Whiteboard: [wptsync downstream error])

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

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

Ian Clelland wrote:
>  Fix feature policy in isolated sandboxes.
>  
>  This CL adds a new member to the ParsedFeaturePolicyDeclaraion, which
>  indicates that the iframe policy is expected to apply to the sandboxed
>  frame. This is triggered with an iframe of the form
>  
>  <iframe sandbox allow="feature">
>  
>  or
>  
>  <iframe sandbox allow="feature src">
>  
>  Because the opaque origin of the frame is not known when the
>  HTMLFrameOwnerElement builds the container policy, this flag is checked
>  when building the feature policy in the new frame, and ensures that the
>  new feature policy will allow the feature in that origin.
>  
>  Bug: 794631, 690520
>  Change-Id: Ie18b9bc3c36be6550baf5a03e355871b9589fd40
>  Reviewed-on: https://chromium-review.googlesource.com/963382
>  WPT-Export-Revision: 8d472ff0e557de402c57e8abb1a25572aa4bce39
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 79 tests and 292 subtests
OK     : 61
PASS   : 16
FAIL   : 276
TIMEOUT: 18

New tests that have failures or other problems:
/feature-policy/feature-policy-frame-policy-allowed-for-self.https.sub.html
    Test frame policy on sandboxed iframe with allow="fullscreen 'src'".: FAIL
    Test frame policy on sandboxed iframe with allow="fullscreen https://www.web-platform.test:8443".: FAIL
    Test frame policy on sandboxed iframe with allow="fullscreen".: FAIL
    Test frame policy on sandboxed iframe with no allow attribute.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a5e3429241aa
[wpt PR 10076] - Allow feature policy to be used in opaque origins., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/846bc7887b92
[wpt PR 10076] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/a5e3429241aa
https://hg.mozilla.org/mozilla-central/rev/846bc7887b92
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.