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

Replace Clipboard API patches with Implicity Restricted section text. #69

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

mfalken
Copy link
Collaborator

@mfalken mfalken commented May 31, 2021

The Clipboard API requires system focus as clarified in
w3c/clipboard-apis#143.


Preview | Diff

@@ -895,10 +881,13 @@ APIs that require [=transient activation=] or [=sticky activation=]:
- {{PresentationRequest/start()|presentationRequest.start()}} [[PRESENTATION-API]]
- {{Window/showOpenFilePicker()}}, {{Window/showSaveFilePicker()}}, and {{Window/showDirectoryPicker()}} [[FILE-SYSTEM-ACCESS]]
- {{IdleDetector/requestPermission()|IdleDetector.requestPermission()}} [[IDLE-DETECTION]]
- Firing of clipboard events, as well as {{Clipboard/read()|navigator.clipboard.read()}} and {{Clipboard/readText()|navigator.clipboard.readText()}} [[CLIPBOARD-APIS]]
- Firing of clipboard events. [[CLIPBOARD-APIS]]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

By the way, I couldn't actually find where clipboard events need activation in https://w3c.github.io/clipboard-apis/

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I was referring to some combination of https://w3c.github.io/clipboard-apis/#integration-with-other-scripts-and-events , plus the fact that copy/paste events only make sense in the context of a user action which can only occur in visible/interact-with-able pages.

@mfalken mfalken requested a review from domenic May 31, 2021 15:37
Copy link
Collaborator

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Thanks for tidying this up!

@domenic domenic merged commit 92b6143 into WICG:main Jun 1, 2021
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.

2 participants