Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Share API #711

Closed
BearCooder opened this issue Sep 17, 2024 · 4 comments
Closed

Web Share API #711

BearCooder opened this issue Sep 17, 2024 · 4 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@BearCooder
Copy link

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

@AshleyScirra
Copy link

See also: Web Share API doesn't work in Android WebView - https://issues.chromium.org/issues/40540400

@wpt-interop
Copy link
Collaborator

Thank you for proposing Web Share API for inclusion in Interop 2025.

We wanted to let you know that this proposal was not selected to be part of Interop this year.

On behalf of the entire Interop team, thank you for submitting this proposal 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.

For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2025.

Posted on behalf of the Interop team.

@foolip
Copy link
Member

foolip commented Feb 17, 2025

@BearCooder I see you are 😕, but thank you submitting the proposal nevertheless!

One of the things that came up in the process is the difficulty of testing this on any desktop platforms, which are what we use for the scores on https://wpt.fyi/interop-2025. Robust support for mobile browsers on wpt.fyi continues to be a priority in https://github.com/web-platform-tests/interop-mobile-testing, so hopefully next year this won't be a blocker.

(Of course there's no guarantee that a proposal will be accepted even if the testing situation is great, it's also a question of priorities relative to other work.)

@BearCooder
Copy link
Author

Thank you for the explanation I appreciate it! I will try it again for next year :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: Done
Development

No branches or pull requests

4 participants