nsIClipboardOwner isn't tracked correctly on Mac
Categories
(Core :: Widget, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
Details
Attachments
(2 files, 2 obsolete files)
There is only one cached nsITransferable
and nsIClipboardOwner
in nsBaseClipboard
to track the ownership of clipboard data, https://searchfox.org/mozilla-central/rev/cf3af6bb6657278880f8baf38435eeb8f2d5d86c/widget/nsBaseClipboard.h#46-47. If we support multiple clipboard type, this cache is shared between them, so setting data to one clipboard type will clear the ownership for another clipboard type, and cause nsIClipboardOwner::LosingOwnership
get called.
We don't encounter this issue on Windows as it only supports one clipboard type.
And we also behave correctly on Linux as it doesn't inherit nsBaseClipboard
and has separated cache for each clipboard type, https://searchfox.org/mozilla-central/rev/cf3af6bb6657278880f8baf38435eeb8f2d5d86c/widget/gtk/nsClipboard.h#139-144
Assignee | ||
Comment 1•3 years ago
|
||
Instead of using mTransferable, so that windows widget don't need to access
mTransferable which is used as cache in cocoa widget.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D148940
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D167997
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Comment 7•2 years ago
|
||
Comment on attachment 9323930 [details]
Bug 1812078 - Part 1: Have a generic way to initialize clipboard capabilities;
Revision D173009 was moved to bug 1834710. Setting attachment 9323930 [details] to obsolete.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/704dc8d1421b
https://hg.mozilla.org/mozilla-central/rev/9e25deb0b839
Description
•