W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2016

[Bug 29372] New: Add NotAllowedError exception

From: <bugzilla@jessica.w3.org>
Date: Wed, 13 Jan 2016 10:53:36 +0000
To: public-script-coord@w3.org
Message-ID: <bug-29372-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29372

            Bug ID: 29372
           Summary: Add NotAllowedError exception
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: mounir@lamouri.fr
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org
  Target Milestone: ---

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't really an exception
matching the error we want to pin point:
- SecurityError is too strong.
- InvalidStateError would mean that the object isn't in a valid state which
isn't true (could be the browser, the page, ...).
- AbortError isn'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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 13 January 2016 10:53:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC