Closed
Bug 871747
Opened 12 years ago
Closed 9 years ago
[webvtt] should HTMLTrackElement load resources outside a document?
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: rillian, Assigned: bechen)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 1 obsolete file)
HTMLTrackElement::BindToTree() only tries to load a resource if aDocument is non-null. This is cargo-culted from HTMLMediaElement::BindToTree() where the same conditional was added in bug 503989.
Per irc discussion, bz's reading of the spec is that the load should fire whether the element has a parent document or not, and so the conditional on aDocument should be removed.
Before we do that, I want to understand if the spec is correct here.
Reporter | ||
Comment 1•12 years ago
|
||
Roc, do you remember why you added HTMLMediaElement;:BindToTree() check in bug 503989?
Flags: needinfo?(roc)
I don't remember. If we don't leak with that check taken out, I think you should take it out.
Flags: needinfo?(roc)
Reporter | ||
Comment 3•12 years ago
|
||
Test patch removing the check from HTMLMediaElement.
Pushed to try as https://tbpl.mozilla.org/?tree=Try&rev=9804b644c799 to check for leaks.
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 749309 [details] [diff] [review]
remove aDocument check from HTMLMediaElement::BindToTree
My patch is silly, and crashes on content/canvas/test/crossorigin/test_video_crossorigin.html dereferencing a null aDocument.
https://tbpl.mozilla.org/?tree=Try&rev=ccf39027a215
Attachment #749309 -
Flags: review-
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bechen
Assignee | ||
Comment 5•9 years ago
|
||
https://dxr.mozilla.org/mozilla-central/source/dom/html/HTMLTrackElement.cpp#266
The TrackElement call MediaElement::RunInStableState is not correct. Because the MediaElement::AbortExistingLoads will cancel the runnable of stable state by adding |mCurrentLoadID|.
So the TrackElement::LoadResource should not use MediaElement::RunInStableState regardless inside/outside document.
ex:
v is MediaElement,t is TrackElement.
//
v.appendChild(t); // trigger HTMLTrackElement::BindToTree, dispatch a task to stable state.
v.src = xxx; // trigger the AbortExistingLoads, the t won't load any resource because the task be cancelled.
//
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/60794/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/60794/
Attachment #8765395 -
Flags: review?(giles)
Attachment #8765396 -
Flags: review?(giles)
Assignee | ||
Comment 7•9 years ago
|
||
* * *
[mq]: bug1281406length.html
Review commit: https://reviewboard.mozilla.org/r/60796/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/60796/
Reporter | ||
Updated•9 years ago
|
Attachment #749309 -
Attachment is obsolete: true
Reporter | ||
Updated•9 years ago
|
Attachment #8765395 -
Flags: review?(giles) → review+
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8765395 [details]
Bug 871747 - Load the TrackElement outside the document.
https://reviewboard.mozilla.org/r/60794/#review57724
Thanks for fixing this.
Reporter | ||
Comment 9•9 years ago
|
||
Comment on attachment 8765396 [details]
Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1
https://reviewboard.mozilla.org/r/60796/#review57726
Attachment #8765396 -
Flags: review?(giles) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8765395 [details]
Bug 871747 - Load the TrackElement outside the document.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60794/diff/1-2/
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8765396 [details]
Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60796/diff/1-2/
Updated•9 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8765395 [details]
Bug 871747 - Load the TrackElement outside the document.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60794/diff/2-3/
Attachment #8765396 -
Attachment description: Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html. → Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html.
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8765396 [details]
Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60796/diff/2-3/
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8765396 [details]
Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60796/diff/3-4/
Attachment #8765396 -
Attachment description: Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html. → Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1…
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8765396 [details]
Bug 871747 - Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60796/diff/4-5/
Attachment #8765396 -
Attachment description: , windows-1 → , windows-1251.html, windows-1252.html.
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 16•9 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad45d87d0b34
Load the TrackElement outside the document. r=rillian
https://hg.mozilla.org/integration/mozilla-inbound/rev/78e63a1be0b9
Enable html/semantics/embedded-content/media-elements/interfaces/TextTrackList/getter.html, TextTrack/cues.html, TextTrackList/length.html, track/track-element/cloneNode.html, query-encoding/utf-8.html, utf-16be.html, utf-16le.html, windows-1251.html, windows-1252.html. r=rillian
Keywords: checkin-needed
Comment 17•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ad45d87d0b34
https://hg.mozilla.org/mozilla-central/rev/78e63a1be0b9
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Updated•8 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Updated•8 years ago
|
Depends on: CVE-2017-7750
You need to log in
before you can comment on or make changes to this bug.
Description
•