Closed Bug 1919539 Opened 1 year ago Closed 1 year ago

EC import of a spki key should throw Syntax error when passing non-empty usages

Categories

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

Firefox 130
defect

Tracking

()

RESOLVED DUPLICATE of bug 1919532

People

(Reporter: u738353, Assigned: anna.weine)

Details

Attachments

(1 file)

Attached file ecdh-test-case-2.html

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0

Steps to reproduce:

1- Load the attached script

Actual results:

The console log shows:

Key import succeed !!!

Expected results:

It should throw a SyntaxError exception, according to the last spec draft [1] :

  1. If usages is not empty then throw a SyntaxError.

[1] https://w3c.github.io/webcrypto/#ecdh-operations

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Component: DOM: Core & HTML → DOM: Web Crypto
Assignee: nobody → anna.weine
Severity: -- → S4
Priority: -- → P4
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1919532
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: