RESOLVED FIXED 222078
Experiment with using the theme-color as the scroll area background if provided
https://bugs.webkit.org/show_bug.cgi?id=222078
Summary Experiment with using the theme-color as the scroll area background if provided
Devin Rousso
Reported 2021-02-17 15:09:19 PST
`<meta name="theme-color" content="...">` would be used (if provided) instead of the `pageExtendedBackgroundColor`
Attachments
Patch (8.67 KB, patch)
2021-02-17 15:10 PST, Devin Rousso
thorton: review+
ews-feeder: commit-queue-
Patch (8.85 KB, patch)
2021-02-17 15:49 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.85 KB, patch)
2021-02-17 15:52 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.86 KB, patch)
2021-02-17 15:57 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.81 KB, patch)
2021-02-17 16:11 PST, Devin Rousso
no flags
Patch (8.82 KB, patch)
2021-02-17 16:12 PST, Devin Rousso
no flags
Patch (8.82 KB, patch)
2021-02-17 16:13 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.82 KB, patch)
2021-02-17 16:24 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.79 KB, patch)
2021-02-17 17:38 PST, Devin Rousso
ews-feeder: commit-queue-
Patch (8.83 KB, patch)
2021-02-17 17:59 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2021-02-17 15:09:36 PST
Devin Rousso
Comment 2 2021-02-17 15:10:21 PST
Tim Horton
Comment 3 2021-02-17 15:20:10 PST
Comment on attachment 420730 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420730&action=review > Source/WTF/ChangeLog:3 > + experiment with using the theme-color as the scroll area background if provided Title could use some ... title casing. Or y'know at least a starting capital. > Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:781 > + humanReadableName: "Use theme-color for scroll area background color" > + humanReadableDescription: "Use theme-color for scroll area background color" I hover the first string and see the second? Now I've wasted 3 seconds of my life. I would try shortening up the first one, it's pretty long for a menu item > Source/WebKit/UIProcess/ViewSnapshotStore.cpp:99 > + backgroundColor = webPageProxy.themeColor(); > + if (!backgroundColor.isValid()) Maybe a WebPageProxy getter to share this with WKWebViewIOS?
Devin Rousso
Comment 4 2021-02-17 15:48:02 PST
Comment on attachment 420730 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=420730&action=review >> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:781 >> + humanReadableDescription: "Use theme-color for scroll area background color" > > I hover the first string and see the second? Now I've wasted 3 seconds of my life. > > I would try shortening up the first one, it's pretty long for a menu item talked offline about this and since it's an internal setting (and the existing title is already pretty succinct) i'll leave this as is >> Source/WebKit/UIProcess/ViewSnapshotStore.cpp:99 >> + if (!backgroundColor.isValid()) > > Maybe a WebPageProxy getter to share this with WKWebViewIOS? smart
Devin Rousso
Comment 5 2021-02-17 15:49:14 PST
Devin Rousso
Comment 6 2021-02-17 15:52:21 PST
Devin Rousso
Comment 7 2021-02-17 15:57:27 PST
Devin Rousso
Comment 8 2021-02-17 16:11:17 PST
Devin Rousso
Comment 9 2021-02-17 16:12:30 PST
Devin Rousso
Comment 10 2021-02-17 16:13:11 PST
Devin Rousso
Comment 11 2021-02-17 16:24:59 PST
Devin Rousso
Comment 12 2021-02-17 17:38:25 PST
Devin Rousso
Comment 13 2021-02-17 17:59:30 PST
EWS
Comment 14 2021-02-18 10:38:19 PST
Committed r273083: <https://commits.webkit.org/r273083> All reviewed patches have been landed. Closing bug and clearing flags on attachment 420774 [details].
Note You need to log in before you can comment on or make changes to this bug.