Bug 180218

Summary: Expose SPI didClickAlternativePresentationButtonWithUserInfo on iOS
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebKit2Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: iPhone / iPad   
OS: iOS 11   
Attachments:
Description Flags
Patch
none
Patch achristensen: review+

Description Daniel Bates 2017-11-30 14:27:53 PST
Expose SPI didClickAlternativePresentationButtonWithUserInfo on iOS.
Comment 1 Radar WebKit Bug Importer 2017-11-30 14:28:40 PST
<rdar://problem/35782555>
Comment 2 Daniel Bates 2017-11-30 14:30:00 PST
Created attachment 328029 [details]
Patch
Comment 3 Daniel Bates 2017-11-30 15:30:02 PST
Created attachment 328040 [details]
Patch
Comment 4 Alex Christensen 2017-11-30 15:34:58 PST
Comment on attachment 328040 [details]
Patch

We should make API tests work on both platforms, too.
Comment 5 Daniel Bates 2017-11-30 15:59:37 PST
(In reply to Alex Christensen from comment #4)
> Comment on attachment 328040 [details]
> Patch
> 
> We should make API tests work on both platforms, too.

Do you mind if I make this test run on iOS in a follow up bug? The test makes use of TestWKWebView’s mouseUpAtPoint() to click the alternative presentation button. And this function is only implemented on Mac. We either need to implement the function for iOS or we need to update the existing unit test to trigger the button using another mechanism.
Comment 6 Daniel Bates 2017-11-30 16:48:23 PST
(In reply to Daniel Bates from comment #5)
> (In reply to Alex Christensen from comment #4)
> > Comment on attachment 328040 [details]
> > Patch
> > 
> > We should make API tests work on both platforms, too.
> 
> Do you mind if I make this test run on iOS in a follow up bug? The test
> makes use of TestWKWebView’s mouseUpAtPoint() to click the alternative
> presentation button. And this function is only implemented on Mac. We either
> need to implement the function for iOS 

Teaching TestWKWebView to simulate a mouse click/tap on iOS would be more beneficial to the project. We have an existing bug to cover this, bug #172614.
Comment 7 Daniel Bates 2017-11-30 16:51:23 PST
Committed r225372: <https://trac.webkit.org/changeset/225372>