Open Bug 1729901 Opened 3 years ago Updated 2 months ago

[Snap] Drag&drop is not working when trying to open a link from other apps on Ubuntu 21.04

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

All
Linux
defect

Tracking

()

Tracking Status
firefox92 --- affected
firefox93 --- affected

People

(Reporter: mboldan, Unassigned)

Details

Attachments

(1 obsolete file)

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.
Has Regression Range: --- → no
Has STR: --- → yes

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?

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.

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.

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

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.

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.

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

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.

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.

Attachment #9387675 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: