Closed
Bug 1242594
Opened 9 years ago
Closed 9 years ago
textTracks lost when video removed from DOM
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: psayre, Assigned: bechen)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Steps to reproduce:
I loaded a HTML doc with a <track> inside a <video>. I removed the video element from the DOM, then added it back.
Test case: http://jsfiddle.net/4efxr61w/5/
Actual results:
The video.textTracks.length === 0 after the video is removed from the DOM.
Expected results:
The video.textTracks should contain the child <track> element.
Reporter | ||
Comment 1•9 years ago
|
||
After a little digging, this may also be related these:
Bug 1206304 - Created text tracks don't appear in the textTracks list
https://bugzilla.mozilla.org/show_bug.cgi?id=1206304
Bug 1097279 - HTML5 video tracks without src aren't counted. Lose count after wrap.
https://bugzilla.mozilla.org/show_bug.cgi?id=1097279
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → bechen
Comment 3•9 years ago
|
||
I'm experiencing the same thing. For video.js, I tried to enable native text track support but I'm unable to do so because video.js wraps the video element in a div so all tracks that are available when video.js initializes are lost due to this bug.
Here's my test case: http://plnkr.co/edit/xmG766?p=preview
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48943/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/48943/
Attachment #8745234 -
Flags: review?(giles)
Attachment #8745235 -
Flags: review?(giles)
Assignee | ||
Comment 5•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48945/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/48945/
Comment 6•9 years ago
|
||
Comment on attachment 8745234 [details]
MozReview Request: Bug 1242594 - Don't remove the textTrack if it's parent is not null. r=rillian
https://reviewboard.mozilla.org/r/48943/#review46347
Attachment #8745234 -
Flags: review?(giles) → review+
Updated•9 years ago
|
Attachment #8745235 -
Flags: review?(giles) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8745235 [details]
MozReview Request: Bug 1242594 - Add testcase. r=rillian
https://reviewboard.mozilla.org/r/48945/#review46349
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/bbbac91d2aff
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e66690c2448
Keywords: checkin-needed
Comment 9•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bbbac91d2aff
https://hg.mozilla.org/mozilla-central/rev/3e66690c2448
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•