Bug 1855084 - Firefox on Wayland doesn't get HTML formatting from clipboard
Summary: Firefox on Wayland doesn't get HTML formatting from clipboard
Keywords:
Status: CLOSED UPSTREAM
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:
TreeView+ depends on / blocked
 
Reported: 2020-07-08 22:18 UTC by Robin A. Meade
Modified: 2020-07-22 08:17 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-07-22 08:17:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Robin A. Meade 2020-07-08 22:18:48 UTC
Firefox doesn't get expected html formatting when pasting from clipboard

firefox.x86_64       78.0.1-1.fc32
wl-clipboard.x86_64  2.0.0-2.fc32

To reproduce:

In terminal:
echo '<b>Bold</b><i>Italics</i>Plain' | wl-copy --type text/html

Paste into a Google Doc in Firefox. Results is plain text of:
<b>Bold</b><i>Italics</i>Plain

I expected formatted text.
I get expected result if I repeat the steps in Chrome and LibreOffice Writer document.

Comment 1 Martin Stransky 2020-07-21 12:42:42 UTC
Can you test with firefox-x11 package?
Thanks.

Comment 2 Robin A. Meade 2020-07-21 22:45:54 UTC
I get same result for firefox-x11.

In terminal:
echo '<b>Bold</b><i>Italics</i>Plain' | wl-copy --type text/html

Paste into a Google Doc in firefox-x11 or firefox-wayland. Result, in both cases, is plain text of:
<b>Bold</b><i>Italics</i>Plain

Comment 3 Martin Stransky 2020-07-22 07:53:06 UTC
echo '<b>Bold</b><i>Italics</i>Plain' | wl-copy --type text/html

puts those targets at clipboard:

$xclip -o -t TARGETS

text/x-moz-url-priv
text/plain
text/plain;charset=utf-8
STRING
TEXT
COMPOUND_TEXT
UTF8_STRING
text/_moz_htmlinfo
text/_moz_htmlcontext
text/html
TARGETS
TIMESTAMP

echo '<b>Bold</b><i>Italics</i>Plain' | wl-copy

puts those targets at clipboard:

[komat@localhost ~]$ xclip -o -t TARGETS
text/plain
text/plain;charset=utf-8
STRING
TEXT
COMPOUND_TEXT
UTF8_STRING
TARGETS
TIMESTAMP

so the clipboard contains plain text along the html and other formats.

Comment 4 Martin Stransky 2020-07-22 08:17:11 UTC
Moving upstream - https://bugzilla.mozilla.org/show_bug.cgi?id=1654476
Thanks for the report!


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