Bug 109730

Summary: [Mac] Caption menu should have only one item selected
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, dino, feature-media-reviews, gyuyoung.kim, ojan.autocc, peter+ews, rakuco, rniwa, webkit-ews, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch
none
Update patch.
peter+ews: commit-queue-
#import -> #include none

Description Eric Carlson 2013-02-13 12:15:05 PST
The caption menu can end up with more than one item selected when the selected track changes because of a change in user preferences.
Comment 1 Eric Carlson 2013-02-13 12:46:59 PST
Created attachment 188154 [details]
Proposed patch
Comment 2 WebKit Review Bot 2013-02-13 13:13:03 PST
Attachment 188154 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/media/track/track-user-preferences-expected.txt', u'LayoutTests/media/track/track-user-preferences.html', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/GNUmakefile.list.am', u'Source/WebCore/Target.pri', u'Source/WebCore/WebCore.gypi', u'Source/WebCore/WebCore.vcproj/WebCore.vcproj', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/html/HTMLMediaElement.cpp', u'Source/WebCore/html/HTMLMediaElement.h', u'Source/WebCore/page/CaptionUserPreferences.cpp', u'Source/WebCore/page/CaptionUserPreferences.h', u'Source/WebCore/page/CaptionUserPreferencesMac.h', u'Source/WebCore/page/CaptionUserPreferencesMac.mm']" exit_code: 1
Source/WebCore/page/CaptionUserPreferences.h:64:  The parameter name "language" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebCore/page/CaptionUserPreferences.h:67:  The parameter name "track" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dean Jackson 2013-02-13 13:21:41 PST
Comment on attachment 188154 [details]
Proposed patch

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

> Source/WebCore/ChangeLog:14
> +        * WebCore.vcproj/WebCore.vcproj: Ditto.

Don't we also edit the VS2010 file now as well? WebCore.vcxproj/ This will make Roger happier :)

> Source/WebCore/page/CaptionUserPreferences.h:70
> +    virtual String displayNameForTrack(TextTrack* track) const;
>      virtual bool testingMode() const { return m_testingMode; }
> +
>      virtual void setTestingMode(bool override) { m_testingMode = override; }

Nit: extra line got added here.
Comment 4 Eric Carlson 2013-02-13 13:29:51 PST
Created attachment 188168 [details]
Update patch.
Comment 5 Peter Beverloo (cr-android ews) 2013-02-13 13:48:30 PST
Comment on attachment 188168 [details]
Update patch.

Attachment 188168 [details] did not pass cr-android-ews (chromium-android):
Output: http://queues.webkit.org/results/16559076
Comment 6 Early Warning System Bot 2013-02-13 13:50:41 PST
Comment on attachment 188168 [details]
Update patch.

Attachment 188168 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/16525025
Comment 7 Early Warning System Bot 2013-02-13 13:57:49 PST
Comment on attachment 188168 [details]
Update patch.

Attachment 188168 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/16560018
Comment 8 Eric Carlson 2013-02-13 13:59:40 PST
Created attachment 188175 [details]
#import -> #include
Comment 9 Dean Jackson 2013-02-13 14:42:27 PST
Comment on attachment 188175 [details]
#import -> #include

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

> Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:2003
> -    <ClCompile Include="..\page\ContentSecurityPolicy.cpp" />
> +    <ClCompile Include="..\page\Console.cpp" />

What's this?
Comment 10 Eric Carlson 2013-02-13 15:04:23 PST
(In reply to comment #9)
> (From update of attachment 188175 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=188175&action=review
> 
> > Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:2003
> > -    <ClCompile Include="..\page\ContentSecurityPolicy.cpp" />
> > +    <ClCompile Include="..\page\Console.cpp" />
> 
> What's this?

Oops, thanks for spotting that!
Comment 11 Eric Carlson 2013-02-13 15:04:41 PST
Committed in http://trac.webkit.org/r142809.