Closed
Bug 931453
Opened 12 years ago
Closed 12 years ago
Crash removing a <track> from a <video>
Categories
(Core :: Audio/Video, defect)
Tracking
()
VERIFIED
FIXED
mozilla28
| Tracking | Status | |
|---|---|---|
| firefox26 | --- | unaffected |
| firefox27 | + | verified |
| firefox28 | --- | verified |
People
(Reporter: jruderman, Assigned: drexler)
References
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(3 files)
With
user_pref("media.webvtt.enabled", true);
The testcase hits a crash in mozilla::dom::TextTrack::SetReadyState.
I think this a regression from bug 882665.
| Reporter | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → andrew.quartey
| Assignee | ||
Comment 2•12 years ago
|
||
Ensure that the media element is non-null at time of use and likewise a similar potential problem fix the TextTrack in WebVTTListener::OnStopRequest.
Attachment #823070 -
Flags: review?(khuey)
Comment on attachment 823070 [details] [diff] [review]
fix
Review of attachment 823070 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/WebVTTListener.cpp
@@ +107,5 @@
> nsresult aStatus)
> {
> if (mElement->ReadyState() != HTMLTrackElement::ERROR) {
> + TextTrack* track = mElement->Track();
> + track->SetReadyState(HTMLTrackElement::LOADED);
What's the point of this change?
Attachment #823070 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #3)
> Comment on attachment 823070 [details] [diff] [review]
> fix
>
> Review of attachment 823070 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: content/media/WebVTTListener.cpp
> @@ +107,5 @@
> > nsresult aStatus)
> > {
> > if (mElement->ReadyState() != HTMLTrackElement::ERROR) {
> > + TextTrack* track = mElement->Track();
> > + track->SetReadyState(HTMLTrackElement::LOADED);
>
> What's the point of this change?
Just a precaution since HTMLTrackElement::Track() guarantees that that |mTrack| is non-null.
| Assignee | ||
Comment 5•12 years ago
|
||
Updated•12 years ago
|
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 7•11 years ago
|
||
Reproduced on nightly 2013-10-27.
Verified fixed FF 28.0a1 (2013-11-14) Win 7 x64
Status: RESOLVED → VERIFIED
Comment 8•11 years ago
|
||
This landed prior to the merge, In addition, I verified latest Aurora doesn't crash with STR's from comment 0
status-firefox28:
--- → verified
You need to log in
before you can comment on or make changes to this bug.
Description
•