Bug 1791417 Comment 11 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(Dragoon Aethis from comment #7)
> - **In KDE System Settings, uncheck Workspace Behavior -> General Behavior -> Middle Click: Paste Selected Text**
> - Log out and restart Firefox in Wayland mode.
> - Copying from Firefox into other apps no longer works.

Confirmed on KDE Wayland, Debian Testing.
If "Middle Click: Paste Selected Text" is disabled in KDE Settings>Workspace>General,
copying (Ctrl+C / context menu) text from Firefox' address bar into gedit/kate/konsole/etc no longer works,
but pasting the URL into Firefox still works
and copying text from websites to gedit/kate/konsole/etc also still works.

Copy (Ctrl+C) a dot from a text editor, try to copy from address bar, try to paste (Ctrl+V) into the text editor, and repeat.
$ MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --good 2021-05-01 --bad 2023-04-19 -a https://example.com
> 6:45.30 INFO: Last good revision: aca153106940b800cac068609f552fc82b2ba2d1 (2021-09-06)
> 6:45.30 INFO: First bad revision: 2bd46b2573e6e52f396483be1822021b475deb70 (2021-09-07)
> 6:45.30 INFO: Pushlog:
>https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=aca153106940b800cac068609f552fc82b2ba2d1&tochange=2bd46b2573e6e52f396483be1822021b475deb70

autoland builds are gone.
Two wayland changes in that change:
> 870c8ca46ce63b8011938d52b23a5c5904c7c9aa	stransky — Bug 1729424 [Wayland] Remove WindowSurfaceWayland backend r=rmader
> a4eff1c6ceaf2f25206702d0612f10382a01ed02	stransky — Bug 1729423 [Wayland] Enable async clipboard by default, r=rmader

Disabling widget.wayland.async-clipboard.enabled prevented the problem in the first bad build.
$ MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --launch 2021-09-07 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com

But the pref seems to be gone today, it no longer helps:
mozregression --launch 2023-04-20 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com

MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --good 2021-09-07 --bad 2023-04-20 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com
> 5:06.17 INFO: Last good revision: b9121c1a4330a9cd49f44100c6a29d69eec06eec (2022-01-27)
> 5:06.17 INFO: First bad revision: 32a2d1ce4bab2979c3be01244f100f000ca77d8e (2022-01-28)
> 5:06.17 INFO: Pushlog:
> https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b9121c1a4330a9cd49f44100c6a29d69eec06eec&tochange=32a2d1ce4bab2979c3be01244f100f000ca77d8e

autoland builds are gone.
The widget.wayland.async-clipboard.enabled pref has been removed by bug 1752503:
> 48e8fb0b62c587e64b43e9d51a0dff7fdf4b7b2c	stransky — Bug 1752503 [Wayland] Remove DataOffer class r=rmader
> b15e8c28c3772533128c9155abeb0ee6f3b5c0c1	stransky — Bug 1752503 [Wayland] Rename nsRetrievalContextWaylandAsync to nsRetrievalContextWayland r=rmader
> 7471ec11ddaacce1ae73118fcc0e49e1364fbcac	stransky — Bug 1752503 [Wayland] Rename nsClipboardWaylandAsync to nsClipboardWayland r=rmader
(Dragoon Aethis from comment #7)
> - **In KDE System Settings, uncheck Workspace Behavior -> General Behavior -> Middle Click: Paste Selected Text**
> - Log out and restart Firefox in Wayland mode.
> - Copying from Firefox into other apps no longer works.

Confirmed on KDE Wayland, Debian Testing.
If "Middle Click: Paste Selected Text" is disabled in KDE Settings>Workspace>General,
copying (Ctrl+C / context menu) text from Firefox' address bar and pasting (Ctrl+V) into gedit/kate/konsole/etc no longer works,
but pasting the URL into Firefox still works
and copying text from websites to gedit/kate/konsole/etc also still works.

Copy (Ctrl+C) a dot from a text editor, try to copy from address bar, try to paste (Ctrl+V) into the text editor, and repeat.
$ MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --good 2021-05-01 --bad 2023-04-19 -a https://example.com
> 6:45.30 INFO: Last good revision: aca153106940b800cac068609f552fc82b2ba2d1 (2021-09-06)
> 6:45.30 INFO: First bad revision: 2bd46b2573e6e52f396483be1822021b475deb70 (2021-09-07)
> 6:45.30 INFO: Pushlog:
>https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=aca153106940b800cac068609f552fc82b2ba2d1&tochange=2bd46b2573e6e52f396483be1822021b475deb70

autoland builds are gone.
Two wayland changes in that change:
> 870c8ca46ce63b8011938d52b23a5c5904c7c9aa	stransky — Bug 1729424 [Wayland] Remove WindowSurfaceWayland backend r=rmader
> a4eff1c6ceaf2f25206702d0612f10382a01ed02	stransky — Bug 1729423 [Wayland] Enable async clipboard by default, r=rmader

Disabling widget.wayland.async-clipboard.enabled prevented the problem in the first bad build.
$ MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --launch 2021-09-07 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com

But the pref seems to be gone today, it no longer helps:
mozregression --launch 2023-04-20 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com

MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_ENABLE_WAYLAND=1 mozregression --good 2021-09-07 --bad 2023-04-20 --pref widget.wayland.async-clipboard.enabled:false -a https://example.com
> 5:06.17 INFO: Last good revision: b9121c1a4330a9cd49f44100c6a29d69eec06eec (2022-01-27)
> 5:06.17 INFO: First bad revision: 32a2d1ce4bab2979c3be01244f100f000ca77d8e (2022-01-28)
> 5:06.17 INFO: Pushlog:
> https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b9121c1a4330a9cd49f44100c6a29d69eec06eec&tochange=32a2d1ce4bab2979c3be01244f100f000ca77d8e

autoland builds are gone.
The widget.wayland.async-clipboard.enabled pref has been removed by bug 1752503:
> 48e8fb0b62c587e64b43e9d51a0dff7fdf4b7b2c	stransky — Bug 1752503 [Wayland] Remove DataOffer class r=rmader
> b15e8c28c3772533128c9155abeb0ee6f3b5c0c1	stransky — Bug 1752503 [Wayland] Rename nsRetrievalContextWaylandAsync to nsRetrievalContextWayland r=rmader
> 7471ec11ddaacce1ae73118fcc0e49e1364fbcac	stransky — Bug 1752503 [Wayland] Rename nsClipboardWaylandAsync to nsClipboardWayland r=rmader

Back to Bug 1791417 Comment 11