Open Bug 1791417 Opened 7 months ago Updated 13 days ago

[KDE] Can't paste URL into other applications when copying from address bar on Wayland

Categories

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

Firefox 105
defect

Tracking

()

UNCONFIRMED

People

(Reporter: graysonguarino, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

37.38 KB, text/plain
Details

Steps to reproduce:

  1. Select the URL in Firefox address bar
  2. Press Ctrl+C or choose "Copy" in context menu
  3. Try pasting in another app

This issue is confirmed to occur on both Mir and Weston.
Mir bug report here https://github.com/MirServer/mir/issues/2583

Actual results:

I can copy/paste URLs within Firefox, but the contents of the clipboard are not accessible from other applications.

Expected results:

Links should be pasteable into other applications.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

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

My testing has revealed that the problem occurs when the primary selection protocol (zwp_primary_selection_device_manager_v1) is not implemented, which explains why it only shows up on some compositors. Adding a stub implementation of the protocol to Mir makes this bug go away. Primary selection should not be required for copy/paste, and is not required for copy/paste in firefox in any context except copying out of the address bar.

I have the same thing with KDE Plasma under Wayland. A couple of notes in case it's useful, but it sounds like the root cause is already known.

  • It's still present in 110.0
  • Paste into firefox is unaffected
  • Copying from page content is unaffected
  • The bug is present whether the window protocol is wayland or xwayland
Priority: -- → P3
Summary: Can't paste URL into other applications when copying from address bar on Wayland → [KDE] Can't paste URL into other applications when copying from address bar on Wayland

Same issue in KDE Plasma under Wayland in Arch. Also if I copy something from firefox URL bar it will clear/replace clipboard with empty string or something. This also happens with firefox development edition 111.0b7 (64-bit).
I found a way to copy URL of website:
1.Bookmark the current website
2.Edit the bookmark and copy the url from there
it will work this way.

Attached file Wayland info
I am also hitting this on Fedora 37 KDE with Wayland.
When copying the URL from the URL bar, it will ONLY paste in Firefox. When copying from a webpage, it will paste in any other application.

From URL bar -> Firefox : Works.
From URL bar -> Other applications : Does not work.
From Webpage -> Other application & Firefox : Works.

Firefox 111.0.1
Fedora 37
KDE 5.27.3
KDE Framework 5.104.0
QT 5.15.8
Kernel 6.2.8-200.fc37
Graphics: NVIDIA GeForce RTX 2070 Super with Max-Q
Graphics Driver: 530.41.03

Wayland:
```

I am also hitting this on Fedora 37 KDE with Wayland.
When copying the URL from the URL bar, it will ONLY paste in Firefox. When copying from a webpage, it will paste in any other application.

From URL bar -> Firefox : Works.
From URL bar -> Other applications : Does not work.
From Webpage -> Other application & Firefox : Works.

Firefox 111.0.1
Fedora 37
KDE 5.27.3
KDE Framework 5.104.0
QT 5.15.8
Kernel 6.2.8-200.fc37
Graphics: NVIDIA GeForce RTX 2070 Super with Max-Q
Graphics Driver: 530.41.03

You need to log in before you can comment on or make changes to this bug.