Copying a styled `<table>` to the clipboard drops style
Categories
(Core :: DOM: Serializers, defect)
Tracking
()
People
(Reporter: clara.guerrero, Unassigned, NeedInfo)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
Affected versions]
release 77.0a1,
beta 78.0b8 (64-bit),
nightly 79.0a1 (2020-06-17) (64-bit)
[Affected platforms]
( macOS 10.14 (Mojave))
[Steps to reproduce]
1- Launch the Firefox Browser
2- Open https://docs.google.com/spreadsheets in firefox and an online html editor such as https://html-online.com/editor/ in chrome.
3- Create a table in google docs from firefox and copy in online editor from chrome.
4- Format does not respect original selection.
Now the other way around:
1- Launch chrome Browser
2- Open https://docs.google.com/spreadsheets in chrome and an online html editor such as https://html-online.com/editor/ in ff.
3- Create a table in google docs from chrome and copy in online editor from ff.
4- Format respects original selection.
[Expected result]
table should be pasted accordingly from chrome to ff, and from ff to chrome.
[Actual result]
Selection pasted is not correct.
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
This issue is reproducible on Nightly 80.0a1 (2020-07-22)(32-bit). I'll change flags accordingly.
Comment 3•4 years ago
|
||
Reproduces on Windows 7 using the latest Firefox 81 beta and Nightly 82.0a1.
Comment 4•4 years ago
|
||
This issue isn't specific for copying from Firefox to Chrome. It also happens when copying from on tab in Firefox to another tab. The CSS are dropped.
Reproducible by copying a styled table (e.g. https://www.w3schools.com/html/html_tables.asp) to data:text/html,<div contenteditable>x</div>
.
Comment 7•4 years ago
|
||
Freddy, you probably want to look at this as part of your sanitizer work.
Comment 8•4 years ago
|
||
If I create a table in excel in Chrome with a hyperlink in one of the cells (=HIPERVINCULO("https://www.facebook.com/ ";" [link]")), when I paste it to FF, only [link] is copied, underlined and blue.
Comment 9•3 years ago
|
||
Couldn't reproduce the issue anymore.
Comment 10•3 years ago
|
||
Please note that the issue still occurs for certain stylings when copied across browser. Below you can see my findings:
Use a customized table (with table border colors).
From Chrome - Gsheet to Fx - Gsheet
- table border color is lost
From Chrome Ghseet to Fx - Office sheet
- outside border color is lost, inside border color is kept
- alignment is lost
- bolded link styling is lost
Comment 11•3 years ago
|
||
Also, header styling is not displayed as well when copied from the Excel Firefox tab to another Firefox Google Sheet tab on 93.0b6. See attached screen recording.
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Test case from bug 1786890 still exhibiting this on 106.0a1
Comment 14•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:hsivonen, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Description
•