Closed Bug 1650806 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 24460 - Change document policy parser to use structured header dictionary

Categories

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

task

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Charlie Hu <chenleihu@google.com> wrote:

Change document policy parser to use structured header dictionary

This CL is based on the spec change on
https://github.com/w3c/webappsec-feature-policy/pull/388/files?short_path=1a56774.

Since the parameter names are removed in this change, feature names
will have to change so that they remain meaningful. This will be
addressed in follow-up CLs.

Change-Id: Ic87dcb5bf26e440dd5041ae31d7b248e7d85d93a

Reviewed-on: https://chromium-review.googlesource.com/2281104
WPT-Export-Revision: c05b5beb174965786a59267bc6dd9cf24ccaa6f9

CI Results

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

Total 5 tests and 4 subtests

Status Summary

Firefox

OK : 5
PASS: 3
FAIL: 13

Chrome

OK : 5
PASS: 3
FAIL: 13

Safari

OK : 5
PASS: 3
FAIL: 13

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/document-policy/required-policy/document-policy.html
Child frame can have a required policy independent of the parent document.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame can have a required policy which is less strict than the parent document's policy.: FAIL (Chrome: FAIL, Safari: FAIL)
/document-policy/required-policy/required-document-policy.html
Any unrelated policy directives should combine with the parent's required policy.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame may have a stricter policy than the parent.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame with no explicit policy should have the same required policy as its parent.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame with a less strict required policy should have the stricter value from the parent's policy applied.: FAIL (Chrome: FAIL, Safari: FAIL)
/document-policy/required-policy/no-document-policy.html
Child frame can have an explicit required policy.: FAIL (Chrome: FAIL, Safari: FAIL)
/document-policy/required-policy/required-document-policy-nested.html
test nested required document policy when set by intermediate nested frame: FAIL (Chrome: FAIL, Safari: FAIL)
test nested required document policy when set by nested frame: FAIL (Chrome: FAIL, Safari: FAIL)
/document-policy/required-policy/separate-document-policies.html
Any unrelated policy directives should combine with the parent's required policy.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame may have a stricter policy than the parent.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame with no explicit policy should have the same required policy as its parent.: FAIL (Chrome: FAIL, Safari: FAIL)
Child frame with a less strict required policy should have the stricter value from the parent's policy applied.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a3d6861bc3d8
[wpt PR 24460] - Change document policy parser to use structured header dictionary, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.