RESOLVED FIXED 164414
[Modern Media Controls] UI Library: macOS fullscreen controls
https://bugs.webkit.org/show_bug.cgi?id=164414
Summary [Modern Media Controls] UI Library: macOS fullscreen controls
Antoine Quint
Reported 2016-11-04 07:30:30 PDT
This covers the JS class to instantiate the media controls for fullscreen media playback on macOS.
Attachments
Patch (118.77 KB, patch)
2016-11-04 07:38 PDT, Antoine Quint
no flags
Archive of layout-test-results from ews113 for mac-yosemite (1.91 MB, application/zip)
2016-11-04 08:38 PDT, Build Bot
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (9.19 MB, application/zip)
2016-11-04 08:51 PDT, Build Bot
no flags
Patch (120.39 KB, patch)
2016-11-04 09:14 PDT, Antoine Quint
no flags
Archive of layout-test-results from ews115 for mac-yosemite (1.75 MB, application/zip)
2016-11-04 10:23 PDT, Build Bot
no flags
Archive of layout-test-results from ews124 for ios-simulator-wk2 (9.53 MB, application/zip)
2016-11-04 10:28 PDT, Build Bot
no flags
Patch (120.55 KB, patch)
2016-11-07 02:17 PST, Antoine Quint
no flags
Archive of layout-test-results from ews113 for mac-yosemite (1.97 MB, application/zip)
2016-11-07 15:10 PST, Build Bot
no flags
Patch (121.31 KB, patch)
2016-11-08 03:26 PST, Antoine Quint
commit-queue: commit-queue-
Antoine Quint
Comment 1 2016-11-04 07:30:46 PDT
Antoine Quint
Comment 2 2016-11-04 07:38:29 PDT
Build Bot
Comment 3 2016-11-04 08:38:14 PDT
Comment on attachment 293886 [details] Patch Attachment 293886 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2461809 New failing tests: media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html
Build Bot
Comment 4 2016-11-04 08:38:16 PDT
Created attachment 293888 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 5 2016-11-04 08:51:50 PDT
Comment on attachment 293886 [details] Patch Attachment 293886 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2461838 New failing tests: media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html
Build Bot
Comment 6 2016-11-04 08:51:53 PDT
Created attachment 293889 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Antoine Quint
Comment 7 2016-11-04 09:14:42 PDT
Build Bot
Comment 8 2016-11-04 10:23:42 PDT
Comment on attachment 293890 [details] Patch Attachment 293890 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2462233 New failing tests: media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html
Build Bot
Comment 9 2016-11-04 10:23:45 PDT
Created attachment 293896 [details] Archive of layout-test-results from ews115 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 10 2016-11-04 10:28:05 PDT
Comment on attachment 293890 [details] Patch Attachment 293890 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2462234 New failing tests: media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html
Build Bot
Comment 11 2016-11-04 10:28:13 PDT
Created attachment 293897 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Antoine Quint
Comment 12 2016-11-07 02:17:00 PST
Dean Jackson
Comment 13 2016-11-07 11:42:03 PST
Comment on attachment 294048 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=294048&action=review > Source/WebCore/Modules/modern-media-controls/controls/icon-service.js:46 > -const IconsWithFullScreenVariants = [Icons.Airplay, Icons.Tracks, Icons.Pause, Icons.Play]; > +const IconsWithFullscreenVariants = [Icons.Airplay, Icons.Tracks, Icons.Pause, Icons.Play]; Are we consistent with this? > Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.css:40 > + height: 50px; > + > + transform: translateX(-50%); > + > + overflow: hidden; > + > + height: 75px; > + > + border-radius: 8px; Why so many blank lines? > Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.css:60 > +/* Make center container centered */ Is this comment necessary? Many of them in this file are a bit basic. > Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js:53 > + padding: 27, > + margin: 27 Do we need constants for these magic numbers? > Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js:90 > + const numberOfEnabledButtons = this._rightContainer.buttons.filter( button => button.enabled ).length; Why the ( space )? > Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js:103 > + this.timeControl.width = 457; And this completely magic number. I think we need them in a single place with some explanation.
Build Bot
Comment 14 2016-11-07 15:10:11 PST
Comment on attachment 294048 [details] Patch Attachment 294048 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2469511 New failing tests: media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-buttons-containers-styles.html
Build Bot
Comment 15 2016-11-07 15:10:14 PST
Created attachment 294090 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Antoine Quint
Comment 16 2016-11-08 03:26:05 PST
WebKit Commit Bot
Comment 17 2016-11-09 10:31:09 PST
Comment on attachment 294152 [details] Patch Rejecting attachment 294152 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 294152, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: LayoutTests :040000 040000 e63c76f6906fc629c923a52c2e7614b1a0c2e920 52c81ff1568926095327c90adcba5094847f8074 M Source Current branch master is up to date. ERROR: Not all changes have been committed into SVN, however the committed ones (if any) seem to be successfully integrated into the working tree. Please see the above messages for details. Failed to run "['git', 'svn', 'dcommit', '--rmdir']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Updating OpenSource Current branch master is up to date. Full output: http://webkit-queues.webkit.org/results/2484219
Antoine Quint
Comment 18 2016-11-09 11:04:37 PST
Note You need to log in before you can comment on or make changes to this bug.