Bug 210606

Summary: Stop including style rules related to media controls in the UA style sheet when Modern Media Controls are enabled
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, eric.carlson, esprehn+autocc, ews-watchlist, glenn, graouts, gyuyoung.kim, jer.noble, koivisto, macpherson, menard, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch dbates: review+

Description Antoine Quint 2020-04-16 09:23:05 PDT
Stop including style rules related to media controls in the UA style sheet when Modern Media Controls are enabled
Comment 1 Antoine Quint 2020-04-16 09:25:24 PDT
Created attachment 396654 [details]
Patch
Comment 2 Antoine Quint 2020-04-17 08:04:49 PDT
Created attachment 396764 [details]
Patch
Comment 3 Daniel Bates 2020-04-17 08:18:27 PDT
Comment on attachment 396764 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=396764&action=review

This patch looks good. A better patch would add tests for the UA stylesheet changes and the runtime enabled branch.

> Source/WebCore/Modules/mediacontrols/mediaControlsApple.css:25
>  body:-webkit-full-page-media {

The optimal solution would remove this because it duplicates the style in html.css now. If it cannot be removed, why?
Comment 4 Antoine Quint 2020-04-17 08:38:20 PDT
(In reply to Daniel Bates from comment #3)
> Comment on attachment 396764 [details]
> Patch
> 
> > Source/WebCore/Modules/mediacontrols/mediaControlsApple.css:25
> >  body:-webkit-full-page-media {
> 
> The optimal solution would remove this because it duplicates the style in
> html.css now. If it cannot be removed, why?

It can, just an oversight!
Comment 5 Antoine Quint 2020-04-17 10:24:30 PDT
Committed r260261: <https://trac.webkit.org/changeset/260261>
Comment 6 Radar WebKit Bug Importer 2020-04-17 10:25:22 PDT
<rdar://problem/61940561>
Comment 7 Ryan Haddad 2020-04-17 11:56:51 PDT
Follow up build fix in https://trac.webkit.org/changeset/260269/webkit
Comment 8 Antoine Quint 2020-04-17 11:59:51 PDT
(In reply to Ryan Haddad from comment #7)
> Follow up build fix in https://trac.webkit.org/changeset/260269/webkit

Actually, this was for the wrong bug :) This was a bug fix for bug 210653.