Bug 118682

Summary: HTMLMediaElement should not add cues for disabled text tracks
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, jer.noble, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch none

Eric Carlson
Reported 2013-07-15 12:40:02 PDT
Attachments
Proposed patch (7.50 KB, patch)
2013-07-15 13:35 PDT, Eric Carlson
no flags
Radar WebKit Bug Importer
Comment 1 2013-07-15 12:40:15 PDT
Eric Carlson
Comment 2 2013-07-15 13:35:49 PDT
Created attachment 206682 [details] Proposed patch
Ryosuke Niwa
Comment 3 2013-07-15 15:25:26 PDT
Comment on attachment 206682 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=206682&action=review > Source/WebCore/html/HTMLMediaElement.cpp:1490 > -void HTMLMediaElement::textTrackAddCues(TextTrack*, const TextTrackCueList* cues) > +void HTMLMediaElement::textTrackAddCues(TextTrack* track, const TextTrackCueList* cues) Would it make sense for this function to take PassRefPtr<TextTrack> instead to be safe?
Eric Carlson
Comment 4 2013-07-16 08:07:38 PDT
(In reply to comment #3) > (From update of attachment 206682 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=206682&action=review > > > Source/WebCore/html/HTMLMediaElement.cpp:1490 > > -void HTMLMediaElement::textTrackAddCues(TextTrack*, const TextTrackCueList* cues) > > +void HTMLMediaElement::textTrackAddCues(TextTrack* track, const TextTrackCueList* cues) > > Would it make sense for this function to take PassRefPtr<TextTrack> instead to be safe? Maybe. These functions are part of a larger interface used by a number of other classes so that will be a much bigger change, so I will do it in a separate patch if it does make sense.
Eric Carlson
Comment 5 2013-07-16 08:13:39 PDT
Eric Carlson
Comment 6 2013-07-24 08:25:24 PDT
*** Bug 119029 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.