WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232899
Refactor some image overlay logic to work with built-in media controls
https://bugs.webkit.org/show_bug.cgi?id=232899
Summary
Refactor some image overlay logic to work with built-in media controls
Wenson Hsieh
Reported
2021-11-09 12:13:27 PST
rdar://83173597
Attachments
For EWS
(21.06 KB, patch)
2021-11-09 15:58 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Remove unnecessary stylesheet change
(20.53 KB, patch)
2021-11-09 16:20 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Patch
(21.31 KB, patch)
2021-11-09 17:32 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Adjust for review comments
(24.04 KB, patch)
2021-11-10 12:09 PST
,
Wenson Hsieh
thorton
: review+
Details
Formatted Diff
Diff
Patch for landing
(24.03 KB, patch)
2021-11-10 13:24 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2021-11-09 15:58:47 PST
Comment hidden (obsolete)
Created
attachment 443741
[details]
For EWS
Wenson Hsieh
Comment 2
2021-11-09 16:20:37 PST
Comment hidden (obsolete)
Created
attachment 443750
[details]
Remove unnecessary stylesheet change
Wenson Hsieh
Comment 3
2021-11-09 17:32:12 PST
Created
attachment 443761
[details]
Patch
Antoine Quint
Comment 4
2021-11-10 08:46:42 PST
Comment on
attachment 443761
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=443761&action=review
r=me for the media controls parts.
> Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp:350 > + static MainThreadNeverDestroyed<const AtomString> className("media-controls-container", AtomString::ConstructFromLiteral);
Maybe we could expose this through the IDL for the media controls to use?
> Source/WebCore/Modules/modern-media-controls/controls/media-controls.css:94 > + -webkit-user-select: none;
Should we add the "We always want to prevent the iOS magnifier UI to be shown." comment removed from `:host`?
> Source/WebCore/Modules/modern-media-controls/controls/media-controls.css:129 > -} > \ No newline at end of file > +}
Nice.
Wenson Hsieh
Comment 5
2021-11-10 09:09:58 PST
Comment on
attachment 443761
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=443761&action=review
Thanks for the review!
>> Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp:350 >> + static MainThreadNeverDestroyed<const AtomString> className("media-controls-container", AtomString::ConstructFromLiteral); > > Maybe we could expose this through the IDL for the media controls to use?
Good call — looking into that now!
>> Source/WebCore/Modules/modern-media-controls/controls/media-controls.css:94 >> + -webkit-user-select: none; > > Should we add the "We always want to prevent the iOS magnifier UI to be shown." comment removed from `:host`?
Makes sense! Will add a comment to that effect here.
>> Source/WebCore/Modules/modern-media-controls/controls/media-controls.css:129 >> +} > > Nice.
Xcode is...oddly insistent on this change :(
Devin Rousso
Comment 6
2021-11-10 11:25:44 PST
Comment on
attachment 443761
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=443761&action=review
> Source/WebCore/Modules/modern-media-controls/controls/controls-bar.css:31 > + z-index: 1;
IIRC the only other thing that uses `z-index` is `video::-webkit-media-text-track-container`. I don't think there's ever any overlap (at least there shouldn't be), but it might be worth testing this on some `<video>` that have subtitles just to be sure :)
Wenson Hsieh
Comment 7
2021-11-10 11:35:33 PST
(In reply to Devin Rousso from
comment #6
)
> Comment on
attachment 443761
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=443761&action=review
> > > Source/WebCore/Modules/modern-media-controls/controls/controls-bar.css:31 > > + z-index: 1; > > IIRC the only other thing that uses `z-index` is > `video::-webkit-media-text-track-container`. I don't think there's ever any > overlap (at least there shouldn't be), but it might be worth testing this on > some `<video>` that have subtitles just to be sure :)
That's a good point! From my testing with captions in HTML video (alongside built-in controls), the text track container dodges the bottom controls bar anyways, so I *think* we should be okay here.
Wenson Hsieh
Comment 8
2021-11-10 12:09:26 PST
Created
attachment 443843
[details]
Adjust for review comments
Wenson Hsieh
Comment 9
2021-11-10 13:24:32 PST
Created
attachment 443857
[details]
Patch for landing
EWS
Comment 10
2021-11-10 16:03:15 PST
Committed
r285609
(
244113@main
): <
https://commits.webkit.org/244113@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 443857
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug