WICG / web-app-launch

Web App Launch Handler
Other
74 stars 31 forks source link

LaunchParams needs share data #62

Open alancutter opened 1 year ago

alancutter commented 1 year ago

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: https://github.com/w3c/web-share-target/issues/84

alancutter commented 1 year ago

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 commented 1 year ago

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.