Clipboard fallback: permissions-first + download link #9

Open
opened 2025-12-15 00:37:02 +00:00 by 44r0n7 · 0 comments
Owner

Proposal

  • Use navigator.clipboard.writeText with an explicit permissions prompt when supported.
  • When not secure or permission denied, show a "Download log" link that serves the log as a file instead of relying on document.execCommand (deprecated).
  • Keep the copy button but make the UX predictable across HTTP/HTTPS.

Acceptance

  • Copy works when permissions are granted; download always works as fallback.
  • No dependence on document.execCommand.
Proposal - Use navigator.clipboard.writeText with an explicit permissions prompt when supported. - When not secure or permission denied, show a "Download log" link that serves the log as a file instead of relying on document.execCommand (deprecated). - Keep the copy button but make the UX predictable across HTTP/HTTPS. Acceptance - Copy works when permissions are granted; download always works as fallback. - No dependence on document.execCommand.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 44r0n7/pi-kit#9