Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigator.share() resolves at different point for Windows #9076

Merged
merged 1 commit into from
Sep 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions files/en-us/web/api/navigator/share/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ The **`navigator.share()`** method of the [Web Share API](/en-US/docs/Web/API/We

This method requires that the current document have the [web-share](/en-US/docs/Web/HTTP/Headers/Feature-Policy/web-share) permission policy and {{Glossary("transient activation")}}. (It must be triggered off a UI event like a button click and cannot be launched at arbitrary points by a script.) Further, the method must specify valid data that is supported for sharing by the native implementation.

The method resolves a {{jsxref("Promise")}} with `undefined` as soon as the data is successfully passed to the _share target_.
The method resolves a {{jsxref("Promise")}} with `undefined`.
On Windows this happens when the share popup is launched, while on Android the promise resolves once the data has successfully been passed to the _share target_.

## Syntax

Expand All @@ -41,7 +42,7 @@ navigator.share(data)

### Return value

A {{jsxref("Promise")}} that resolves with `undefined` once the data has been sent to the share target, or rejected with one of the [Exceptions](#exceptions) given below.
A {{jsxref("Promise")}} that resolves with `undefined`, or rejected with one of the [Exceptions](#exceptions) given below.

### Exceptions

Expand Down