[ www.muylinux.com] Firefox doesn't handle correctly the linebreaks after pasting on Disqus
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: debian.rpm, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Steps to reproduce:
Hi, I see that many linebreaks are added after pasting something in a comment. Firefox always put those additional linebreaks and it's very annoying when you try to write a comment with links, both explicit and inside an a tag.
Actual results:
Everytime I paste in a Disqus comment, Firefox for Linux puts a lot of linebreaks I didn't write.
I saw this behavior in a lot of versions of Firefox and on several distributions (Manjaro, Fedora, Ubuntu... ).
Expected results:
The amount of linebreaks I truly wrote respected.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
I just tried Firefox on X11 in Fedora 33 Workstation and it seems a bug related to Wayland, so I changed the title.
You're right but I can reproduce it on www.muylinux.com site only. when I paste URL to gedit or this bugzilla comment it works as expected, no newlines are added. Can you try to reproduce somewhere else?
Reporter | ||
Comment 3•4 years ago
|
||
You can try any website that uses Disqus for comments like 9to5linux. It seems a bug related to Disqus. With any Chromium browser the behavior of linebreaks is correct. https://9to5linux.com/geary-email-client-is-now-ready-for-gnome-40-with-fresh-new-look-improved-performance
By other hand, the linebreaks aren't handled correctly in YouTube Studio.
Reporter | ||
Comment 4•4 years ago
|
||
I can replicate, using non-Wayland Firefox: 90.0 (64-bit) for Ubuntu. Paste into a Disqus comment, I get extra lines between each paragraph. In these cases, I also get odd editing behavior in the comment, where the cursor will suddenly jump around, especially to the very end of the pasted text, while I'm trying to delete the blank lines.
In case it helps, the Ubuntu package is 90.0+build1-0ubuntu0.20.10.1
This has been happening for months, maybe years, but I just today realized it might be a Firefox bug rather than a Disqus bug.
This affects only html clipboard content. When html clipboard content is pasted to Disqus:
$ wl-paste --type "text/html"
<meta http-equiv="content-type" content="text/html; charset=utf-8"><p>
In order to keep Bugzilla a useful, inclusive place we have
guidelines which, by using this site, you agree to follow.
In addition, your participation on this site is also subject to the
<a href="https://www.mozilla.org/about/governance/policies/participation">Mozilla Community Participation Guidelines</a>.
</p>
<p>
Violations of Bugzilla Etiquette or the Mozilla Community Participation
Guidelines are grounds for curtailing your privileges on this site, or suspending
your account altogether.
</p>
The newlines and <p> paragraphs produces extra newlines. Disqus works OK when pain text is pasted.
I think the difference here is which MIME type is pasted and which is default - that may the difference here.
(In reply to Martin Stránský [:stransky] (ni? me) from comment #6)
The newlines and <p> paragraphs produces extra newlines. Disqus works OK when pain text is pasted.
I think the difference here is which MIME type is pasted and which is default - that may the difference here.
Data point: when I post plain text (ctrl-shift-v) it still does this weird behavior.
I'm getting the same results with X11 and the extra lines are not reproduced reliably. For instance when pasting from context menu I don't see any newlines (although there should be ones) and when pasting by keyboard I see newlines.
Looks like the site is running some script to update / format comments.
Comment 9•7 months ago
|
||
Yeah, I can confirm it but recently pasting has been broken completely:
See bug 1909124.
Description
•