Open Bug 1968446 Opened 4 months ago Updated 2 months ago

[Wayland] Firefox does not close file descriptor

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 139
defect

Tracking

()

UNCONFIRMED

People

(Reporter: boyhuanggordon, Unassigned)

References

(Blocks 2 open bugs)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

  1. run Firefox on Linux, wayland .
  2. run wl-clip-persist
  3. copy

Actual results:

every two times copy only succeed one (will paste old scrapbook content)

refer: https://github.com/Linus789/wl-clip-persist/issues/17#issuecomment-2907922390

Expected results:

copy success every time

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

I haven't added it to the GitHub thread yet, but another thing I noticed is this:

[3568973.808] {Default Queue}  -> wl_data_device_manager#7.create_data_source(new id wl_data_source#78)
[3568973.826] {Default Queue}  -> wl_data_source#78.offer("text/html")
[3568973.839] {Default Queue}  -> wl_data_source#78.offer("text/_moz_htmlcontext")
[3568973.843] {Default Queue}  -> wl_data_source#78.offer("text/_moz_htmlinfo")
[3568973.845] {Default Queue}  -> wl_data_source#78.offer("text/plain;charset=utf-8")
[3568973.849] {Default Queue}  -> wl_data_source#78.offer("UTF8_STRING")
[3568973.851] {Default Queue}  -> wl_data_source#78.offer("COMPOUND_TEXT")
[3568973.854] {Default Queue}  -> wl_data_source#78.offer("TEXT")
[3568973.857] {Default Queue}  -> wl_data_source#78.offer("text/plain")
[3568973.860] {Default Queue}  -> wl_data_source#78.offer("STRING")
[3568973.863] {Default Queue}  -> wl_data_source#78.offer("text/plain;charset=utf-8")
[3568973.866] {Default Queue}  -> wl_data_source#78.offer("text/plain")
[3568973.868] {Default Queue}  -> wl_data_source#78.offer("text/x-moz-url-priv")
[3568973.871] {Default Queue}  -> wl_data_device#30.set_selection(wl_data_source#78, 291121707)
[3568973.876] {Default Queue}  -> wl_data_source#78.offer("SAVE_TARGETS")
[3568973.879] {Default Queue}  -> wl_data_device#30.set_selection(wl_data_source#78, 291121707)
  1. Another offer call with "SAVE_TARGETS" is made after set_selection
  2. The same wl_data_source is used in set_selection twice

Perhaps this is also the reason why SAVE_TARGETS is the problematic mime type?

Blocks: wayland
Priority: -- → P3
Summary: Firefox does not close file descriptor → [Wayland] Firefox does not close file descriptor
You need to log in before you can comment on or make changes to this bug.