Repository navigation
Closed
Labels
concerns: integrationCan't be used w/ other web platform features (or unclear what happens if used together)concerns: securityThis proposal may cause security risk if implementedfrom: GoogleProposed, edited, or co-edited by Google.position: neutraltopic: app-like capabilitiesSpec relates to native app style capabilities (e.g. things under the "PWA" or "Fugu" brands)topic: web apisSpec relates to web APIs (entry points for script)venue: WICGProposal is incubated in the Web Incubator Community Group
Description
Request for position on an emerging web specification
- WebKittens who can provide input: @hortont424, @marcoscaceres
Information about the spec
- Spec Title: Web Share Target API
- Spec URL: https://w3c.github.io/web-share-target/
- GitHub repository: https://github.com/w3c/web-share-target
Design reviews and vendor positions
- Mozilla standards-positions issue: Web Share Target mozilla/standards-positions#176
Bugs tracking this feature
- WebKit Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=194593
Anything else we need to know
Summary: While the Web Share API allows browsers to make use of the operating system's native "share" mechanism in web-to-native contexts, the Web Share Target API intent is to enable web-to-web and native-to-web sharing scenarios.
What is WebKit's position on this spec?
Reacted by Kai, Jesper van den Ende, Ryan Munsch, Kurt Fuquay, Alex Moore, Benny Powers, Liza Daly, Nyro, Kristján Oddsson, Tom and 5 more
Metadata
Metadata
Assignees
Labels
concerns: integrationCan't be used w/ other web platform features (or unclear what happens if used together)concerns: securityThis proposal may cause security risk if implementedfrom: GoogleProposed, edited, or co-edited by Google.position: neutraltopic: app-like capabilitiesSpec relates to native app style capabilities (e.g. things under the "PWA" or "Fugu" brands)topic: web apisSpec relates to web APIs (entry points for script)venue: WICGProposal is incubated in the Web Incubator Community Group
Type
Projects
- StatusShow more project fieldsDone
Activity
othermaciej commentedon Jun 29, 2022
Is this an Unofficial Draft of the Web Apps WG? Is it a community group thing? Can't tell the venue from the document itself.
matteocargnelutti commentedon Jun 29, 2022
@othermaciej My understanding is that this draft comes from the WICG, as the Specification - Level 2 doc suggests:
https://github.com/WICG/web-share-target/ redirects to https://github.com/w3c/web-share-target.
marcoscaceres commentedon Jun 29, 2022
It's an unofficial draft, but it's in scope for WebApps WG should another implementer become interested:
https://www.w3.org/2019/05/webapps-charter.html#wicgspecs
othermaciej commentedon Jun 29, 2022
OK, so for now WICG, but has fast track to go to Web Apps WG depending on interest?
marcoscaceres commentedon Jun 30, 2022
That's correct, yes.
hober commentedon Jun 30, 2022
@hortont424, thoughts?
othermaciej commentedon Jul 1, 2022
Potential security concerns if this allows a website to appear in the Share Sheet with a site-chosen icon and name, as it can then intentionally duplicate a popular or preinstalled app and thus mislead users.
tomayac commentedon Jul 1, 2022
The user would need to add the app to their home screen pro-actively, so when they are on Banana Game with a [🍌] icon and they try to add it and it suddenly says Facebook Messenger with a [💬] icon, they would notice there.
othermaciej commentedon Jul 1, 2022
So this API is only usable by installed/homescreen web apps? Not in the browser?
matteocargnelutti commentedon Jul 3, 2022
In its current state, the spec leaves the user agent determine how, if, and when targets should be registered.
The spec suggests different strategies that can be used to determine if the share target(s) should be registered: whether or not the web app is installed is one of them.
Chrome's current implementation of the Web Share Target API requires the web app to be installed.
The spec also lists spoofing as a risk of "particular concern", and suggests that this risk is heightened when the user agent doesn't require the web app to be installed.
tomayac commentedon Jul 4, 2022
@othermaciej I have opened WICG/web-share-target#109 asking if some sort of installation ceremony should be made obligatory by the spec. In practice, the API in its current implementation in Chromium already requires apps to be installed for it to have an effect.
othermaciej commentedon Sep 25, 2022
Ideally there should be not just an identification of the risk but also something in the spec (even if just a suggestion) to mitigate it. The risk is also heightened if it's possible for a web app's name or icon to change post-install (without user confirmation).
tomayac commentedon Sep 26, 2022
Regarding changing icons and/or name: both are considered security-sensitive and the spec mandates UAs make users aware of such changes.
marcoscaceres commentedon Nov 11, 2022
This is a DRAFT POSITION and does not represent the consensus of the WebKit community.
However, unless anyone objects by Friday 16th of November 2022, we will make the below the "official position". Please feel free to object or requests more time if needed. Please expressed support through the thumbs up reaction or additional comments (no +1 comments please!).
tomayac commentedon Nov 11, 2022
Thanks for your position, @marcoscaceres!
If the spec were to hard-require installation (i.e., Add to Home Screen on iOS/iPadOS) of an app before it can appear as a Web Share Target, would that possibly move your position more toward positive?
marcoscaceres commentedon Nov 16, 2022
Personally, I still think we need to think about this more in the Web Community at large. I'm personally worried about creating an "installed web" and a regular web: where some things only work if an app is installed. We should avoid that as much as possible, though it may be unavoidable in this case.
Having said that, "neutral" shouldn't be seen as negative. Maybe with a bit of work, Web Apps WG can turn it into something worth "support"ing?
hober commentedon Mar 23, 2023
Closing as we've identified our position.