Bug 103412

Summary: Calling .removeCue() for a cue that was never added should raise a NOT_FOUND_ERR
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, feature-media-reviews, ojan, webkit-bug-importer, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/removeCue.html
Attachments:
Description Flags
Patch none

Description Antoine Quint 2012-11-27 08:07:27 PST
We are failing the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/removeCue.html due to failing to raising an INVALID_STATE_ERR exception instead of the expected NOT_FOUND_ERR exception when calling .removeCue() for a cue that was not added on a given track. The spec is quite clear on that, we're not doing the right thing (see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrack-removecue).
Comment 1 Radar WebKit Bug Importer 2012-11-27 08:07:53 PST
<rdar://problem/12757953>
Comment 2 Antoine Quint 2012-11-28 08:19:07 PST
Created attachment 176488 [details]
Patch
Comment 3 WebKit Review Bot 2012-11-28 10:56:40 PST
Comment on attachment 176488 [details]
Patch

Clearing flags on attachment: 176488

Committed r136026: <http://trac.webkit.org/changeset/136026>
Comment 4 WebKit Review Bot 2012-11-28 10:56:43 PST
All reviewed patches have been landed.  Closing bug.