Open Bug 1948513 Opened 1 year ago Updated 23 days ago

Clipboard offers not fulfilled

Categories

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

Firefox 134
defect

Tracking

()

UNCONFIRMED

People

(Reporter: cJ-mozilla, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: gtk-severity-sweep-2026-10)

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

Steps to reproduce:

Copy an image from Firefox, and examine clipboard offers.

Actual results:

$ wl-paste --list-types | xargs
text/html text/_moz_htmlinfo text/_moz_htmlcontext image/png image/jpeg image/bmp image/x-bmp image/x-MS-bmp image/x-icon image/x-ico image/x-win-bitmap image/vnd.microsoft.icon application/ico image/ico image/icon text/ico image/jxl image/tiff image/webp audio/x-riff SAVE_TARGETS

$ for type in $(wl-paste --list-types); do mkdir -p mime/${type}; timeout 1 wl-paste --type ${type} > mime/${type}/data; done
$ tree -s mime
[ 74] mime
├── [ 8] SAVE_TARGETS
│   └── [ 0] data
├── [ 6] application
│   └── [ 8] ico
│   └── [ 0] data
├── [ 12] audio
│   └── [ 8] x-riff
│   └── [ 46642] data
├── [ 164] image
│   ├── [ 8] bmp
│   │   └── [ 2256054] data
│   ├── [ 8] ico
│   │   └── [ 0] data
│   ├── [ 8] icon
│   │   └── [ 0] data
│   ├── [ 8] jpeg
│   │   └── [ 95063] data
│   ├── [ 8] jxl
│   │   └── [ 0] data
│   ├── [ 8] png
│   │   └── [ 1172236] data
│   ├── [ 8] tiff
│   │   └── [ 0] data
│   ├── [ 8] vnd.microsoft.icon
│   │   └── [ 0] data
│   ├── [ 8] webp
│   │   └── [ 46642] data
│   ├── [ 8] x-MS-bmp
│   │   └── [ 2256054] data
│   ├── [ 8] x-bmp
│   │   └── [ 2256054] data
│   ├── [ 8] x-ico
│   │   └── [ 0] data
│   ├── [ 8] x-icon
│   │   └── [ 0] data
│   └── [ 8] x-win-bitmap
│   └── [ 0] data
└── [ 72] text
├── [ 8] _moz_htmlcontext
│   └── [ 0] data
├── [ 8] _moz_htmlinfo
│   └── [ 7] data
├── [ 8] html
│   └── [ 189] data
└── [ 8] ico
└── [ 1] data

26 directories, 21 files

Expected results:

  • each image/ mime type offer should have produced data; image/png, image/jpeg, image/webp do but not the others; why are the offers present then?
  • no audio/ offer
  • all offers return data without blocking (notice the timeout in the above command; some are blocking, never returning anything)
  • a clear mechanism for knowing what is the native format; right now the text/html offer is providing .jpg if an original jpeg image was provided, but this doesn't seem reliable

Is Firefox running natively under Wayland or is that XWayland? Which compositor / environment is that?
Thanks.

Blocks: gtkclipboard
Flags: needinfo?(cJ-mozilla)
Priority: -- → P3

Looks like I can reproduce it even for text targets, for instance COMPOUND_TEXT is missing. I wonder if that MIME comes from Gtk or so.

Firefox is running natively under Wayland. The compositor is wlroots-based (wayfire) but after discussing with its devs about this issue, it seems that there's no problem on the compositor side.

Flags: needinfo?(cJ-mozilla)
Severity: -- → S3
Whiteboard: gtk-severity-sweep-2026-10
You need to log in before you can comment on or make changes to this bug.