[wpt-sync] Sync PR 63034 - [WebCrypto] Fix supports() for exportKey and wrapKey
Categories
(Core :: DOM: Web Crypto, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
1.58 MB,
text/plain
|
Details |
Sync web-platform-tests PR 63034 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63034
Details from upstream follow.
Minseop Choi <minsubb13@gmail.com> wrote:
[WebCrypto] Fix supports() for exportKey and wrapKey
supports() is specified to accept "exportKey" as an operation, and to
return false for "wrapKey" when additionalAlgorithm does not support the
export key operation. Blink returned false for every "exportKey" query,
and returned true for "wrapKey" with an HKDF or PBKDF2
additionalAlgorithm even though wrapKey() rejects such keys with a
NotSupportedError:https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-supports
Map "exportKey" to kWebCryptoOperationExportKey and add the wrapKey
check, using the export key operation info added in
https://crrev.com/c/8312049. Add WPTs for both cases.Fixed: 41264071
Change-Id: If0e60ecfc2c52ac7b2fcbbfdfbc2855c00524853
Reviewed-on: https://chromium-review.googlesource.com/8471207
WPT-Export-Revision: b87196d843f188677c37798a0504dbb65bc0b926
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98407
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 326 tests and 299 subtests
Status Summary
Firefox
OK : 2[GitHub] 325[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 326[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug]
PASS: 54707[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 54710[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug]
FAIL: 400[GitHub] 15958[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug]
Chrome
OK : 2
PASS: 372
FAIL: 28
Safari
OK : 2
FAIL: 400
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e768b2529656
https://hg.mozilla.org/mozilla-central/rev/b4b907cc3ca2
Description
•