Closed Bug 1623991 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 22366 - Origin policy: reject unparsable headers with an interstitial

Categories

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

task

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Domenic Denicola <domenic@chromium.org> wrote:

Origin policy: reject unparsable headers with an interstitial

This adds a new message for the origin policy interstitial page which
is specific to the case of an error parsing the Origin-Policy header.

We then hook up the recently-introduced origin policy header parser,
using it in the most basic way: if the header is unparsable, the result
is a network error, showing the new interstitial message.

Fixed: 1042036
Change-Id: Ib169e294cfc66f68b87791aeed96cf92d386f469

Reviewed-on: https://chromium-review.googlesource.com/2106474
WPT-Export-Revision: 645deac41937b8dadb0490d9728b42a5ddfa67db

CI Results

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

Total 47 tests

Status Summary

Firefox

OK : 1
PASS: 46
FAIL: 19

Chrome

OK : 1
FAIL: 19

Safari

OK : 1
FAIL: 19

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/origin-policy/bad-server/bad-headers.https.html
preferred="": FAIL (Chrome: FAIL, Safari: FAIL)
preferred=latest: FAIL (Chrome: FAIL, Safari: FAIL)
preferred=("1"): FAIL (Chrome: FAIL, Safari: FAIL)
"1": FAIL (Chrome: FAIL, Safari: FAIL)
allowed=("1" 2.5): FAIL (Chrome: FAIL, Safari: FAIL)
allowed=(""): FAIL (Chrome: FAIL, Safari: FAIL)
preferred=?0, allowed=(latest): FAIL (Chrome: FAIL, Safari: FAIL)
preferred=latest-from-network, allowed=("1" ?0): FAIL (Chrome: FAIL, Safari: FAIL)
allowed=(): FAIL (Chrome: FAIL, Safari: FAIL)
allowed=("1" ?0): FAIL (Chrome: FAIL, Safari: FAIL)
allowed=latest: FAIL (Chrome: FAIL, Safari: FAIL)
allowed="1": FAIL (Chrome: FAIL, Safari: FAIL)
allowed=("1" 42): FAIL (Chrome: FAIL, Safari: FAIL)
allowed=("1" :cHJldGVuZCB0aGlzIGlzIGJpbmFyeSBjb250ZW50Lg==:): FAIL (Chrome: FAIL, Safari: FAIL)
Origin-Policy malformed headers must cause network errors: FAIL (Chrome: FAIL, Safari: FAIL)
allowed, preferred: FAIL (Chrome: FAIL, Safari: FAIL)
preferred=latest-from-network, allowed=("1", ""): FAIL (Chrome: FAIL, Safari: FAIL)
preferred="", allowed=(latest): FAIL (Chrome: FAIL, Safari: FAIL)
latest: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d501f249f757 [wpt PR 22366] - Origin policy: reject unparsable headers with an interstitial, a=testonly https://hg.mozilla.org/integration/autoland/rev/9e1ee97dfbd3 [wpt PR 22366] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.