Firefox Snap can't copy&paste or drag&drop in Wayland

Bug #1947210 reported by Tommy Trussell
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Confirmed
Unknown
firefox (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I just upgraded to 21.10 Impish which supplies Firefox 93.0-1 via snap. I could not copy and paste to and from the browser. I logged out of Wayland and into Xorg and copy & paste works.

Already reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1729901 so it's a known issue.

I wanted to report it here so it gets into the Impish release notes or wherever along with the workaround.

Tags: wayland snap
Revision history for this message
In , Mihai-boldan (mihai-boldan) wrote :

**Note**
* This issue is not reproducible on normal Firefox builds (Firefox 92.0b3), or on other versions of Ubuntu (20.04, 18.04)
* The Ubuntu 21.04 OS under test is a VM.

**Affected versions**
* Firefox 92.0-build3 snap
* Firefox 92.0b2 snap build

**Affected platforms**
* Ubuntu 21.04 x64

**Steps to reproduce**
1. Open Firefox Snap build.
2. Drag and drop a link from another app(eg. Skype) in Firefox.

**Expected result**
* The selected link is opened in Firefox.

**Actual result**
* Nothing happens.

**Regression range**
* Not sure if this is a regression. Will search asap.

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

I'm partially observing the issue here:
 - selecting a full URL (e.g. `http://example.org`) in a text editor such as gedit, dragging it to the firefox window and dropping it there opens the URL as expected
 - however dragging a hyperlink as rendered by a rich text widget or webview (for example another browser application) and dropping it on the firefox window doesn't open the corresponding URL

This latter use case doesn't appear to be working with firefox installed as a deb package either, though.
This requires more investigation, but at a first glance it doesn't appear to be a snap-specific problem. Maybe a wayland-specific problem?

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

Just tested in a Xorg session on Ubuntu 21.04, and drag'n'drop of hyperlinks works there with the firefox snap, so it's indeed a wayland-specific problem. Can the title be updated to reflect this? I'll investigate further.

Revision history for this message
In , Tommy Trussell (tommy-trussell) wrote :

I just upgraded to Ubuntu 21.10 "Impish" and noticed this in Wayland. The snap is currently supplying Firefox 93.0-1. As mentioned above, logging into Ubuntu via Xorg makes copy&paste and drag&drop functional.

Changed in firefox:
status: Unknown → Confirmed
tags: added: wayland
Revision history for this message
Olivier Tilloy (osomon) wrote :

Copy-pasting works well for me in a Wayland session, and drag'n'drop works partially, as described in the upstream bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1729901#c1).

I'm using the snap from the beta channel though, maybe that makes a difference with the stable one? Tommy, would you mind testing the beta version and reporting whether it fixes copy/pasting for you?

    snap refresh firefox --beta

Thanks!

Changed in firefox (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
In , Olivier Tilloy (osomon) wrote :

I wonder if the problem is caused by the source application being an XWayland client, whereas the firefox snap runs natively on Wayland?

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

Also of interest: this doesn't appear to be a snap-specific problem. I can observe the issue with upstream builds downloaded from https://www.mozilla.org/firefox/download/, when run with `MOZ_ENABLE_WAYLAND=1`.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue sounds somewhat similar to bug #1913775 , could you check which version of GTK you have installed and if the update from the other report fixes the issue?

Revision history for this message
Tommy Trussell (tommy-trussell) wrote :

My apologies to everyone who responded since I reported it in October -- apparently I missed seeing the notifications for this bug. I also installed a deb version and have been logging in via xorg to avoid it, and another bug affecting Zoom under Wayland.

I just installed the current stable snap version and logged in via Wayland and copy/paste and drag/drop seem to be working fine both ways.

Should I mark the bug resolved or is that my responsibility?

Revision history for this message
Tommy Trussell (tommy-trussell) wrote :

@Sebastien Bacher (@seb128) I tried the procedure in Bug #1913775 and saw some strange behavior but I believe it must not be exactly the same issue. The bug I originally reported seems to be resolved in Firefox 97.0 snap

Revision history for this message
Olivier Tilloy (osomon) wrote :

Excellent, thanks for following up Tommy. I'm glad the issue is resolved. I'm closing this here, would you mind closing the upstream bug report (https://bugzilla.mozilla.org/show_bug.cgi?id=1729901) yourself?

Changed in firefox (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
In , Tommy Trussell (tommy-trussell) wrote :

I am not the bug reporter but I am finding that copy / paste & drag / drop in the Firefox snap is working under Wayland now. The current stable release of the snap of Firefox is 97.0; I don't know when it started working as I was using a .deb version of Firefox under xorg for other reasons.

Revision history for this message
In , Tommy Trussell (tommy-trussell) wrote :

I do not know how to add "Wayland" to the bug summary, nor do I know how to flag this for possible closing.

Revision history for this message
Erkin Alp Güney (erkinalp9035) wrote :

Re-emerged in 22.04 after Firefox became snap-only.

Revision history for this message
cesar (paschubu) wrote :

i install the ubuntu 22.04 last nite and firefox have a very bad problem with the drag and drop, specially in customize toolbar... i cant arrange nothing, and worst the icon of the extension, disappear, and the only way to put again in place is reinstall the extension... i think really, install the esr version of firefox...

Revision history for this message
cesar (paschubu) wrote :

btw, in esr firefox all working... so, something else is making this kind of thing in firefox snap.

Revision history for this message
In , Gre0 (gre0) wrote :

Since a few weeks I use Ubuntu 22.04, and I can't move (Drag&Drop) tabs in Firefox (Snap now on 98.0.2, Wayland).
Moving tabs to the bookmarks to save them does not work either.

Revision history for this message
Gre0 (gre0) wrote :

Using Ubntu 22.04 since some weeks now.

Rearrange/Move tabs/Bookmarks with Drag&Drop does also not work here on Wayland Session.
(Firefox Snap 98.0.2-1, also tried beta 99.0b8-1)

At XOrg-Session Drag&Drop works.

Is this important? > https://gitlab.gnome.org/GNOME/gtk/-/issues/4437

Revision history for this message
In , L-me-0 (l-me-0) wrote :

I can confirm with the user directly above that I am experiencing the same behaviour on 22.04. If it's any clue as to what has happened, the flatpak version of Firefox works absolutely fine. It's just the snap version.

Revision history for this message
Thomas M Steenholdt (tmus) wrote :

Still a problem here. I'm on 22.04 with all updates (including proposed) installed, latest firefox snap (99.0-2, rev 1188).

Revision history for this message
Kevin Keijzer (kkeijzer) wrote :

Copy/paste works for me, but drag/drop does not. I can't even rearrange tabs or bookmarks.

Revision history for this message
In , Igirish3806 (igirish3806) wrote :

Created attachment 9387675
same problem

Thanks from xgaminrecca1980.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.