RESOLVED WONTFIX 117177
change MediaControlToggleClosedCaptionsButtonElement type to checkbox
https://bugs.webkit.org/show_bug.cgi?id=117177
Summary change MediaControlToggleClosedCaptionsButtonElement type to checkbox
Danilo de Paula
Reported 2013-06-03 18:51:35 PDT
Created attachment 203646 [details] patch it's a draft patch to change the type of the MediaControlToggleClosedCaptionsButtonElement from "button" to "checkbox" For what I could see, all ports except Mac treats the MediaControlToggleClosedCaptionsButtonElement as a toggle button to show/hide captions/subtitles from html videos. They even use setChecked(true/false) as a "state" for this button. However the checked state is useless on a mediaControl[PORT].css point of view because the css selector ":checked" is not valid for <input type=button> My propose here is to change the type of that button to checkbox and change the defaultEventHandler to get the changeEvent. That way, ports will be able to use that information by css and current implementations won't be hurt.
Attachments
patch (3.23 KB, patch)
2013-06-03 18:51 PDT, Danilo de Paula
no flags
Patch (4.98 KB, patch)
2013-06-14 06:52 PDT, Danilo de Paula
no flags
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (577.54 KB, application/zip)
2013-06-14 09:22 PDT, Build Bot
no flags
Patch (5.91 KB, patch)
2013-06-14 10:13 PDT, Danilo de Paula
no flags
Patch (5.07 KB, patch)
2013-06-14 10:52 PDT, Danilo de Paula
no flags
Patch (5.85 KB, patch)
2013-06-14 11:55 PDT, Danilo de Paula
no flags
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion (582.40 KB, application/zip)
2013-06-14 17:27 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (758.68 KB, application/zip)
2013-06-14 21:13 PDT, Build Bot
no flags
Patch (5.89 KB, patch)
2013-06-17 05:54 PDT, Danilo de Paula
darin: review-
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (510.99 KB, application/zip)
2013-06-17 10:11 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 (747.07 KB, application/zip)
2013-06-17 10:25 PDT, Build Bot
no flags
Jer Noble
Comment 1 2013-06-04 08:27:01 PDT
There are many conditions where a request to enter full screen may be denied by browser chrome(). How does this patch handle the case where, after clicking the enter full screen button, the button should remain in the "non-full screen" state?
Jer Noble
Comment 2 2013-06-04 08:28:12 PDT
Also, there seems to be no logic in this patch to uncheck the full screen button when the user exits full screen mode via another means (like the "ESC" key).
Eric Carlson
Comment 3 2013-06-04 08:55:30 PDT
(In reply to comment #1) > There are many conditions where a request to enter full screen may be denied by browser chrome(). How does this patch handle the case where, after clicking the enter full screen button, the button should remain in the "non-full screen" state? (In reply to comment #2) > Also, there seems to be no logic in this patch to uncheck the full screen button when the user exits full screen mode via another means (like the "ESC" key). This patch proposes a change to the closed caption button, not the fullscreen button.
Jer Noble
Comment 4 2013-06-04 08:59:38 PDT
(In reply to comment #3) > (In reply to comment #1) > > There are many conditions where a request to enter full screen may be denied by browser chrome(). How does this patch handle the case where, after clicking the enter full screen button, the button should remain in the "non-full screen" state? > > (In reply to comment #2) > > Also, there seems to be no logic in this patch to uncheck the full screen button when the user exits full screen mode via another means (like the "ESC" key). > > This patch proposes a change to the closed caption button, not the fullscreen button. Ack! I completely misread the button class.
Danilo de Paula
Comment 5 2013-06-04 10:29:40 PDT
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #1) > > > There are many conditions where a request to enter full screen may be denied by browser chrome(). How does this patch handle the case where, after clicking the enter full screen button, the button should remain in the "non-full screen" state? > > > > (In reply to comment #2) > > > Also, there seems to be no logic in this patch to uncheck the full screen button when the user exits full screen mode via another means (like the "ESC" key). > > > > This patch proposes a change to the closed caption button, not the fullscreen button. > > Ack! I completely misread the button class. Do you guys agree with my approach? If so, I'll write a proper patch with that change.
Danilo de Paula
Comment 6 2013-06-14 06:52:50 PDT
Eric Carlson
Comment 7 2013-06-14 07:35:59 PDT
Comment on attachment 204709 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204709&action=review > LayoutTests/media/video-controls-captions.html:78 > + // the :checked state of the button should be accesible by css > + Nit: this comment is unnecessary, it just states the obvious
Build Bot
Comment 8 2013-06-14 09:22:18 PDT
Comment on attachment 204709 [details] Patch Attachment 204709 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/918024 New failing tests: media/video-controls-captions-trackmenu-hide-on-click.html fast/repaint/table-cell-collapsed-border-scroll.html media/video-controls-captions-trackmenu-hide-on-click-outside.html
Build Bot
Comment 9 2013-06-14 09:22:19 PDT
Created attachment 204716 [details] Archive of layout-test-results from webkit-ews-08 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.3
Danilo de Paula
Comment 10 2013-06-14 10:13:04 PDT
Danilo de Paula
Comment 11 2013-06-14 10:18:59 PDT
(In reply to comment #9) > Created an attachment (id=204716) [details] > Archive of layout-test-results from webkit-ews-08 for mac-mountainlion > > The attached test failures were seen while running run-webkit-tests on the mac-ews. > Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.3 Hit a failure on mac, looks like the tackList menu didn't work on Mac. I tried to find the problem and fix it, but I don't have a mac machine to see the final result.
Darin Adler
Comment 12 2013-06-14 10:27:47 PDT
Comment on attachment 204719 [details] Patch Concept seems good, but patch doesn’t apply. Can you rebase it?
Danilo de Paula
Comment 13 2013-06-14 10:52:07 PDT
Danilo de Paula
Comment 14 2013-06-14 11:55:39 PDT
Build Bot
Comment 15 2013-06-14 17:27:25 PDT
Comment on attachment 204725 [details] Patch Attachment 204725 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/921073 New failing tests: fast/repaint/table-cell-collapsed-border-scroll.html media/video-controls-captions-trackmenu-hide-on-click-outside.html
Build Bot
Comment 16 2013-06-14 17:27:27 PDT
Created attachment 204751 [details] Archive of layout-test-results from webkit-ews-03 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-03 Port: mac-mountainlion Platform: Mac OS X 10.8.3
Build Bot
Comment 17 2013-06-14 21:13:40 PDT
Comment on attachment 204725 [details] Patch Attachment 204725 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/864122 New failing tests: media/video-controls-captions-trackmenu-hide-on-click-outside.html
Build Bot
Comment 18 2013-06-14 21:13:42 PDT
Created attachment 204756 [details] Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.3
Danilo de Paula
Comment 19 2013-06-17 05:54:23 PDT
Build Bot
Comment 20 2013-06-17 10:11:22 PDT
Comment on attachment 204814 [details] Patch Attachment 204814 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/921327 New failing tests: media/video-controls-captions-trackmenu-hide-on-click.html fast/repaint/table-cell-collapsed-border-scroll.html media/video-controls-captions-trackmenu-hide-on-click-outside.html
Build Bot
Comment 21 2013-06-17 10:11:24 PDT
Created attachment 204833 [details] Archive of layout-test-results from webkit-ews-01 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-01 Port: mac-mountainlion Platform: Mac OS X 10.8.3
Build Bot
Comment 22 2013-06-17 10:25:37 PDT
Comment on attachment 204814 [details] Patch Attachment 204814 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/906408 New failing tests: media/video-controls-captions-trackmenu-hide-on-click.html media/video-controls-captions-trackmenu-hide-on-click-outside.html
Build Bot
Comment 23 2013-06-17 10:25:39 PDT
Created attachment 204836 [details] Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.3
Darin Adler
Comment 24 2014-07-12 17:24:31 PDT
Comment on attachment 204814 [details] Patch setting review- because of the EWS failure; seems like a good idea but still failing the tests on the Mac
Danilo de Paula
Comment 25 2014-07-15 04:26:45 PDT
As I don't own a mac machine I've end up implementing the feature in GTK by using the same approach as sarafi does. I'm not working on it anymore. I'm closing the bug as wontfix.
Note You need to log in before you can comment on or make changes to this bug.