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 27353 - [MSE] Convert exceptions from xxx_ERR to xxxError form and fix broken links
Summary: [MSE] Convert exceptions from xxx_ERR to xxxError form and fix broken links
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: CR
Assignee: Aaron Colwell
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-17 18:07 UTC by Aaron Colwell
Modified: 2014-11-18 18:35 UTC (History)
4 users (show)

See Also:


Attachments

Description Aaron Colwell 2014-11-17 18:07:26 UTC
Change exception links from the legacy form (ie. INVALID_ACCESS_ERR) to the more current form (ie. InvalidAccessError). All the links for these exceptions need to be fixed as well since it appears that their definitions no longer appear in the WHATWG DOM spec (https://dom.spec.whatwg.org) that MSE was referencing.
Comment 1 David Dorwin 2014-11-17 18:26:49 UTC
DOM Exception has been moved to Web IDL (http://heycam.github.io/webidl/#idl-DOMException) as noted in the DOM4 LCWD (http://www.w3.org/TR/dom/#errors). encrypted-media.js has been updated to use the Web IDL locations. However, it's not clear which we should reference (see EME bug 26372).
Comment 2 Aaron Colwell 2014-11-17 19:52:15 UTC
(In reply to David Dorwin from comment #1)
> DOM Exception has been moved to Web IDL
> (http://heycam.github.io/webidl/#idl-DOMException) as noted in the DOM4 LCWD
> (http://www.w3.org/TR/dom/#errors). encrypted-media.js has been updated to
> use the Web IDL locations. However, it's not clear which we should reference
> (see EME bug 26372).

Hmm... I was planning on using http://www.w3.org/TR/dom/ since that appears to be what HTML5 uses, but the nasty warning about the definitions moving to WebIDL (http://www.w3.org/TR/dom/#errors) makes me worried that pointing to the DOM4 spec will just break again at some point in the future. 

It also isn't clear to me what the implications are of pointing to a different version of WebIDL than what the HTML spec points to. HTML5 points to http://www.w3.org/TR/WebIDL/ while HTML5.1 points to 
http://dev.w3.org/2006/webapi/WebIDL/ . The later has the exception definitions and the former doesn't.

The simplest solution I can come up with is pointing to the stub definitions in  the HTML spec(http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#throw). That way at least MSE and HTML will always point to the same place.
Comment 3 Aaron Colwell 2014-11-18 18:34:25 UTC
Change committed...
https://github.com/w3c/media-source/commit/86ea42fdb43ef66f185d98dc3bab7fc4673fbaec

The xxxError links were updated to point to the stub definitions in the HTML spec. After talking with Robin, we agreed that this appears to be the "least bad" option available right now.