Skip to content

Should share() be allowed to resolve immediately? #188

Closed
@saschanaz

Description

@saschanaz

Windows currently does not support a way to track share action consistently: https://bugzilla.mozilla.org/show_bug.cgi?id=1641280

Currently a caveat is that there is still no way to track selection of "Copy Link" feature, and doing so currently creates a promise that will never be resolved.

Edge team somehow decided to immediate resolve the promise regardless of what actually happens with the share data on Windows (at least since Edge 85) and never throw when canceled, but the spec says resolving should happen only after successful transmission:

Once the data has been successfully transmitted to the target, resolve [[sharePromise]] with undefined.

Should we revise the spec to allow Edge behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions