Bug 197815
| Summary: | Some Web Share API examples fail in WKWebView, succeed in Safari | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Beth Dakin <bdakin> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bdakin, mitz, thorton |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Beth Dakin
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Horton
Works for me in Minibrowser on Mac. Is this about iOS?
Tim Horton
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.
Beth Dakin
Thanks Tim!