<?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>25899</bug_id>
          
          <creation_ts>2014-05-28 00:08:54 +0000</creation_ts>
          <short_desc>Do not specify messages for DOMExceptions</short_desc>
          <delta_ts>2014-08-25 19:10:13 +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>All</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="Chris Pearce">cpearce</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ddorwin</cc>
    
    <cc>mike</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>106867</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Pearce">cpearce</who>
    <bug_when>2014-05-28 00:08:54 +0000</bug_when>
    <thetext>The DOM spec defines what the description are for each exception name:
http://www.w3.org/TR/dom/#error-names

But the EME spec is also specifying optional messages/descriptions for exception names that are defined in the main DOM spec linked above:
https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#exceptions

As far as we can tell there&apos;s no wiggle room in the DOM spec to allow the exception messages to vary. So either we should add new exceptions for EME with the desired codes, or we should drop the new messages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106889</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-28 07:30:07 +0000</bug_when>
    <thetext>In particular, .message is up to the UA and is expected to be localized and such. You cannot state what the content should be as a requirement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106926</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-05-28 17:49:44 +0000</bug_when>
    <thetext>I believe the summary should be changed to &quot;Do not specify messages for exceptions.&quot; Chris, do you agree?

The most important action is to remove the &quot;and that has the message&quot; text from the algorithms.

Is there any value documenting how the exceptions are used in the table? The Possible Messages column could be changed to specified causes along with slight changes to the message text. For what it&apos;s worth, the table was based modeled after http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-Exceptions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106948</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Pearce">cpearce</who>
    <bug_when>2014-05-28 21:08:02 +0000</bug_when>
    <thetext>(In reply to David Dorwin from comment #2)
&gt; I believe the summary should be changed to &quot;Do not specify messages for
&gt; exceptions.&quot; Chris, do you agree?

Yes, I agree. That would be fine.
 

&gt; Is there any value documenting how the exceptions are used in the table? The
&gt; Possible Messages column could be changed to specified causes along with
&gt; slight changes to the message text.

I think changing the table to be a list reasons why the exceptions fire is reasonable.

&gt; For what it&apos;s worth, the table was based
&gt; modeled after http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-Exceptions.

Then by the same rationale, that table needs to change too. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106974</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-29 09:10:52 +0000</bug_when>
    <thetext>Filed bug 25912 on crypto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107204</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-06-03 15:07:18 +0000</bug_when>
    <thetext>The table in WebCrypto was in turn inspired by that in IndexedDB: http://www.w3.org/TR/IndexedDB/#exceptions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107206</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-06-03 15:10:38 +0000</bug_when>
    <thetext>Indexed DB makes no normative requirements regarding .message (although it is somewhat misleading and the text could be improved).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108776</commentid>
    <comment_count>7</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-07-07 23:53:09 +0000</bug_when>
    <thetext>Implemented in https://dvcs.w3.org/hg/html-media/rev/dfb8b1fdb2ee.

I removed the &quot;and that has the message...&quot; text and clarified that the table includes possible causes from the algorithms.

For reference, the original messages specified within the algorithms can be seen at https://dvcs.w3.org/hg/html-media/raw-file/ff10d356cc07/encrypted-media/encrypted-media.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110551</commentid>
    <comment_count>8</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-08-25 19:10:13 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/html-media/rev/4e31f7807448 removes &quot; and that has an appropriate message&quot; from steps that do not specify the exact error name. These were missed in the previous changeset.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>