Skip to content

Commit

Permalink
Firefox supports navigator.share behind pref (#12194)
Browse files Browse the repository at this point in the history
* FF supports navigator.share behind pref

* mark share/canShare as standard and not experimental

* Add canShare spec_url

* Update api/Navigator.json

* Add macOS note and partial implementation for edge/opera

* Add files as a subfeature

* Add navigator share data_text_parameter and data_file_parameter

* Mirror data params to canShare

* Update api/Navigator.json

Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>

* partial_implementation for macOS limitation - from code review

Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>

* Remove superseded note about data/text support

Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
  • Loading branch information
hamishwillee and ddbeck authored Oct 7, 2021
1 parent d9549a8 commit 2611b28
Showing 1 changed file with 240 additions and 9 deletions.
249 changes: 240 additions & 9 deletions api/Navigator.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@
"canShare": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Navigator/canShare",
"spec_url": "https://w3c.github.io/web-share/#canshare-data-method",
"support": {
"chrome": {
"version_added": "89",
Expand All @@ -542,7 +543,9 @@
"version_added": "75"
},
"edge": {
"version_added": false
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"firefox": {
"version_added": false
Expand All @@ -554,10 +557,12 @@
"version_added": false
},
"opera": {
"version_added": false
"version_added": "75",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"opera_android": {
"version_added": false
"version_added": "54"
},
"safari": {
"version_added": "14"
Expand All @@ -573,10 +578,120 @@
}
},
"status": {
"experimental": true,
"standard_track": false,
"experimental": false,
"standard_track": true,
"deprecated": false
}
},
"data_files_parameter": {
"__compat": {
"description": "<code>data.files</code> parameter",
"spec_url": "https://w3c.github.io/web-share/#dom-sharedata-files",
"support": {
"chrome": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"chrome_android": {
"version_added": "76"
},
"edge": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "75",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"opera_android": {
"version_added": "54"
},
"safari": {
"version_added": "15"
},
"safari_ios": {
"version_added": "15"
},
"samsunginternet_android": {
"version_added": "11.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"data_text_parameter": {
"__compat": {
"description": "<code>data.text</code> parameter",
"spec_url": "https://w3c.github.io/web-share/#dom-sharedata-text",
"support": {
"chrome": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"chrome_android": {
"version_added": "76"
},
"edge": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "75",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"opera_android": {
"version_added": "54"
},
"safari": {
"version_added": "15"
},
"safari_ios": {
"version_added": "15"
},
"samsunginternet_android": {
"version_added": "11.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"clearAppBadge": {
Expand Down Expand Up @@ -3229,12 +3344,18 @@
"version_added": "81"
},
"firefox": {
"version_added": false
"version_added": "71",
"flags": [
{
"type": "preference",
"name": "#dom.webshare.enabled",
"value_to_set": "enabled"
}
]
},
"firefox_android": {
"version_added": "79",
"partial_implementation": true,
"notes": "Firefox for Android does not support sharing files or text."
"partial_implementation": true
},
"ie": {
"version_added": false
Expand All @@ -3259,10 +3380,120 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
},
"data_files_parameter": {
"__compat": {
"description": "<code>data.files</code> parameter",
"spec_url": "https://w3c.github.io/web-share/#dom-sharedata-files",
"support": {
"chrome": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"chrome_android": {
"version_added": "76"
},
"edge": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "75",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"opera_android": {
"version_added": "54"
},
"safari": {
"version_added": "15"
},
"safari_ios": {
"version_added": "15"
},
"samsunginternet_android": {
"version_added": "11.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"data_text_parameter": {
"__compat": {
"description": "<code>data.text</code> parameter",
"spec_url": "https://w3c.github.io/web-share/#dom-sharedata-text",
"support": {
"chrome": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"chrome_android": {
"version_added": "76"
},
"edge": {
"version_added": "89",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "75",
"partial_implementation": true,
"notes": "Not supported on macOS, see <a href='https://crbug.com/1144920'>bug 1144920</a>."
},
"opera_android": {
"version_added": "54"
},
"safari": {
"version_added": "15"
},
"safari_ios": {
"version_added": "15"
},
"samsunginternet_android": {
"version_added": "11.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"storage": {
Expand Down

0 comments on commit 2611b28

Please sign in to comment.