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

Description Eric Carlson 2013-07-15 12:40:02 PDT
Merge blink r153810, https://src.chromium.org/viewvc/blink?view=rev&revision=153810, which extends the changes made in WebKit r152459: http://trac.webkit.org/changeset/152459
Comment 1 Radar WebKit Bug Importer 2013-07-15 12:40:15 PDT
<rdar://problem/14446514>
Comment 2 Eric Carlson 2013-07-15 13:35:49 PDT
Created attachment 206682 [details]
Proposed patch
Comment 3 Ryosuke Niwa 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?
Comment 4 Eric Carlson 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.
Comment 5 Eric Carlson 2013-07-16 08:13:39 PDT
Committed r152721: http://trac.webkit.org/changeset/152721
Comment 6 Eric Carlson 2013-07-24 08:25:24 PDT
*** Bug 119029 has been marked as a duplicate of this bug. ***