Commit 7cda5e3
fix: captureWorker uses direct postMessage for full-frame capture
The bridge.triggerCapture() path only captured 1 command (viewport) due
to a deep interaction between the main-thread Spector spy chain and
Worker execution contexts.
Fixed captureWorker() to bypass the bridge and send spector:trigger-capture
directly to the Worker via worker.postMessage(), with a one-shot message
listener for the capture result. This is the same proven approach used
by the extension's contentScript.js capture handler.
The embedded UI capture menu now also gets full-frame captures (6 commands)
when clicking the red capture button on a Worker canvas.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a4bca89 commit 7cda5e3
4 files changed
Lines changed: 30 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 490 | + | |
| 491 | + | |
494 | 492 | | |
495 | 493 | | |
496 | 494 | | |
497 | 495 | | |
498 | 496 | | |
499 | 497 | | |
500 | 498 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
506 | 524 | | |
507 | 525 | | |
508 | 526 | | |
| |||
0 commit comments