This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22707 - Invalid IDL - Missing "optional" for "extractable" and "keyUsages"
Summary: Invalid IDL - Missing "optional" for "extractable" and "keyUsages"
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-17 04:40 UTC by Eric Roman
Modified: 2013-07-22 19:14 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2013-07-17 04:40:17 UTC
Example:

  Promise<any> generateKey(AlgorithmIdentifier algorithm,
                           boolean extractable = false,
                           KeyUsage[] keyUsages = []);

I believe the parameters with default values should be marked as "optional" to be valid IDL.

The correct fix though is probably to address BUG 19705 and get rid of these defaults altogether.
Comment 1 Ryan Sleevi 2013-07-22 19:14:35 UTC
Invalid IDL for optional parameters was resolved in https://dvcs.w3.org/hg/webcrypto-api/rev/e0d8e6b0f1f8