This will be covered by the new Web API:
https://github.com/WICG/web-share-target/blob/master/docs/explainer.md