New issue
Advanced search Search tips

Issue 759041 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

HTMLTrackElement: 'error' event is fired if the 'src' attr is removed

Reported by kirill.o...@gmail.com, Aug 25 2017

Issue description

Chrome Version       :  Chromium 62.0.3197.0 on Linux
Other browsers tested:
     WebKit: OK on the latest build from SVN
    Firefox: OK on 55.0.2

What steps will reproduce the problem?
(1) load some TextTrack
(2) textTrack.onerror = ...
(3) textTrack.removeAttribute('src')

What is the expected result?
TextTrackCueList should be cleared and no events should be fired

What happens instead?
'error' event is fired

Looks like a regression after
https://chromium.googlesource.com/chromium/src/+/fdcfc1a3f75e73341d8cf76fa51d935212a42146
that was not covered by the tests at all and thats why was not catched.
 
The fix is simple, I'll prepare the patch and tests.
Components: Blink>Media

Comment 3 by f...@opera.com, Aug 28 2017

Status: WontFix (was: Unconfirmed)
As mentioned in the review, this is expected behavior:

 "If fetching fails for any reason (...), or if URL is the empty string, then ... and then fire an event named error at the track element."

https://html.spec.whatwg.org/multipage/media.html#sourcing-out-of-band-text-tracks

Comment 4 by f...@opera.com, Aug 28 2017

Components: -Blink>Media Blink>Media>Track

Sign in to add a comment