<?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>29372</bug_id>
          
          <creation_ts>2016-01-13 10:53:36 +0000</creation_ts>
          <short_desc>Add NotAllowedError exception</short_desc>
          <delta_ts>2016-11-02 22:20:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</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="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>d</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124578</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2016-01-13 10:53:36 +0000</bug_when>
    <thetext>We would like to add an exception when a media playback is rejected by the UA/system to the HTML specification [1] and there isn&apos;t really an exception matching the error we want to pin point:
- SecurityError is too strong.
- InvalidStateError would mean that the object isn&apos;t in a valid state which isn&apos;t true (could be the browser, the page, ...).
- AbortError isn&apos;t so bad but already used for user aborted.
- OperationError is quite hand-wavy.

I believe that a NotAllowedError could be a good error for UA/system blocked requests when done for reasons other than security (user experience mostly).

WDYT? :)

[1] https://github.com/whatwg/html/issues/505</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128025</commentid>
    <comment_count>1</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2016-11-02 22:20:27 +0000</bug_when>
    <thetext>This was fixed at some point: https://heycam.github.io/webidl/#notallowederror</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>