arboard icon indicating copy to clipboard operation
arboard copied to clipboard

Promote `exclude_from_history` from extensions

Open Hinton opened this issue 6 months ago • 4 comments

Now that every platform implements exclude_from_history it would be nice if it could be promoted from platform specific extensions to Clipboard.

Hinton avatar Jun 30 '25 13:06 Hinton

Hey there, thanks for the suggestion 👋.

I don't think my stance has changed much since I made this comment last year. iOS and Android will have a way of doing this but the incoming WASM backend will not, AFAIK.

I'll think about if WASM being tier 2 (#191) would allow this method to no-op, since its just a hint anyway 🤔

complexspaces avatar Jun 30 '25 17:06 complexspaces

Ah I did not consider wasm. Yea that's fair.

Hinton avatar Jul 01 '25 18:07 Hinton

This is some surface-level web research I did:

  • No way to copy and mark something as sensitive in JavaScript programmatically.
  • Firefox appears to only mark things as sensitive in unclear cases (I struggled to follow the IPC logic), but its not set by default.
  • Chromium only marks copied values from sensitive if they're coming from a private/incognito browser context.

complexspaces avatar Jul 02 '25 05:07 complexspaces

I've been tracking https://github.com/w3c/clipboard-apis/issues/154 which is a proposal to add a option to specify the value being sensitive to the clipboard APIs. Unfortunately it seems to have stalled.

Hinton avatar Jul 02 '25 08:07 Hinton