Bug 236729

Summary: [iOS][Modern Media Controls] Add an alternative overflow icon
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, eric.carlson, ews-watchlist, glenn, hi, jer.noble, joepeck, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
hi: review+, ews-feeder: commit-queue-
Patch for landing
ews-feeder: commit-queue-
Fix test failures
none
Fix an issue on watchOS
none
[fast-cq] Revise the patch based on Devin's suggestions none

Peng Liu
Reported 2022-02-16 12:40:20 PST
[Modern Media Controls] Add an alternative overflow icon
Attachments
Patch (14.71 KB, patch)
2022-02-16 12:46 PST, Peng Liu
no flags
Patch (11.85 KB, patch)
2022-02-16 12:56 PST, Peng Liu
hi: review+
ews-feeder: commit-queue-
Patch for landing (10.78 KB, patch)
2022-02-16 19:07 PST, Peng Liu
ews-feeder: commit-queue-
Fix test failures (16.09 KB, patch)
2022-02-17 11:10 PST, Peng Liu
no flags
Fix an issue on watchOS (16.89 KB, patch)
2022-02-17 11:16 PST, Peng Liu
no flags
[fast-cq] Revise the patch based on Devin's suggestions (7.29 KB, patch)
2022-02-17 17:05 PST, Peng Liu
no flags
Peng Liu
Comment 1 2022-02-16 12:46:23 PST
Peng Liu
Comment 2 2022-02-16 12:56:11 PST
Devin Rousso
Comment 3 2022-02-16 16:42:13 PST
Comment on attachment 452233 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452233&action=review r=me > Source/WebCore/Modules/modern-media-controls/controls/icon-service.js:38 > + Ellipsis : { name: "Ellipsis", type: "svg", label: UIString("More\u2026") }, please alphabetize this by moving it right above `EllipsisCircle` > Source/WebCore/Modules/modern-media-controls/controls/layout-traits.js:94 > + overflowButtonHasCircle() { Style: `{` goes on a separate line :) > Source/WebCore/Modules/modern-media-controls/controls/media-controls.js:46 > + if (layoutTraits.overflowButtonHasCircle()) I think you can actually get to the `layoutTraits` inside `OverflowButton` via something like `layoutDelegate?.layoutTraits`. So I'd leave this as-is and then change the `constructor` of `OverflowButton` to be like so: ``` super({ cssClassName: "overflow", iconName: layoutDelegate?.layoutTraits.overflowButtonHasCircle() ? Icons.EllipsisCircle : Icons.Ellipsis, layoutDelegate, }); ```
Peng Liu
Comment 4 2022-02-16 17:06:29 PST
Comment on attachment 452233 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452233&action=review >> Source/WebCore/Modules/modern-media-controls/controls/icon-service.js:38 >> + Ellipsis : { name: "Ellipsis", type: "svg", label: UIString("More\u2026") }, > > please alphabetize this by moving it right above `EllipsisCircle` Sure! >> Source/WebCore/Modules/modern-media-controls/controls/layout-traits.js:94 >> + overflowButtonHasCircle() { > > Style: `{` goes on a separate line :) Yes. >> Source/WebCore/Modules/modern-media-controls/controls/media-controls.js:46 >> + if (layoutTraits.overflowButtonHasCircle()) > > I think you can actually get to the `layoutTraits` inside `OverflowButton` via something like `layoutDelegate?.layoutTraits`. So I'd leave this as-is and then change the `constructor` of `OverflowButton` to be like so: > ``` > super({ > cssClassName: "overflow", > iconName: layoutDelegate?.layoutTraits.overflowButtonHasCircle() ? Icons.EllipsisCircle : Icons.Ellipsis, > layoutDelegate, > }); > ``` I like this idea! Thanks!
Peng Liu
Comment 5 2022-02-16 19:07:34 PST
Created attachment 452288 [details] Patch for landing
Aakash Jain
Comment 6 2022-02-17 05:33:11 PST
I cancelled https://ews-build.webkit.org/#/builders/68/builds/8368 to speed up ios-wk2 queue (as it is backlogged). That build indicated 30+ layout-test failures on Patch 452233. Please check.
Peng Liu
Comment 7 2022-02-17 11:10:42 PST Comment hidden (obsolete)
Peng Liu
Comment 8 2022-02-17 11:16:45 PST Comment hidden (obsolete)
Peng Liu
Comment 9 2022-02-17 17:05:50 PST
Created attachment 452448 [details] [fast-cq] Revise the patch based on Devin's suggestions
EWS
Comment 10 2022-02-18 09:34:12 PST
Committed r290133 (247477@main): <https://commits.webkit.org/247477@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 452448 [details].
Radar WebKit Bug Importer
Comment 11 2022-02-18 09:35:18 PST
Note You need to log in before you can comment on or make changes to this bug.