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

LaunchParams needs share data #62

Open
alancutter opened this issue Aug 3, 2022 · 2 comments
Open

LaunchParams needs share data #62

alancutter opened this issue Aug 3, 2022 · 2 comments
Labels
future-api Issue discusses possible extensions to the current API.

Comments

@alancutter
Copy link
Collaborator

If a web app is a share target and uses "launch_handler": { "client_mode": "focus-existing" } the share payload is dropped. LaunchParams should include a share_data member for this situation.

Bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=1213776

This proposal relates to: w3c/web-share-target#84

@alancutter
Copy link
Collaborator Author

Looks like the data contents of https://w3c.github.io/web-share-target/level-2/#sharetargetparams-and-its-members needs to be turned into a JS object.

@alancutter
Copy link
Collaborator Author

After discussions with @ericwilligers it sounds like we can package up the share data as a FormData object.
Maybe the share target level 2 spec could be refactored to define how to construct the FormData and then call into existing procedures for producing an HTTP request out of it.

@alancutter alancutter added the future-api Issue discusses possible extensions to the current API. label Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future-api Issue discusses possible extensions to the current API.
Projects
None yet
Development

No branches or pull requests

1 participant