WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
206772
AirPlay placard not visible when AirPlay is entered in fullscreen mode.
https://bugs.webkit.org/show_bug.cgi?id=206772
Summary
AirPlay placard not visible when AirPlay is entered in fullscreen mode.
Jer Noble
Reported
2020-01-24 15:06:46 PST
AirPlay placard not visible when AirPlay is entered in fullscreen mode.
Attachments
Patch
(9.29 KB, patch)
2020-01-24 15:18 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2020-01-24 15:08:53 PST
<
rdar://problem/57098851
>
Jer Noble
Comment 2
2020-01-24 15:18:50 PST
Created
attachment 388729
[details]
Patch
WebKit Commit Bot
Comment 3
2020-01-24 16:23:38 PST
Comment on
attachment 388729
[details]
Patch Clearing flags on attachment: 388729 Committed
r255103
: <
https://trac.webkit.org/changeset/255103
>
WebKit Commit Bot
Comment 4
2020-01-24 16:23:40 PST
All reviewed patches have been landed. Closing bug.
Aakash Jain
Comment 5
2020-01-25 09:41:50 PST
> Committed
r255103
: <
https://trac.webkit.org/changeset/255103
>
The newly added test media/modern-media-controls/placard-support/placard-support-airplay-fullscreen-no-controls.html is consistently timing out on iOS. This issue was also indicated by EWS red iOS bubble. Tracked in
Bug 206800
.
Antoine Quint
Comment 6
2020-01-25 13:29:30 PST
Comment on
attachment 388729
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=388729&action=review
Some belated review comments and a general comment: why wasn't a LayoutTests/ChangeLog generated?
> Source/WebCore/Modules/modern-media-controls/media/placard-support.js:50 > + this._isDisabled = false;
You should set a default value for `_isDisabled` in the constructor, right now `!_isDisabled` is true even though `enable()` has never been called after construction. Also, it would probably be best to expose it at the `MediaControllerSupport` level since this is where enable()/disable() are exposed. Then we could have an `enabled` property.
> Source/WebCore/Modules/modern-media-controls/media/placard-support.js:56 > + // Never disable the plackard, just remeber whether the placard should be visible or not
Typos: "plackard" and "remeber".
> LayoutTests/media/modern-media-controls/placard-support/placard-support-error-recover.html:4 > +<video src="404.mp4" style="width: 320px; height: 240px;" controls></video>
Why was this changed?
> LayoutTests/media/modern-media-controls/placard-support/placard-support-error.html:4 > +<video src="404.mp4" style="width: 320px; height: 240px;" controls></video>
Why was this changed?
Jer Noble
Comment 7
2020-01-25 15:54:39 PST
(In reply to Antoine Quint from
comment #6
)
> Comment on
attachment 388729
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=388729&action=review
> > Some belated review comments and a general comment: why wasn't a > LayoutTests/ChangeLog generated? > > > Source/WebCore/Modules/modern-media-controls/media/placard-support.js:50 > > + this._isDisabled = false; > > You should set a default value for `_isDisabled` in the constructor, right > now `!_isDisabled` is true even though `enable()` has never been called > after construction.
It looked like enable() was always called immediately after construction, which is correct, since the PiP and AirPlay placards should always be enabled. That said, yes we should probably initialize that property in the constructor.
> Also, it would probably be best to expose it at the > `MediaControllerSupport` level since this is where enable()/disable() are > exposed. Then we could have an `enabled` property.
Do any other controllers need specialized enabled/disabled behavior? No need to add abstractions where they aren't necessary.
> > Source/WebCore/Modules/modern-media-controls/media/placard-support.js:56 > > + // Never disable the plackard, just remeber whether the placard should be visible or not > > Typos: "plackard" and "remeber".
Whoops.
> > LayoutTests/media/modern-media-controls/placard-support/placard-support-error-recover.html:4 > > +<video src="404.mp4" style="width: 320px; height: 240px;" controls></video> > > Why was this changed?
The prior test was incorrect: error placards should only be displayed when controls are enabled, irregardless of fullscreen state. In fact, we should have a negative test that the error placards don't get added when the 'controls' attribute is missing.
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