Web Share Level 2 spec supports sharing file objects: https://wicg.github.io/web-share/level-2/ This should be implemented on the existing Web Share implementation in Android.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d14f5b09b829b309f9b706dab38fc3d1cc9f0871 commit d14f5b09b829b309f9b706dab38fc3d1cc9f0871 Author: Eric Willigers <ericwilligers@chromium.org> Date: Mon Jan 21 20:59:02 2019 WebShare: canShare() method in Level 2 canShare(data) returns false iff share(data) would reject with TypeError https://wicg.github.io/web-share/level-2/#canshare-method Intent to Implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/AiKgWvv3cq0/xAsjfSfMDQAJ Bug: 903010 Change-Id: I15e8a92a9d71b08da4e9e6d4bf2692c97dce5c0f Reviewed-on: https://chromium-review.googlesource.com/c/1351340 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Cr-Commit-Position: refs/heads/master@{#624658} [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/public/platform/web_feature.mojom [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/renderer/modules/webshare/navigator_share.cc [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/renderer/modules/webshare/navigator_share.h [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/renderer/modules/webshare/navigator_share.idl [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/renderer/modules/webshare/share_data.idl [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/renderer/platform/runtime_enabled_features.json5 [add] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/web_tests/external/wpt/web-share/canShare-files.https.html [add] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/web_tests/external/wpt/web-share/canShare-insecure.http.html [add] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/web_tests/external/wpt/web-share/canShare.https.html [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/third_party/blink/web_tests/webexposed/global-interface-listing-expected.txt [modify] https://crrev.com/d14f5b09b829b309f9b706dab38fc3d1cc9f0871/tools/metrics/histograms/enums.xml
Comment 1 by ericwilligers@chromium.org
, Nov 13