Bug 72547 - Text tracks should be treated differently according to their kind
Summary: Text tracks should be treated differently according to their kind
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks: 43668
  Show dependency treegraph
 
Reported: 2011-11-16 14:25 PST by Anna Cavender
Modified: 2012-01-31 22:23 PST (History)
5 users (show)

See Also:


Attachments
Proposed patch (42.28 KB, patch)
2011-12-12 15:19 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Updated patch (51.03 KB, patch)
2011-12-14 13:35 PST, Eric Carlson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Cavender 2011-11-16 14:25:45 PST
4.8.9 The track element
http://www.whatwg.org/specs/web-apps/current-work/#the-track-element
See descriptions of subtitles, captions, descriptions, chapters, and metadata.
Comment 1 Radar WebKit Bug Importer 2011-11-17 12:38:41 PST
<rdar://problem/10464470>
Comment 2 Eric Carlson 2011-12-12 15:19:08 PST
Created attachment 118880 [details]
Proposed patch
Comment 3 WebKit Review Bot 2011-12-12 15:24:42 PST
Attachment 118880 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/medi..." exit_code: 1

Source/WebCore/html/HTMLMediaElement.h:203:  The parameter name "trackElement" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Eric Carlson 2011-12-14 13:35:34 PST
Created attachment 119286 [details]
Updated patch

Update patch as Alexey pointed out that track selection logic should not run until the media element has been closed.
Comment 5 Sam Weinig 2011-12-15 10:19:20 PST
Comment on attachment 119286 [details]
Updated patch

View in context: https://bugs.webkit.org/attachment.cgi?id=119286&action=review

> Source/WebCore/html/HTMLMediaElement.cpp:2296
> +    Settings* settings = document()->settings();
> +

You could pull the settings null check up here and avoid the duplication below.
Comment 6 Eric Carlson 2011-12-15 10:56:26 PST
(In reply to comment #5)
> (From update of attachment 119286 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=119286&action=review
> 
> > Source/WebCore/html/HTMLMediaElement.cpp:2296
> > +    Settings* settings = document()->settings();
> > +
> 
> You could pull the settings null check up here and avoid the duplication below.

Thanks, I will fix that in a follow up patch so I can use the commit-queue on this one.
Comment 7 Eric Carlson 2011-12-15 11:20:01 PST
Or not. Committed by hand so I can get on with things.

http://trac.webkit.org/changeset/102968
Comment 8 Ryosuke Niwa 2011-12-23 19:49:52 PST
Mac rebaseline done in http://trac.webkit.org/changeset/103642.