Closed Bug 1601406 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 20618 - Advertise DocumentPolicy & Network Err when receive incompatible policy

Categories

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

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Charlie Hu <chenleihu@google.com> wrote:

Advertise DocumentPolicy & Network Err when receive incompatible policy

  • Advertise required document policy on out-going requests.
  • Parse and initialize document policy in security context.
  • Replace with page with empty document when incoming document policy
    is incompatible with required policy.

Bug: 993790
Change-Id: I823675408a0d52e8048172ae23d409a5f14e8eb5
Reviewed-on: https://chromium-review.googlesource.com/1947187
WPT-Export-Revision: c4cb9f0b7ffef75a1bbba17b074993683f009d31

CI Results

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

Total 40 tests

Status Summary

Firefox

OK : 1
PASS: 1[[u'Gecko-linux64-asan-opt', u'Gecko-windows10-64-debug', u'Gecko-windows10-64-opt', u'Gecko-windows10-64-qr-debug', u'Gecko-windows10-64-qr-opt', u'Gecko-windows7-32-debug', u'Gecko-windows7-32-opt', 'GitHub']] 39[[u'Gecko-linux1804-64-asan-opt']] 40[[u'Gecko-android-em-7.0-x86_64-debug-geckoview', u'Gecko-android-em-7.0-x86_64-opt-geckoview']]
FAIL: 2

Chrome

OK : 1
PASS: 1
FAIL: 2

Safari

OK : 1
PASS: 1
FAIL: 2

Links

Gecko CI (Treeherder)
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)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/554eedc3bbc1
[wpt PR 20618] - Advertise DocumentPolicy & Network Err when receive incompatible policy, a=testonly
https://hg.mozilla.org/integration/autoland/rev/c3e4e3bc094f
[wpt PR 20618] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.