Bug 145901 - [WK2] Add allowsPictureInPictureMediaPlayback
Summary: [WK2] Add allowsPictureInPictureMediaPlayback
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jon Lee
URL:
Keywords: InRadar
Depends on:
Blocks: 145825
  Show dependency treegraph
 
Reported: 2015-06-11 16:43 PDT by Jon Lee
Modified: 2015-06-15 11:07 PDT (History)
4 users (show)

See Also:


Attachments
Patch (5.86 KB, patch)
2015-06-11 16:57 PDT, Jon Lee
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2015-06-11 16:43:02 PDT
Add allowsPictureInPictureMediaPlayback
Comment 1 Radar WebKit Bug Importer 2015-06-11 16:43:24 PDT
<rdar://problem/21349851>
Comment 2 Jon Lee 2015-06-11 16:57:35 PDT
Created attachment 254769 [details]
Patch
Comment 3 Anders Carlsson 2015-06-12 10:41:47 PDT
Comment on attachment 254769 [details]
Patch

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

This needs to go through internal API review (unless it already has).

> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:-327
> -#if PLATFORM(IOS)
> -- (BOOL)_allowsAlternateFullscreen
> -{
> -    return _allowsAlternateFullscreen;
> -}
> -
> -- (void)_setAllowsAlternateFullscreen:(BOOL)allowed
> -{
> -    _allowsAlternateFullscreen = allowed;
> -}
> -#endif
> -

We probably need to keep these for now (and just have them call the SPI methods) so we won't break iOS Safari.
Comment 4 Jon Lee 2015-06-12 15:19:05 PDT
Comment on attachment 254769 [details]
Patch

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

>> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:-327
>> -
> 
> We probably need to keep these for now (and just have them call the SPI methods) so we won't break iOS Safari.

As far as I can tell, no client calls this SPI, including iOS Safari. So I plan on removing it.
Comment 5 Jon Lee 2015-06-12 15:19:30 PDT
(In reply to comment #3)
> Comment on attachment 254769 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=254769&action=review
> 
> This needs to go through internal API review (unless it already has).

It already has. No objections :)
Comment 6 Jon Lee 2015-06-15 11:07:41 PDT
Committed r185556: <http://trac.webkit.org/changeset/185556>