[wpt-sync] Sync PR 58271 - Use EqualIgnoringAsciiCase() in LookupAlgorithmIdByName()
Categories
(Core :: DOM: Web Crypto, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 58271 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/58271
Details from upstream follow.
Fredrik Söderquist <fs@opera.com> wrote:
Use EqualIgnoringAsciiCase() in LookupAlgorithmIdByName()
The "Normalizing an algorithm" algorithm[1] says that names should be
matched ASCII case-insensitive [2]. Currently the lookup sort of does
that, but the verifying comparison still uses a full Unicode
case-folding comparison. Because of how the lookup is structured the
lookup for some algorithm names could still accept non-ASCII.Replace the final DeprecatedEqualIgnoringCase() comparison with
EqualIgnoringAsciiCase().[1] https://w3c.github.io/webcrypto/#algorithm-normalization-normalize-an-algorithm
[2] https://w3c.github.io/webcrypto/#case-insensitiveBug: 40476285
Change-Id: If1ee6a3c1e75f271c171b44f8de31fe688546b0c
Reviewed-on: https://chromium-review.googlesource.com/7633022
WPT-Export-Revision: d4ca285d7572b2d4ac6cc47d9e73195812329381
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 4 subtests
Status Summary
Firefox
OK : 2
PASS: 8
Chrome
OK : 2
FAIL: 8
Safari
OK : 2
PASS: 8
Description
•