Fenix: [Bug] Web share no longer shares title or text

Created on 25 Jun 2020  ·  6Comments  ·  Source: mozilla-mobile/fenix

Steps to reproduce

  1. Open a website that implements the Web Share API. (https://web-share.glitch.me/)
  2. Press the share button (on the website, not the browser).
  3. Choose a share target.

Expected behavior

url and title or text get shared.

Actual behavior

Only url gets shared.

I've tested multiple versions of Fenix:

  • Beta 77.0.0-beta.2: title + url
  • Preview 5.1.1: title + url
  • Preview 5.2.0: url
  • Nightly 200625 06:00: url
  • Preview Nightly 200625 06:00: url

Device information

  • Android device: multiple Android 10 devices
  • Fenix version: Firefox Preview 5.2.0
Sharing feature request 🌟 🐞 bug

Most helpful comment

@mcarare #10193 sounds like it's about general URL sharing through the Fenix UI. I think for the WebShare API fenix should forward all parameters to the operating system. This is also what happens on iOS and android WebView / chromium.

All 6 comments

This was an intended behavior change: https://github.com/mozilla-mobile/fenix/issues/10193.

@mcarare are you talking about sharing using the Web Share API? I think the issue you linked to is about sharing from the browser UI, as Firefox Beta didn't have support for the Web Share API yet before being converted to Fenix.

@mcarare #10193 sounds like it's about general URL sharing through the Fenix UI. I think for the WebShare API fenix should forward all parameters to the operating system. This is also what happens on iOS and android WebView / chromium.

navigator.share() is experimental (see also https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#Browser_compatibility).
Clicking the share button in page does not trigger Android share, but the custom Fenix share sheet. The sharing behavior has changed in the aforementioned PR (#10193) that is why it no longer works.

@mcarare I don't get your point. The requested change in #10193 was related to sharing from the browser UI, which probably caused the regression this very issue is about. This does not mean the changed behavior with regard to sharing via the Web Share API is intended behavior.

It does mean that because using custom share for that action was intended.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phileastv picture phileastv  ·  3Comments

andreicristianpetcu picture andreicristianpetcu  ·  3Comments

bbinto picture bbinto  ·  3Comments

lindongbin picture lindongbin  ·  3Comments

abodea picture abodea  ·  3Comments