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

Check transient activation after sharePromise #183

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

ewilligers
Copy link
Collaborator

@ewilligers ewilligers commented Sep 24, 2020

WPT web-share/share-sharePromise-internal-slot.https.html
has multiple navigator.share() calls within a single
onclick handler. This is a good way to test the sharePromise
internal slot, but it was not previously permitted by the spec,
as the first call would consume activation and the later calls
would fail with NotAllowedError instead of InvalidStateError.

For normative changes, the following tasks have been completed:

  • Newly consistent with Web platform tests (test)

Implementation commitment:

WPT web-share/share-sharePromise-internal-slot.https.html
has multiple navigator.share() calls within a single
onclick handler. This is a good way to test the sharePromise
internal slot, but it was not previously permitted by the spec,
as the first call would consume activation and the later calls
would fail with NotAllowedError instead of InvalidStateError.
Copy link
Member

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches what Gecko does too, so 👍

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Sep 24, 2020
Spec:
https://w3c.github.io/web-share/#share-method

If a share() request is active when share() is called again, the new
share request fails immediately.
w3c/web-share#113

In content shell, the OS-integration for the share service is not
present. Instead of crashing in tests, we report a not implemented
error.

WPT web-share/share-sharePromise-internal-slot.https.html now passes -
it previously crashed.
w3c/web-share#183 improves consistency between
the test and the spec.

Protocols other that http and https are no longer supported by
share() or canShare().
w3c/web-share#174

canShare is being discussed in
w3c/web-share#177

Bug: 1002337, 1002514, 1131755
Change-Id: I4ec9f6eb03373fd5c6db1881df906a8df36ca4ff
@ewilligers ewilligers merged commit 151b35e into w3c:master Sep 24, 2020
@ewilligers ewilligers deleted the transient-after-sharePromise branch September 24, 2020 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants