The order of available clipboard flavors should be consistent whether read from system clipboard or read from clipboard cache
Categories
(Core :: Widget, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
Details
Attachments
(2 files)
The order of available clipboard flavors with and without reading clipboard data from clipboard cache enabled is inconsistent.
- We use the order in cached transferable when reading-from-clipboard-cache is enabled: https://searchfox.org/mozilla-central/rev/6b0b8c1003504e302e243c300355ef4d61e24909/widget/nsBaseClipboard.cpp#833-843.
- But with reading-from-clipboard-cache disabled, we use the order of requesting flavors list instead, https://searchfox.org/mozilla-central/rev/6b0b8c1003504e302e243c300355ef4d61e24909/widget/nsBaseClipboard.cpp#1002-1008.
This basically makes the macOS behave differently than other platform (as currently only macOS enable reading-from-clipboard-cache). And also this would cause behavior changes on other platform if one day we would like to enable reading-from-clipboard-cache on other platforms as well.
Assignee | ||
Comment 1•3 months ago
|
||
Try doesn't run headless mochitest chrome tests, but it's would be good to make
this test can pass locally.
Assignee | ||
Comment 2•3 months ago
|
||
This basically makes the macOS behave the same as other platform (currently only
macOS would read data from clipboard cache). And also this would ensure behavior
doesn't change if one day we would like to enable reading-from-clipboard-cache
on other platforms as well.
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3e437fedd0f Make test_clipboard_cache_chrome.html pass on headless mode; r=spohl https://hg.mozilla.org/integration/autoland/rev/5151fa6b2453 Make reading from clipboard cache returns same flavor order as reading from system clipboard; r=spohl
Comment 4•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c3e437fedd0f
https://hg.mozilla.org/mozilla-central/rev/5151fa6b2453
Description
•