Closed Bug 868611 Opened 12 years ago Closed 12 years ago

[webvtt] Implement HTMLTrackElement::UnbindFromTree

Categories

(Core :: Audio/Video, defect)

x86_64
Linux
defect
Not set
normal

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: nobody → rick.eyre
Status: NEW → ASSIGNED
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)
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+
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
Looks green.
Keywords: checkin-needed
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)
Attachment #772061 - Attachment is patch: true
Attachment #772061 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 772061 [details] [diff] [review] v2: Implement HTMLTrackElement::UnbindFromTree r=rillian Still not working.
Attachment #772061 - Flags: review?(giles)
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
Try looks green.
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: