Bug 218156 - REGRESSION(iOS 14): Webshare API only works once - Promise never resolved/rejected
Summary: REGRESSION(iOS 14): Webshare API only works once - Promise never resolved/rej...
Status: RESOLVED DUPLICATE of bug 216913
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: Safari 14
Hardware: iPhone / iPad Other
: P2 Major
Assignee: Nobody
URL: https://developer.apple.com/forums/th...
Keywords: InRadar
Depends on:
Reported: 2020-10-24 21:53 PDT by Hanz Luo
Modified: 2020-10-25 13:26 PDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Hanz Luo 2020-10-24 21:53:26 PDT
On iOS 14 devices (test with iOS 14.0 and 14.1 / Safari) it works fine only once. For the second time it throws a permission error:

Error: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

Here are all the steps to reproduce:

     1. Go to https://mdn.github.io/dom-examples/web-share/

     2. Click the "Share MDN!" button

     3. Choose one of the suggested options or just click X to close the sharing popover

     4. Click on the "Share MDN!" button again

     5. See the error

We see the error because the previous sharing promise never gets resolved or rejected.
iOS 13 doesn't have the issue. Only iOS 14 has it.
Comment 1 Radar WebKit Bug Importer 2020-10-25 12:02:36 PDT
Comment 2 Tim Horton 2020-10-25 13:26:58 PDT

*** This bug has been marked as a duplicate of bug 216913 ***