Closed Bug 1666203 Opened 4 years ago Closed 3 years ago

[Web Share] Implement canShare() method

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: marcos, Assigned: marcos)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Steps to reproduce:

Call navigator.canShare({})

Actual results:

Not implemented

Expected results:

It should be implemented in accordance with the w3c spec.
https://github.com/w3c/web-share/pull/177

implement navigator.canShare() method

Assignee: nobody → marcos
Attachment #9176836 - Attachment is obsolete: true
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Severity: -- → N/A
Priority: -- → P2
Attachment #9176836 - Attachment is obsolete: false
Pushed by marcos@marcosc.com: https://hg.mozilla.org/integration/autoland/rev/0d2eac977279 implement navigator.canShare() method r=saschanaz,smaug
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

FYI Docs work for this in FF96 can be tracked in https://github.com/mdn/content/issues/10852.
This will be minimal because I recently did an update -https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare . Mostly I think this just needs a BCD update.

Can you please confirm my assumptions

  • canShare is (still) behind the same preference as the rest of the API
  • files and text cannot be shared. All you can share is URLs and a title.
Flags: needinfo?(marcos)

canShare is (still) behind the same preference as the rest of the API

Yup.

files and text cannot be shared. All you can share is URLs and a title.

Text can be shared. That has always been the case on desktop, at least on Windows. I guess there was some confusion with this Android specific bug? https://github.com/mozilla-mobile/fenix/issues/11946#

Flags: needinfo?(marcos)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: