Closed Bug 1753411 Opened 4 years ago Closed 4 years ago

Deduplicate a lot of the X11/Wayland clipboard code.

Categories

(Core :: Widget: Gtk, task)

task

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

No description provided.

Not sure why would it be needed now.

Depends on D137735

Why do you think we don't need the mutex?

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?

X11 code is pretty similar to the current Wayland code, and it doesn't use a mutex, nor I know why would it.

(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 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?

Yes, mutex is here for reentrancy.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: