decentraland / decentraland/bevy-explorer

copyToClipboard: denied permission never resolves the scene promise

Open
#1,166 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
27
Forks
20
Avg merge
1d 30m
Merged PRs (30d)
78

Description

`handle_copy_to_clipboard` drains successes from `PermissionType::CopyToClipboard` (`crates/restricted_actions/src/lib.rs:1875`) but the failure branch drains `PermissionType::Web3` (`lib.rs:1890`). A denied clipboard request is therefore never answered and the scene's `copyToClipboard` promise hangs forever.

Fix: `perms.drain_fail(PermissionType::CopyToClipboard)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.