Files
orca/src/main/window
Brennan Benson 21a4410ac1 Say when an image is too large to copy instead of showing "Copied as PNG" (#39260)
* Report image copies the clipboard refused instead of showing "Copied"

The desktop clipboard image write returned without an error when it refused an
image (too large, not a PNG, undecodable), so "Copy as PNG" and browser screenshot
copies showed success while the clipboard was unchanged.

- Main and web image writes now reject on every refusal.
- The image viewer copies a raster image's own bytes (natural size), reusing the
  paste/copy PNG conversion; only SVGs still render at 2x for sharp text.
- Too-large failures say so, through one shared description used by native chat
  and the image viewer.
- Browser screenshot copies show success only after the write resolves.

Refs STA-14205

* Keep grab toasts on their own screenshot and show a successful retry as success

Refs STA-14205

* Drop a grab screenshot result once a newer toast, copy or cancel replaced it

Refs STA-14205

* Move the grab screenshot copy owner into its own hook

Refs STA-14205

* Test that native chat explains a too-large image copy behind the IPC error prefix
2026-11-07 18:39:38 -08:00
..