Description
The "Copy Link" button in VideoEditor triggers navigator.clipboard.writeText() without a .catch() handler. If the clipboard API rejects (permission denied, not served over HTTPS, browser focus lost), the promise rejection goes unhandled.
Steps to Reproduce
- Open the editor and upload a video.
- Make any edit.
- Click "Copy Link" while clipboard permission is denied (or served over HTTP, not HTTPS).
- Observe the unhandled promise rejection in console.
Expected Behavior
If clipboard access fails, the error should be caught and logged gracefully, matching the existing pattern at line 661.
Actual Behavior
Unhandled promise rejection: DOMException - Clipboard write failed
Additional Context
The same file already handles this correctly for the "Copy error" button at line 658-663:
Description
The "Copy Link" button in VideoEditor triggers
navigator.clipboard.writeText()without a.catch()handler. If the clipboard API rejects (permission denied, not served over HTTPS, browser focus lost), the promise rejection goes unhandled.Steps to Reproduce
Expected Behavior
If clipboard access fails, the error should be caught and logged gracefully, matching the existing pattern at line 661.
Actual Behavior
Unhandled promise rejection: DOMException - Clipboard write failed
Additional Context
The same file already handles this correctly for the "Copy error" button at line 658-663: