Open Bug 1823323 Opened 2 years ago Updated 2 years ago

Reusing an nsITransferable to change clipboard data behaves differently on Windows 11

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

Unspecified
Windows 11
defect

Tracking

()

People

(Reporter: darktrojan, Unassigned)

Details

In Thunderbird land, we have a test that puts data on the clipboard using nsISupportsString and nsITransferable. Later, the same objects are used to put different data on the clipboard. This works on Linux, Mac, and Windows 10, but not on Windows 11, where the original data remains on the clipboard.

I don't have a preference whether this should work or should not work, but the same thing should happen on all platforms.

FWIW I'm going to change the test so comm-central can be green again.

We do ignore the set request if the a same nsITransferable is passed, https://searchfox.org/mozilla-central/rev/3c3ad00ab7f587e2c75e8cebb89badc4e946b10e/widget/nsBaseClipboard.cpp#39-42, but it should behave the same on Windows 10 and Windows 11, not sure why we get different results.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.