Safari Webshare API: "Save to photos" is missing in iOS 16

Hi Apple,

Can you please comment whether this is intentional?

Here is the official Webshare W3C proposed recommendation: https://www.w3.org/TR/web-share/

Here is the test-suite linked from the recommendation that repros this issue. Run this on an iPhone with iOS 16 (16.4.1 in my case). Note: I care about the image/jpeg mime type which also does not work; this test case covers svg+xml.

https://wpt.live/web-share/share-image-manual.tentative.https.html

Steps from this page:

  1. hit share button, share sheet pops up

Expected: "Save to photos" is present

Actual: it isn't present. Only "Save to files" which does not get the image to the camera roll which is the user's intended destination for a photo.

I tried this on iOS 15.7 and it works well. Note that i'm using image/jpeg in my tests not svg+xml as seen in the test harness.

I tried this with a video on iOS 16 and it works. It appears that either images or image/jpeg is having the issue here.

I'd appreciate knowing if this is a bug, or intentional behavior, and if there is a workaround.

Ah, i've been given a hand by a friend: this appears to be referenced in this webkit bug in the most recent comment:

"So now we are back at forcing the users to tap and hold to save, hope this will get resolved soon!"

https://bugs.webkit.org/show_bug.cgi?id=231995

... and this same friend has found this:

https://github.com/WebKit/WebKit/pull/13111

So I guess it is fixed, and we just need an iOS update to include the fix.....

Safari Webshare API: "Save to photos" is missing in iOS 16
 
 
Q