[Webkit-unassigned] [Bug 244408] New: navigator.canShare(data) returns true but navigator.share(data) results in Unhandled Promise Rejection when data contains both image and text field.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 26 13:52:10 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244408

            Bug ID: 244408
           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
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: spreadpando at gmail.com

When passed a data object with both text, and image parameters, navigator.share() produces:

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

This occurs even if navigator.canShare returns true when passed the same data object.

This prevents users from sharing image, text and urls at once and negatively impacts iOS users' abilities to share content on the web.


Not a duplicate, but could be related to:

https://bugs.webkit.org/show_bug.cgi?id=231995 


For now the Web Share 2 API remains broken on iOS.

Produced on iPhone X iOS 15.5 (19F77)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220826/611a948b/attachment.htm>


More information about the webkit-unassigned mailing list