Web Share API test

Remember a while back I wrote about some odd behaviour with the Web Share API in Safari on iOS?




When the share() method is triggered, iOS provides multiple ways of sharing: Messages, Airdrop, email, and so on. But the simplest option is the one labelled ���copy���, which copies to the clipboard.



Here���s the thing: if you���ve provided a text parameter to the share() method then that���s what���s going to get copied to the clipboard���not the URL.



That���s a shame. Personally, I think the url field should take precedence.




Tess filed a bug soon after, which was very gratifying to see.



Now Phil has put together a test case:





Share URL, title, and text
Share URL and title
Share URL and text



Very handy! The results (using the ���copy��� to clipboard action) are somewhat like rock, paper, scissors:




URL beats title,
text beats URL,
nothing beats text.


So it���s more like rock, paper, high explosives.

 •  0 comments  •  flag
Share on Twitter
Published on April 10, 2020 01:31
No comments have been added yet.


Jeremy Keith's Blog

Jeremy Keith
Jeremy Keith isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Jeremy Keith's blog with rss.