RESOLVED FIXED 178089
Call setFullscreenClient on iOS.
https://bugs.webkit.org/show_bug.cgi?id=178089
Summary Call setFullscreenClient on iOS.
Jeremy Jones
Reported 2017-10-09 11:12:22 PDT
Call setFullscreenClient on all platforms, not just Mac.
Attachments
Patch (2.55 KB, patch)
2017-10-09 11:16 PDT, Jeremy Jones
no flags
Patch (5.80 KB, patch)
2017-10-12 19:53 PDT, Jeremy Jones
no flags
Patch (5.79 KB, patch)
2017-10-16 18:35 PDT, Jeremy Jones
no flags
Patch (6.23 KB, patch)
2017-10-17 11:43 PDT, Jeremy Jones
no flags
Patch (1.50 KB, patch)
2017-10-25 13:09 PDT, Jeremy Jones
no flags
Jeremy Jones
Comment 1 2017-10-09 11:16:22 PDT
Tim Horton
Comment 2 2017-10-09 16:37:01 PDT
Comment on attachment 323191 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=323191&action=review > Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:-1308 > - m_page->setFullscreenClient(std::make_unique<WebKit::FullscreenClient>(view)); How does removing this not break WKView??
Jeremy Jones
Comment 3 2017-10-12 19:53:29 PDT
Jeremy Jones
Comment 4 2017-10-16 18:35:33 PDT
Jeremy Jones
Comment 5 2017-10-17 11:43:49 PDT
Jeremy Jones
Comment 6 2017-10-25 13:09:34 PDT
Jeremy Jones
Comment 7 2017-10-25 13:10:02 PDT
(In reply to Tim Horton from comment #2) > Comment on attachment 323191 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=323191&action=review > > > Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm:-1308 > > - m_page->setFullscreenClient(std::make_unique<WebKit::FullscreenClient>(view)); > > How does removing this not break WKView?? I put that back in and just added it for iOS in WKContentView.
Simon Fraser (smfr)
Comment 8 2017-10-26 12:55:34 PDT
Comment on attachment 324874 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324874&action=review > Source/WebKit/UIProcess/ios/WKContentView.mm:205 > + _page->setFullscreenClient(std::make_unique<WebKit::FullscreenClient>(_webView)); This API seems a bit weird. Normally you don't pass ownership of a client to the thing that it's a client of. You hold ownership, and the client relationship is weak.
Jeremy Jones
Comment 9 2017-10-26 16:26:40 PDT
(In reply to Simon Fraser (smfr) from comment #8) > Comment on attachment 324874 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=324874&action=review > > > Source/WebKit/UIProcess/ios/WKContentView.mm:205 > > + _page->setFullscreenClient(std::make_unique<WebKit::FullscreenClient>(_webView)); > > This API seems a bit weird. Normally you don't pass ownership of a client to > the thing that it's a client of. You hold ownership, and the client > relationship is weak. A regular expression search for '_page->set[A-Za-z]*Client\(' shows that we always do this. I've filed https://bugs.webkit.org/show_bug.cgi?id=178893 to investigate this pattern.
WebKit Commit Bot
Comment 10 2017-10-26 16:30:03 PDT
Comment on attachment 324874 [details] Patch Clearing flags on attachment: 324874 Committed r224063: <https://trac.webkit.org/changeset/224063>
WebKit Commit Bot
Comment 11 2017-10-26 16:30:05 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2017-11-15 13:08:22 PST
Note You need to log in before you can comment on or make changes to this bug.