Skip to content

Copy doesn't work on Safari #3480

@abey79

Description

@abey79

Describe the bug

Copying text from https://egui.rs (e.g. from the text edit widget) or indeed Rerun web doesn't work on Safari. This is particularly annoying for Rerun's new Quick Start guide's code block, which are meant to be copied by the user.

To Reproduce

  1. Go to https://egui.rs -> Widget Gallery
  2. Enter text in the TextEdit widget
  3. Select and copy that text

=> beeps and generate the following error in the console:

ERROR: [eframe::web] eframe/src/web/mod.rs:199: Copy/cut action failed: JsValue(NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
writeText@[native code]
@https://www.egui.rs/egui_demo_app.js:941:46
<?>.wasm-function[644]@[wasm code]
<?>.wasm-function[516]@[wasm code]
<?>.wasm-function[2521]@[wasm code]
__wbg_adapter_30@https://www.egui.rs/egui_demo_app.js:226:136
real@https://www.egui.rs/egui_demo_app.js:209:21)

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.0
  • Browser: Safari 17.0

Related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokeneframeRelates to epi and eframererunDesired for Rerun.iowebRelated to running Egui on the web

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions