Skip to content

Web Share API #1083

Closed
Closed

Description

@BearCooder

Description

The Web Share API is an API for sharing text, links and other content to an arbitrary destination of the user's choice.

While it’s already possible for a user to share content from a webpage via native means, they have to locate the option in the browser menu, and even then, there’s no control over what gets shared. The introduction of this API allows developers to add sharing functionality into apps or websites by taking advantage of the native content sharing capabilities on a user’s device.

Unfortunately the cross browser support is still not great:

  • Safari provides full support
  • Chrome provides partial support, the share and canShare method is not supported
  • Firefox provides no support for share, canshare and other methods

This would be a great oportunity to reach full support on all browsers.

Specification

https://www.w3.org/TR/web-share/

Additional Signals

Standards Positions

Developer discussions

There is plenty evidence that browser wide support for all methods is needed. People are asking all over again in different mediums why this feature does not work on specific browsers.
Some examples:

The list can go on and on. Just google web share api and look at stackoverflow etc.

Polls & Surveys

https://2022.stateofjs.com/en-US/features/browser-apis/

From State of HTML 2023 preliminary results, Web Share API was among the features that respondents expressed the most interest for: #550 (comment).
https://2023.stateofhtml.com

Browser bug reports

Other

https://w3c.github.io/web-share/

Web Share depends on Permission Policy.
Test where Permission Policy is excluded:
https://wpt.fyi/results/web-share?label=master&label=experimental&aligned&q=path%3A%2Fweb-share%20and%20not%20permissions-policy%20and%20not%20feature-policy

Specification

https://w3c.github.io/web-share/

web-feature

https://web-platform-dx.github.io/web-features-explorer/features/share/

Test Links

https://wpt.fyi/results/web-share?label=master&label=experimental&aligned&q=path%3A%2Fweb-share%20and%20not%20permissions-policy%20and%20not%20feature-policy

Additional Signals

No response

Activity

  1. github-actions commented on Sep 15, 2025

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature navigator.share()

  2. BearCooder commented on Sep 18, 2025

    @BearCooder
    Author

    A relevant comment regarding this proposal I would say: #711 (comment)

  3. foolip commented on Nov 4, 2025

    @foolip
    Member

    Unfortunately the cross browser support is still not great:

    • Safari provides full support
    • Chrome provides partial support, the share and canShare method is not supported
    • Firefox provides no support for share, canshare and other methods

    Is this still accurate? Per https://web-platform-dx.github.io/web-features-explorer/features/share/ it seems like the feature is supported everywhere except Firefox (desktop) now.

  4. captainbrosset commented on Dec 8, 2025

    @captainbrosset
    Contributor
    • Firefox:
      • navigator.share() is supported in Nightly by default, but in Stable.
      • navigator.canShare() same as above, works fine in Nightly, but not in Stable.
    • Chrome:
      • navigator.share() I think this is fully supported.
      • navigator.canShare() same as above.
  5. jgraham commented on Dec 8, 2025

    @jgraham
    Contributor

    Note that this is also highly platform-dependent. In particular I think the above is correct for Windows, but not for macOS or for Linux. Linux in particular is relevant to Interop because that's where our Chrome and Firefox testing is run, but afaict neither Chrome nor Firefox have support for this API on Linux.

  6. wpt-interop commented on Feb 12, 2026

    @wpt-interop
    Collaborator

    Thank you for proposing Web Share API for Interop 2026.

    We want to let you know it was not selected to be part of Interop this year.

    On behalf of the entire Interop team, thank you for submitting it for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.

    Posted on behalf of the Interop team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions