Bug 165183

Summary: [Modern Media Controls] Controls are not visible when returning from picture-in-picture playback
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Antoine Quint 2016-11-29 17:55:02 PST
[Modern Media Controls] Controls are not visible when returning from picture-in-picture playback
Comment 1 Antoine Quint 2016-11-29 17:58:01 PST
Created attachment 295687 [details]
Patch
Comment 2 Dean Jackson 2016-11-29 18:01:45 PST
Comment on attachment 295687 [details]
Patch

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

> Source/WebCore/Modules/modern-media-controls/media/media-controller.js:122
> +        const host = this.host;
> +        const media = this.media;

No need for these variables.
Comment 3 Dean Jackson 2016-11-29 18:01:56 PST
Comment on attachment 295687 [details]
Patch

Where is the test?
Comment 4 Dean Jackson 2016-11-29 18:03:02 PST
Sam will be very angry that there isn't a test.
Comment 5 Antoine Quint 2016-11-29 18:06:18 PST
(In reply to comment #2)
> Comment on attachment 295687 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=295687&action=review
> 
> > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:122
> > +        const host = this.host;
> > +        const media = this.media;
> 
> No need for these variables.

Nice, didn't know fat-arrow functions correctly scoped `this`.
Comment 6 Antoine Quint 2016-11-29 18:06:50 PST
(In reply to comment #4)
> Sam will be very angry that there isn't a test.

I'm open to suggestions as to how to test this. A pixel test?
Comment 7 Antoine Quint 2016-11-30 14:15:06 PST
Created attachment 295766 [details]
Patch for landing
Comment 8 Radar WebKit Bug Importer 2016-11-30 14:15:23 PST
<rdar://problem/29446209>
Comment 9 WebKit Commit Bot 2016-11-30 14:45:58 PST
Comment on attachment 295766 [details]
Patch for landing

Clearing flags on attachment: 295766

Committed r209156: <http://trac.webkit.org/changeset/209156>
Comment 10 WebKit Commit Bot 2016-11-30 14:46:02 PST
All reviewed patches have been landed.  Closing bug.