Closed Bug 2076355 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63034 - [WebCrypto] Fix supports() for exportKey and wrapKey

Categories

(Core :: DOM: Web Crypto, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

Component: web-platform-tests → DOM: Web Crypto
Product: Testing → Core
Attached file Notable wpt changes —

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)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: