Closed Bug 1710606 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28956 - Implement `Sec-CH-Prefers-Color-Scheme`

Categories

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

task

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Fran\xc3\xa7ois Beaufort <beaufort.francois@gmail.com>' wrote:

Implement Sec-CH-Prefers-Color-Scheme

The Sec-CH-Prefers-Color-Scheme client hint is modeled after the
prefers-color-scheme user preference media feature as defined in Media
Queries 5.

Spec: https://tomayac.github.io/user-preference-media-features-headers/#sec-ch-prefers-color-scheme
Bug: 1207897
Change-Id: Ie52bc6b52507b1f5b681ec61ddf565776316306e

Reviewed-on: https://chromium-review.googlesource.com/2883198
WPT-Export-Revision: 0146d3d58b2ee5f4ba1d5e4353f6d4779a6d8811

CI Results

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

Total 12 tests and 1 subtests

Status Summary

Firefox

OK : 12
PASS: 9
FAIL: 9

Chrome

OK : 12
PASS: 13
FAIL: 5

Safari

OK : 12
PASS: 8
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/client-hints/accept-ch-answers.sub.https.html
Accept-CH header test: FAIL (Chrome: PASS, Safari: FAIL)
/client-hints/accept-ch-feature-policy.sub.https.html
Accept-CH header test: FAIL (Chrome: PASS, Safari: FAIL)
Cross-Origin Accept-CH header test: FAIL (Chrome: PASS, Safari: FAIL)
/client-hints/accept-ch-no-feature-policy-navigation.https.html
Client hints not loaded on cross-origin iframe request with no feature policy.: FAIL (Chrome: PASS, Safari: FAIL)
Client hints loaded on same-origin iframe request with no feature policy.: FAIL (Chrome: PASS, Safari: FAIL)
Client hints loaded on cross-origin iframe request with allow list.: FAIL (Chrome: PASS, Safari: FAIL)
Client hints loaded on same-origin iframe request with allow list.: FAIL (Chrome: PASS, Safari: FAIL)
/client-hints/accept-ch-no-feature-policy.sub.https.html
Accept-CH header test: FAIL (Chrome: PASS, Safari: FAIL)
/client-hints/http-equiv-accept-ch-merge.https.html
Accept-CH header test: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2681579a72fb
[wpt PR 28956] - Implement `Sec-CH-Prefers-Color-Scheme`, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.