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

Prevent panic when copying text outside of a secure context #5326

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

YgorSouza
Copy link
Contributor

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5326-fix-web-clipboard-panic
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@lucasmerlin lucasmerlin added web Related to running Egui on the web eframe Relates to epi and eframe bug Something is broken labels Oct 30, 2024
@lucasmerlin
Copy link
Collaborator

Thank you!

Maybe we should also update the copy_text docs to mention that this might not work for wasm builds outside of secure contexts / when the app is deployed without https?

@YgorSouza
Copy link
Contributor Author

Thank you!

Maybe we should also update the copy_text docs to mention that this might not work for wasm builds outside of secure contexts / when the app is deployed without https?

I added it, although I don't know if this is the right place for that, since it doesn't really have anything to do with egui, it's just how wasm works. But I guess at least it is hard to miss.

@emilk emilk merged commit 444c21a into emilk:master Nov 1, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken eframe Relates to epi and eframe web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy (CTRL+C and ui.output_mut) crash if HTTP
4 participants