At the moment, Navigator::Share() calls into the CanShare() checks before checking if the page has transient activation. According to the spec [1] - step 4, the transient activation check, and consumption of the transient activation, should happen before calling into CanShare(). [1] https://w3c.github.io/web-share/#share-method That's causing the following test to fail: https://wpt.live/web-share/share-consume-activation.https.html PS: Can we have a "Web Share" component to file bugs against? 🤞
Created attachment 435648 [details] Patch
If it's not too late, this test will also pass now: https://wpt.live/web-share/share-without-user-gesture.https.html It's similar to the other test, but the other tests actually checks if the activation was consumed.
Committed r281126 (240580@main): <https://commits.webkit.org/240580@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435648 [details].
<rdar://problem/82012234>