Firefox-wayland crash when selection is available or clipboard has contents
I think I need help with this.
Here's the logs on our (rootston) side, because we don't have the last .selection()
event on FF side as it crashes:
[1404702.976] -> gtk_primary_selection_device@25.data_offer(new id gtk_primary_selection_offer@4278190080)
[1404703.009] -> gtk_primary_selection_device@15.data_offer(new id gtk_primary_selection_offer@4278190080)
[1404703.039] -> gtk_primary_selection_offer@4278190080.offer("text/plain")
[1404703.064] -> gtk_primary_selection_offer@4278190080.offer("text/plain;charset=utf-8")
[1404703.089] -> gtk_primary_selection_device@25.selection(gtk_primary_selection_offer@4278190080)
[1404703.113] -> gtk_primary_selection_device@15.selection(gtk_primary_selection_offer@4278190080)
Where both selection devices have been created on different wl_seat (logs on ff side this time)
[191882.862] -> gtk_primary_selection_device_manager@10.get_device(new id gtk_primary_selection_device@15, wl_seat@13)
[192201.245] -> gtk_primary_selection_device_manager@22.get_device(new id gtk_primary_selection_device@25, wl_seat@23)
tbh even if it was a single seat it'd probably crash the app just the same to instanciate multiple device managers/selection devices and use them, so not sure we should focus on that part..
So apparently it's not OK to offer up the same selection to multiple devices.
Either we need to instanciate a different gtk_primary_selection_offer
and offer one each, or we need to pick our poison and give it to one.
weston doesn't seem to have a complete selection implementation?
gnome-shell only gives it to one, presumably the latest device manager instanciated.
What shall we do?