Open Bug 1962633 Opened 1 year ago Updated 5 months ago

remove newline when copy and pasting

Categories

(Core :: DOM: Serializers, enhancement)

Firefox 138
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: felix-mozilla, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0

Steps to reproduce:

I'm on Linux. Let's say I go to

https://techcrunch.com/2025/04/24/perplexity-ceo-says-its-browser-will-track-everything-users-do-online-to-sell-hyper-personalized-ads/

and I want to copy and paste the headline. I triple click on it, firefox marks it all in inverse so I know I am copying the right part. Then I copy it, either with Ctrl-C or via the X selection. And I paste it somewhere else.

Actual results:

There are unexpected newlines at the beginning and end of the copied text.

Expected results:

I would like Firefox to remove those.

If you are trying to copy and paste shell commands this could become a security problem, if you wanted to edit them before actually running them.

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

Component: Untriaged → Privacy: Anti-Tracking
Product: Firefox → Core
Component: Privacy: Anti-Tracking → DOM: Copy & Paste and Drag & Drop
Component: DOM: Copy & Paste and Drag & Drop → DOM: Serializers
Depends on: 1953174
You need to log in before you can comment on or make changes to this bug.