Bug 197815 - Some Web Share API examples fail in WKWebView, succeed in Safari
Summary: Some Web Share API examples fail in WKWebView, succeed in Safari
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-11 09:50 PDT by Beth Dakin
Modified: 2019-05-12 14:39 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2019-05-11 09:50:59 PDT
This demo works in Safari and SVC but fails in WKWebView: https://paul.kinlan.me/london-from-kingscross/

Other examples work everywhere, which is expected.
Comment 1 Tim Horton 2019-05-11 20:44:08 PDT
Works for me in Minibrowser on Mac. Is this about iOS?
Comment 2 Tim Horton 2019-05-11 21:09:13 PDT
This is (obviously) not a Web Share bug.

The bug is that this page uses navigator.serviceWorker without feature detecting it, in the same script that installs the click handler on the Share button.

Since serviceWorker isn't available in WKWebView, the script throws an exception, thus no click handler, thus no share.
Comment 3 Beth Dakin 2019-05-12 14:39:47 PDT
Thanks Tim!