Deduplicate a lot of the X11/Wayland clipboard code.
Categories
(Core :: Widget: Gtk, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox98 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(2 files)
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
Not sure why would it be needed now.
Depends on D137735
| Assignee | ||
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
Why do you think we don't need the mutex?
| Assignee | ||
Comment 5•4 years ago
|
||
Why would we need it? Do we call it off main thread? Each async GTK request is paired with a Request object now, so even if you called multiple times to GetTargets etc it should behave correctly, afaict. And we don't call this code from different threads so the mutex is just protecting from reentrancy, right?
| Assignee | ||
Comment 6•4 years ago
|
||
X11 code is pretty similar to the current Wayland code, and it doesn't use a mutex, nor I know why would it.
Comment 7•4 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)
Why would we need it? Do we call it off main thread? Each async GTK request is paired with a
Requestobject now, so even if you called multiple times toGetTargetsetc it should behave correctly, afaict. And we don't call this code from different threads so the mutex is just protecting from reentrancy, right?
Yes, mutex is here for reentrancy.
Comment 8•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/26e996ca80e3
https://hg.mozilla.org/mozilla-central/rev/e987da6babdd
https://hg.mozilla.org/mozilla-central/rev/e24e54274599
Description
•