Clipboard is cleared 5 minutes after copying text in a Private window

Description of the issue: Clipboard clears after 5 minutes in Private only.

Steps to Reproduce (add as many as necessary): 1. Open private window. 2. Type word “test”. 3. Wait 5 minutes. 4. Paste.

Actual Result: The clipboard is empty.

Expected result: The text should still be on the clipboard.

Reproduces how often: Every time after 5 minutes.

Operating System and Brave Version: macOS Tahoe is 26.7.2 Brave 1.97.59

Additional Information: The same copy in a normal window works fine, and so does copying from Finder. I tested with pbcopy/pbpaste in Terminal and macOS does not clear the clipboard. I have no extensions or clipboard managers installed. I found no setting or flag that controls this. If it’s intentional, please add an option to turn it off.

Updated to Brave 1.98.63. Issue still persists

I think this is a privacy feature to ensure that [private/sensitive content copied in Private windows doesn’t get transferred anywhere else.

Do you know of any way to disable this?

I’m still able to paste it in other apps before the 5 minute timer expires. After 5 minutes I can no longer paste inside or outside of the browser.

That is the privacy feature – the logic being you may have copied something in a Private window and forgot about it, so if you haven’t done it already, it gets removed from the clipboard automatically.

I do not believe there is a way to remove this feature.

Thank you for the thought.

Might not be thIs as I can still copy text from inside the browser and paste it outside of the browser, up until the 5 minute expires.

It is consistently 5 minutes later that it clears.

That almost certainly points to it being a privacy feature – it has a 5m timer for when the text gets cleared from the clipboard. There is a similar feature for Forget me when I close this site, where there is a short time gap (I believe 30s) between when site data gets deleted once closed, in the event that you didn’t intend to close the site.

The five-minute timer is intentional

MacOS clipboard implementation in the Chromium source code:

Chromium – ui/base/clipboard/clipboard_mac.mm

Lines 508–525 … The code checks whether the clipboard contents have been marked with:

Clipboard::PrivacyTypes::kNoLocalClipboardHistory

If so, it sets an expiration date:

[GetPasteboard()
 _setExpirationDate:[NSDate dateWithTimeIntervalSinceNow:5 * 60]];

Chromium developers explain that:

  • The intention is to prevent clipboard contents from being retained in clipboard history.
  • WebKit uses an eight-minute lifetime for content copied from ephemeral sessions.
  • Chromium chose five minutes as an arbitrary, shorter lifetime.

- ChatGPT’s work, re all the above.

Thanks, I saw this also from ChatGPT. I was hoping there was someway of disabling this or submitting a feature request.

I’m surprised there aren’t any other mentions of this online, from what I can see.

Yes it must be. Would be good to disable this.