Skip to content

Firefox supports Web Share API behind flag, Firefox for Android without flag#28495

Merged
caugner merged 2 commits intomdn:mainfrom
muhi111:main
Nov 24, 2025
Merged

Firefox supports Web Share API behind flag, Firefox for Android without flag#28495
caugner merged 2 commits intomdn:mainfrom
muhi111:main

Conversation

@muhi111
Copy link
Copy Markdown
Contributor

@muhi111 muhi111 commented Nov 20, 2025

Summary

This PR corrects the compatibility data for navigator.share() and navigator.canShare() (specifically data_text_parameter) in Firefox and Firefox for Android.

Changes applied:

  1. Firefox (Desktop):

    • Restored version: Restored version_added: "96" which appears to have been inadvertently removed in PR Update Edge data for api.Navigator.share #23687.
    • Added flag: Added the dom.webshare.enabled flag configuration to accurately reflect that this feature requires a preference setting.
  2. Firefox for Android:

    • Mirror removal: Switched from "mirror" to explicit version numbers ("79" for share and "96" for canShare) to bypass the flag requirement issue.

Context and Verification:

  • Mirroring Issue: Currently, the desktop firefox entry requires the dom.webshare.enabled preference. However, firefox_android is defined with "accepts_flags": false. Consequently, the build script incorrectly resolves the mirrored support status to false.
  • Android canShare status: There appear to have been historical bugs regarding data_text_parameter support in canShare on Android. Although I was unable to trace the specific details or issue tracks myself, I have confirmed on a physical device (latest Firefox for Android) that it currently works as expected.

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:s [PR only] 7-24 LoC changed labels Nov 20, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 20, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner changed the title Fix Web Share API support for Firefox and Firefox for Android Firefox supports Web Share API behind flag, Firefox for Android without flag Nov 24, 2025
@caugner caugner enabled auto-merge (squash) November 24, 2025 17:25
auto-merge was automatically disabled November 24, 2025 17:51

Head branch was pushed to by a user without write access

@muhi111
Copy link
Copy Markdown
Contributor Author

muhi111 commented Nov 24, 2025

@caugner
Thank you for the review! Sorry to bother you again, but could you take another look after I’ve fixed the version numbers?

@caugner caugner merged commit b69087a into mdn:main Nov 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:s [PR only] 7-24 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants