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 26118 - Event dictionaries need default values
Summary: Event dictionaries need default values
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Encrypted Media Extensions (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-17 15:17 UTC by Anne
Modified: 2014-07-02 22:50 UTC (History)
7 users (show)

See Also:


Attachments

Description Anne 2014-06-17 15:17:51 UTC
Otherwise it is unclear what their values are.
Comment 1 Paul Cotton 2014-06-24 15:11:21 UTC
(In reply to Anne from comment #0)
> Otherwise it is unclear what their values are.

We believe this bug refers to the text in Section 3.1:
https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#event-definitions

/paulc
Comment 2 Anne 2014-06-24 15:14:05 UTC
It does, yes. MediaKeyNeededEventInit and MediaKeyMessageEventInit in particular.
Comment 3 Mark Watson 2014-06-24 20:35:13 UTC
What is the notation in WebIDL for an empty ArrayBuffer ? 

ArrayBuffer message = ArrayBuffer();

or

ArrayBuffer message = new ArrayBuffer();

or

?
Comment 5 Anne 2014-06-25 08:11:04 UTC
Would it be better to have an empty ArrayBuffer?

We can certainly fix IDL.
Comment 6 Boris Zbarsky 2014-06-25 13:30:36 UTC
Syntax wise, we could probably reuse "= []" to represent empty arraythings of all sorts.
Comment 7 David Dorwin 2014-06-30 18:38:56 UTC
(In reply to Mark Watson from comment #4)
> https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d

Was the change to MediaKeyMessageEvent's destinationURL attribute intentional? This is the only one of the four attributes in non-Init structures to get a default value.
Comment 8 Mark Watson 2014-06-30 18:42:31 UTC
(In reply to David Dorwin from comment #7)
> (In reply to Mark Watson from comment #4)
> > https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d
> 
> Was the change to MediaKeyMessageEvent's destinationURL attribute
> intentional? This is the only one of the four attributes in non-Init
> structures to get a default value.

Oops - you are right - I will fix this.
Comment 9 David Dorwin 2014-07-02 22:50:46 UTC
(In reply to Mark Watson from comment #8)
> (In reply to David Dorwin from comment #7)
> > (In reply to Mark Watson from comment #4)
> > > https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d
> > 
> > Was the change to MediaKeyMessageEvent's destinationURL attribute
> > intentional? This is the only one of the four attributes in non-Init
> > structures to get a default value.
> 
> Oops - you are right - I will fix this.

I reverted the change to this line in https://dvcs.w3.org/hg/html-media/rev/a38c961e1ab0.