Bug 261498
| Summary: | REGRESSION (iOS 17)?: Web Share API - Missing apps in the share sheet | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Zupan <zud> |
| Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | akeerthi, jonathan, marcosc, thorton, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | iPhone / iPad | ||
| OS: | Unspecified | ||
Daniel Zupan
Steps to reproduce on an iOS 17 device:
1. Make sure to install e.g. the MS Word app (or a corresponding one).
2. Place a Word document in the "Files" app.
3. Open https://w3c.github.io/web-share/demos/share-files.html
4. Deselect all checkboxes
5. Choose the previously downloaded Word document.
6. Click "Share" to open the share sheet.
7. The Word app is missing from the list of available apps.
Expected behavior: The word app is shown in the share sheet.
Actual behavior: The Word app is missing in the share sheet, although it was available on iOS 16. Furthermore, it seems that there are in general less apps available in the share sheet than on iOS 16.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/115531309>
Jonathan Kingston
I saw this regression recently with the following code:
```
const gpxFileContents = new File([blob], filename, { type: 'application/gpx+xml' });
const shareData = {
files: [gpxFileContents]
}
if (navigator.canShare(shareData)) {
await navigator.share(shareData);
}
```
In iOS 16, this was showing Garmin is presented; wikiloc and komoot are also within the addition apps.
However on 17 and 18 these aren't presented suggesting the file type isn't passed through to the share sheet correctly.