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

Make navigator.clipboard fallible #2598

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

alecmocatta
Copy link
Contributor

navigator.clipboard is currently, in line with the official IDL, infallible:

partial interface Navigator {
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
};

In practise though it is fallible, at least in firefox and edge it's undefined on non-HTTPS sites.

I went ahead and made this PR to change to Clipboard? clipboard, while also bumping the IDL used from 5 June 2019's spec to 4 June 2021's.

Let me know if there's a better approach to resolving this! Also if someone could confirm the removal of ClipboardEvent::{new,new_with_event_init_dict} are expected?

@alexcrichton
Copy link
Contributor

Thanks!

@alexcrichton alexcrichton merged commit 1e41529 into rustwasm:master Jun 22, 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