Summary: | navigator.canShare(data) returns true but navigator.share(data) results in Unhandled Promise Rejection when data contains both image and text field. | ||
---|---|---|---|
Product: | WebKit | Reporter: | spreadpando |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Blocker | CC: | marcosc, thorton, tony |
Priority: | P2 | ||
Version: | Safari 15 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 15 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=231995 |
Description
spreadpando
2022-08-26 13:52:10 PDT
I'll try to reproduce, but there are a few things that can cause canShare() to return true, but still result in a NotAllowedError: 1. .share() called multiple times before the first call's promise settles. 2. .share() is not initiated by user activation (or, more unlikely, there is no Window object). 3. Permissions policy violation, but this produces a different error string so we can rule this out. Ok, confirmed. This is indeed being caused by 231995 and it's a result of 1 (because even though shares completes, the promise is not being resolved). Thus, subsequent calls to .share() cause the API to freeze. *** This bug has been marked as a duplicate of bug 231995 *** |