Closed Bug 1480243 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 12264 - Cookie Store API: Add test showing BOMs are not stripped

Categories

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

enhancement

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joshua Bell <jsbell@chromium.org> wrote:
>  Cookie Store API: Add test showing BOMs are not stripped
>  
>  The cookie RFC[1] does not define an encoding for cookie names/values;
>  they are treated as a sequence of octets.
>  
>  The Cookie Store spec[2] mandates treating the octets as UTF-8 encoded.
>  When decoding octet sequences into strings, the decode should be done
>  without treating a leading U+FEFF as a BOM. Add a test to verify this.
>  
>  [1] https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-02
>  [2] https://wicg.github.io/cookie-store/
>  
>  Bug: 729800
>  Change-Id: I23b7eb82b35862b8797a203ae6ea86cbd69001d2
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1159336
>  WPT-Export-Revision: f37938b3d58113707e4b7e9ac1052bc69d976b60
Ran 1 tests and 2 subtests
OK     : 1
FAIL   : 2

New tests that have failures or other problems:
/cookie-store/encoding.https.window.html
    BOM not stripped from name: FAIL
    BOM not stripped from value: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/42ad263a16ee
[wpt PR 12264] - Cookie Store API: Add test showing BOMs are not stripped, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/b8a6d767f417
[wpt PR 12264] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/42ad263a16ee
https://hg.mozilla.org/mozilla-central/rev/b8a6d767f417
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.