Bug 1792900 - Copy&paste from Firefox to konsole adds spurious carriage returns
Summary: Copy&paste from Firefox to konsole adds spurious carriage returns
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ffwayland
TreeView+ depends on / blocked
 
Reported: 2020-01-20 10:47 UTC by Jonathan Wakely
Modified: 2021-05-25 15:16 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-25 15:16:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jonathan Wakely 2020-01-20 10:47:56 UTC
Description of problem:

Copying text from Firefox onto the clipboard and then pasting it into konsole results in a popup warning about hidden unprintable characters.

It seems that \n is converted to \r\n by Firefox (or Gtk, or something).

Version-Release number of selected component (if applicable):

firefox-72.0.1-2.fc31.x86_64
konsole5-19.08.3-1.fc31.x86_64
kwin-5.17.5-1.fc31.x86_64
plasma-workspace-5.17.5-1.fc31.x86_64


How reproducible:

Always

Steps to Reproduce:
1. Run Firefox and konsole under KDE.
2. Select any multi-line piece of text in Firefox and copy to the clipboard.
3. Paste into the konsole window.

Actual results:

A popup appears warning about pasting hidden unprintable characters, specifically the \xd character, i.e. carriage return. See attached screenshot.

"The text you're trying to paste contains hidden unprintable characters, do you want to filter them out?"

Expected results:

No \xd characters, no popup from konsole.

Additional info:

If you select the "remove unprintable" button then the text is pasted correctly. If you select "confirm paste" then the \xd characters are converted to \xa (i.e. newline) and so every line break in Firefox becomes \n\n instead of \n, resulting in unwanted double-spacing. This can be confirmed by running xxd in the konsole window and inspecting the results of pasting and clicking "confirm paste".

This looks like https://bugzilla.mozilla.org/show_bug.cgi?id=1547595 and https://bugzilla.mozilla.org/show_bug.cgi?id=1605715 and https://gitlab.gnome.org/GNOME/gtk/issues/2307 except that as far as I know I'm not running the Wayland backend for firefox.

Pasting from Firefox to gvim or kwrite or google-chrome doesn't add carriage returns, only when pasting to konsole.

Comment 1 Jonathan Wakely 2020-07-21 16:28:43 UTC
In F32 this no longer shows the dialog complaining about unprintable characters, but instead the text that gets pasted is double-spaced. It looks like the carriage returns get converted to newlines, so that \r\n becomes \n\n

Comment 2 bra 2020-10-18 10:26:39 UTC
I can reproduce  the problem in F32 as described by Jonathan Wakely

Comment 3 Ben Cotton 2020-11-03 16:13:00 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2020-11-24 16:31:24 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Jonathan Wakely 2020-11-24 16:47:54 UTC
Reopening as the problem remains in F32 (though somewhat less severe as you don't get the irritating dialog).

Comment 6 Fedora Program Management 2021-04-29 16:02:17 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Ben Cotton 2021-05-25 15:16:48 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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