<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26118</bug_id>
          
          <creation_ts>2014-06-17 15:17:51 +0000</creation_ts>
          <short_desc>Event dictionaries need default values</short_desc>
          <delta_ts>2014-07-02 22:50:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Encrypted Media Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>cam</cc>
    
    <cc>ddorwin</cc>
    
    <cc>mike</cc>
    
    <cc>pcotton</cc>
    
    <cc>public-html-media</cc>
    
    <cc>watsonm</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107939</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-17 15:17:51 +0000</bug_when>
    <thetext>Otherwise it is unclear what their values are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108283</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Cotton">pcotton</who>
    <bug_when>2014-06-24 15:11:21 +0000</bug_when>
    <thetext>(In reply to Anne from comment #0)
&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108284</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-24 15:14:05 +0000</bug_when>
    <thetext>It does, yes. MediaKeyNeededEventInit and MediaKeyMessageEventInit in particular.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108296</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-06-24 20:35:13 +0000</bug_when>
    <thetext>What is the notation in WebIDL for an empty ArrayBuffer ? 

ArrayBuffer message = ArrayBuffer();

or

ArrayBuffer message = new ArrayBuffer();

or

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108300</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-06-24 21:38:55 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108311</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-25 08:11:04 +0000</bug_when>
    <thetext>Would it be better to have an empty ArrayBuffer?

We can certainly fix IDL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108317</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-06-25 13:30:36 +0000</bug_when>
    <thetext>Syntax wise, we could probably reuse &quot;= []&quot; to represent empty arraythings of all sorts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108504</commentid>
    <comment_count>7</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-06-30 18:38:56 +0000</bug_when>
    <thetext>(In reply to Mark Watson from comment #4)
&gt; https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d

Was the change to MediaKeyMessageEvent&apos;s destinationURL attribute intentional? This is the only one of the four attributes in non-Init structures to get a default value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108505</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-06-30 18:42:31 +0000</bug_when>
    <thetext>(In reply to David Dorwin from comment #7)
&gt; (In reply to Mark Watson from comment #4)
&gt; &gt; https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d
&gt; 
&gt; Was the change to MediaKeyMessageEvent&apos;s destinationURL attribute
&gt; intentional? This is the only one of the four attributes in non-Init
&gt; structures to get a default value.

Oops - you are right - I will fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108666</commentid>
    <comment_count>9</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-07-02 22:50:46 +0000</bug_when>
    <thetext>(In reply to Mark Watson from comment #8)
&gt; (In reply to David Dorwin from comment #7)
&gt; &gt; (In reply to Mark Watson from comment #4)
&gt; &gt; &gt; https://dvcs.w3.org/hg/html-media/rev/a0f72cc27b6d
&gt; &gt; 
&gt; &gt; Was the change to MediaKeyMessageEvent&apos;s destinationURL attribute
&gt; &gt; intentional? This is the only one of the four attributes in non-Init
&gt; &gt; structures to get a default value.
&gt; 
&gt; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>