mozilla / platform-tilt

Tracking issues which disadvantage Firefox relative to first-party browsers on major software platforms.
https://mozilla.github.io/platform-tilt
191 stars 0 forks source link

MacOS: inability to have Share button #21

Closed paulehoffman closed 9 months ago

paulehoffman commented 10 months ago

Firefox can't include the

image

"Share" button, which limits functionality, particularly for things like sharing over Airdrop.

mtom55 commented 10 months ago

From the webkit blog it states

In iOS and iPadOS 16.4, third-party browsers can now offer their users the ability to add websites and web apps to the Home Screen from the Share menu.

and

Applications on iOS and iPadOS present the Share menu by creating a UIActivityViewController with an array of activityItems

Presumably this means it is possible for browsers to implement the share menu, it would be nice to know the specific details about why this is not possible (AppStore rule or missing entitlement?)

Note: there should be a separate ticket(s) about being able to individually call functions/actions on the share sheet menu, without being restricted to only using the share sheet menu i.e. browsers need to be able to create their own custom menus.

bgrins commented 9 months ago

@paulehoffman do you know of a policy/technical limitation preventing third party apps from including this button? AFAICT this may just be a feature that isn't implemented in Firefox today (in which case I'll close the issue).

paulehoffman commented 9 months ago

I heard from a Mozilla person a few years ago that there was a huge technical barrier to you implementing it, but that may have changed since then. So, no, I'm not sure, but maybe ask in the part of the team that handles platform-specific stuff if the barrier is still there. If it is just a roadmap issue now, sure, close this issue.

bgrins commented 9 months ago

Interesting. I asked around about this and while I don't have a definitive answer, we are using NSSharingServicePicker for the share UI in the touch bar, and likely could add a button in the toolbar to initiate the share UI. So based on my understanding there's not currently a technical limitation here.

paulehoffman commented 9 months ago

Good enough, I'll close.

bgrins commented 9 months ago

Presumably this means it is possible for browsers to implement the share menu, it would be nice to know the specific details about why this is not possible (AppStore rule or missing entitlement?)

@mtom55 this issue was originally raised about macOS so it wouldn't apply to iOS or contradict anything in the linked blog post.