RESOLVED FIXED 117621
[Mac] clicking caption track glyph should dismiss menu
https://bugs.webkit.org/show_bug.cgi?id=117621
Summary [Mac] clicking caption track glyph should dismiss menu
Antoine Quint
Reported 2013-06-13 18:52:36 PDT
Clicking on the caption glyph shows the caption menu if it is not visible. Clicking on it when the caption menu is already visible does nothing, it should dismiss the menu.
Attachments
Patch (6.19 KB, patch)
2013-06-13 19:09 PDT, Antoine Quint
no flags
Patch for landing (6.46 KB, patch)
2013-06-14 07:16 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2013-06-13 18:52:46 PDT
Antoine Quint
Comment 2 2013-06-13 19:09:10 PDT
Joseph Pecoraro
Comment 3 2013-06-13 23:47:19 PDT
Comment on attachment 204662 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204662&action=review > Source/WebCore/html/shadow/MediaControlsApple.cpp:600 > if (event->type() == eventNames().mousewheelEvent && event->hasInterface(eventNames().interfaceForWheelEvent)) { Nit (not your code, but): This if can be an else if since if the top case is true, this case can never be true. Or early return here and no need to else if.
Eric Carlson
Comment 4 2013-06-14 06:44:51 PDT
Comment on attachment 204662 [details] Patch r=me, although it would be nice to address Joe's nit before landing.
Antoine Quint
Comment 5 2013-06-14 07:16:37 PDT
Created attachment 204711 [details] Patch for landing
Antoine Quint
Comment 6 2013-06-14 07:21:17 PDT
(In reply to comment #3) > (From update of attachment 204662 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=204662&action=review > > > Source/WebCore/html/shadow/MediaControlsApple.cpp:600 > > if (event->type() == eventNames().mousewheelEvent && event->hasInterface(eventNames().interfaceForWheelEvent)) { > > Nit (not your code, but): This if can be an else if since if the top case is true, this case can never be true. Or early return here and no need to else if. Actually, very much my code from a previous patch, fixed in patch for landing.
WebKit Commit Bot
Comment 7 2013-06-14 07:43:13 PDT
Comment on attachment 204711 [details] Patch for landing Clearing flags on attachment: 204711 Committed r151592: <http://trac.webkit.org/changeset/151592>
WebKit Commit Bot
Comment 8 2013-06-14 07:43:15 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.