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 29372 - Add NotAllowedError exception
Summary: Add NotAllowedError exception
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-13 10:53 UTC by Mounir Lamouri
Modified: 2016-11-02 22:20 UTC (History)
3 users (show)

See Also:


Attachments

Description Mounir Lamouri 2016-01-13 10:53:36 UTC
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
Comment 1 Domenic Denicola 2016-11-02 22:20:27 UTC
This was fixed at some point: https://heycam.github.io/webidl/#notallowederror