Open Bug 1983395 Opened 4 months ago Updated 3 months ago

Web share: navigator.canShare giving untrue results

Categories

(Core :: DOM: Web Share, defect)

Firefox 141
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bart, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0

Steps to reproduce:

  1. Enable dom.webshare.enabled in about:config
  2. Run navigator.canShare({ url: "https://example.com" });, see returned value
  3. If true, run navigator.share({ url: "https://example.com" }); as result of a user interaction, see result

Actual results:

  1. true is returned
  2. promise is rejected with "DomException: Operation is not supported"

Expected results:

Either false is returned at step 2, or true is returned and share action resolves successfully.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Blocks: webshare
Severity: -- → S3
Component: DOM: Core & HTML → DOM: Web Share
You need to log in before you can comment on or make changes to this bug.