Commit 12690d6
fix(probe): make host-probe copy buttons work in sandboxed iframe
The async Clipboard API silently rejects when the host doesn't grant
`clipboard-write` permission policy on the iframe, and errors were
swallowed so the button looked broken either way. Add an execCommand
textarea fallback and a brief "Copied" / "Copy failed" label so the
action is visible.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d40e08d commit 12690d6
1 file changed
Lines changed: 38 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
40 | 69 | | |
41 | 70 | | |
42 | 71 | | |
43 | | - | |
| 72 | + | |
44 | 73 | | |
45 | 74 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
49 | 83 | | |
50 | 84 | | |
51 | 85 | | |
| |||
0 commit comments