WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
163674
Add WKWebView fullscreen delegate SPI
https://bugs.webkit.org/show_bug.cgi?id=163674
Summary
Add WKWebView fullscreen delegate SPI
Jer Noble
Reported
2016-10-19 11:15:07 PDT
Add WKWebView fullscreen delegate SPI
Attachments
Patch
(39.78 KB, patch)
2016-10-19 11:18 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(39.86 KB, patch)
2016-10-19 21:02 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(39.87 KB, patch)
2016-10-20 10:26 PDT
,
Jer Noble
andersca
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2016-10-19 11:17:47 PDT
rdar://problem/28722363
Jer Noble
Comment 2
2016-10-19 11:18:16 PDT
Created
attachment 292085
[details]
Patch
Jer Noble
Comment 3
2016-10-19 21:02:03 PDT
Created
attachment 292148
[details]
Patch
Jer Noble
Comment 4
2016-10-20 10:26:30 PDT
Created
attachment 292222
[details]
Patch
Anders Carlsson
Comment 5
2016-10-24 13:12:14 PDT
Comment on
attachment 292222
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=292222&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:3942 > + return [static_cast<WebKit::FullscreenClient&>(_page->fullscreenClient()).delegate().leakRef() autorelease];
Can just use .autorelease() here instead of .leakRef() autorelease].
> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:249 > +@property (nonatomic, setter=_setFullscreenDelegate:) id<_WKFullscreenDelegate> _fullscreenDelegate WK_API_AVAILABLE(macos(10.13)); > +@property (nonatomic, readonly) BOOL _isInFullscreen WK_API_AVAILABLE(macos(10.13));
Should be WK_MAC_TBA.
Jer Noble
Comment 6
2016-10-25 08:55:25 PDT
Committed
r207820
: <
http://trac.webkit.org/changeset/207820
>
Csaba Osztrogonác
Comment 7
2016-10-25 09:26:37 PDT
(In reply to
comment #6
)
> Committed
r207820
: <
http://trac.webkit.org/changeset/207820
>
It broke the debug build, see build.webkit.org for details.
Csaba Osztrogonác
Comment 8
2016-10-25 09:29:21 PDT
/Volumes/Data/slave/elcapitan-debug/build/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:3942:102: error: expected ';' after return statement return static_cast<WebKit::FullscreenClient&>(_page->fullscreenClient()).delegate().autorelease()); ^ ; Not only the debug, but all builds .... Please build locally before landing random syntax errors.
Csaba Osztrogonác
Comment 9
2016-10-25 09:30:46 PDT
fix already landed in
https://trac.webkit.org/changeset/207822
, thanks Jonathan.
Simon Fraser (smfr)
Comment 10
2016-10-27 19:26:01 PDT
Comment on
attachment 292222
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=292222&action=review
>> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:249 >> +@property (nonatomic, setter=_setFullscreenDelegate:) id<_WKFullscreenDelegate> _fullscreenDelegate WK_API_AVAILABLE(macos(10.13)); >> +@property (nonatomic, readonly) BOOL _isInFullscreen WK_API_AVAILABLE(macos(10.13)); > > Should be WK_MAC_TBA.
This broke building against older SDKs that don't know about "macos".
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