Summary: | [Web IDL] Specify default values for optional parameters of TypedArray types | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
Component: | Bindings | Assignee: | Chris Dumez <cdumez> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, darin, sam, youennf | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Chris Dumez
2016-04-25 20:01:28 PDT
Created attachment 277320 [details]
Patch
Comment on attachment 277320 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277320&action=review > Source/WebCore/html/HTMLMediaElement.idl:102 > + [Conditional=ENCRYPTED_MEDIA, RaisesException] void webkitGenerateKeyRequest(DOMString? keySystem, optional Uint8Array initData = null); > + [Conditional=ENCRYPTED_MEDIA, RaisesException] void webkitAddKey(DOMString? keySystem, Uint8Array key, optional Uint8Array initData = null, optional DOMString sessionId = null); This seems a little peculiar. Given that the argument isn’t nullable, I’m not entirely sure that a default of “null” makes logical sense. Anyway, seems a fine practical way to leave the code for now. Comment on attachment 277320 [details] Patch Clearing flags on attachment: 277320 Committed r200088: <http://trac.webkit.org/changeset/200088> All reviewed patches have been landed. Closing bug. |