Closed
Bug 868611
Opened 12 years ago
Closed 12 years ago
[webvtt] Implement HTMLTrackElement::UnbindFromTree
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: rillian, Assigned: reyre)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
We hook bind-to-tree so we can trigger a load if we're parented to a media element, but we don't do anything when we're unbound. Follow-up from https://bugzilla.mozilla.org/show_bug.cgi?id=833385#c48
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rick.eyre
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
This is all I can see that we need to do as of now. We might, perhaps, need to change HTMLTrackElement::ReadyState?
I don't think we need to do anything with the WebVTTLoadListener as if we are being Unbound we're probably not going to receive any more data. Even if we do receive anymore data we can still access HTMLTrackElement's data from the LoadListener so we won't crash.
Thoughts Ralph?
Attachment #766711 -
Flags: review?(giles)
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 766711 [details] [diff] [review]
v1: Implement HTMLTrackElement::UnbindFromTree
Review of attachment 766711 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
I agree we don't need to mess with the TextTrack state. When we hook up HTMLMediaElement events blocking on TextTrack loads we'll need to make sure RemoveTextTrack() takes care of clearing any blocks, rejigger the active tracks, etc. But I think this is fine for now.
Attachment #766711 -
Flags: review?(giles) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Thanks for the review Ralph.
Updating commit message to reflect Ralph's r+.
Carrying forward r=rillian
Try push: https://tbpl.mozilla.org/?tree=Try&rev=9727a70fd17b
Attachment #766711 -
Attachment is obsolete: true
Comment 5•12 years ago
|
||
Keywords: checkin-needed
Comment 6•12 years ago
|
||
Backed out for crashes. Also, your commit message has a typo in it.
https://hg.mozilla.org/integration/mozilla-inbound/rev/5acfb878895f
https://tbpl.mozilla.org/php/getParsedLog.php?id=24998457&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=24997130&tree=Mozilla-Inbound
Assignee | ||
Comment 7•12 years ago
|
||
Sorry about that Ryan.
- Fixed typo.
- Added in null check for mTrack before calling RemoveElement so we don't crash.
Attachment #771518 -
Attachment is obsolete: true
Attachment #772061 -
Flags: review?(giles)
Assignee | ||
Comment 8•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #772061 -
Attachment is patch: true
Attachment #772061 -
Attachment mime type: text/x-patch → text/plain
Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 772061 [details] [diff] [review]
v2: Implement HTMLTrackElement::UnbindFromTree r=rillian
Still not working.
Attachment #772061 -
Flags: review?(giles)
Assignee | ||
Comment 10•12 years ago
|
||
I've just added some guards to check before we deref mTextTracks and mMediaParent which might not always be there.
Carrying forward r=rillian
Attachment #772061 -
Attachment is obsolete: true
Assignee | ||
Comment 11•12 years ago
|
||
Comment 13•12 years ago
|
||
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•