Open Bug 1646515 Opened 4 years ago Updated 2 years ago

Copying a styled `<table>` to the clipboard drops style

Categories

(Core :: DOM: Serializers, defect)

defect

Tracking

()

REOPENED
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 --- wontfix
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- affected
firefox80 --- affected
firefox81 --- affected
firefox82 --- affected
firefox84 --- affected
firefox93 --- affected

People

(Reporter: clara.guerrero, Unassigned, NeedInfo)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Attached video firefox to chrome.mov

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.

This issue is reproducible on Nightly 80.0a1 (2020-07-22)(32-bit). I'll change flags accordingly.

Reproduces on Windows 7 using the latest Firefox 81 beta and Nightly 82.0a1.

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>.

Summary: Copying table from firefox to chrome does not respect format as from chrome to firefox when using HTML editor. → Copying a styled `<table>` to the clipboard drops style

Freddy, you probably want to look at this as part of your sanitizer work.

Component: DOM: Selection → DOM: Serializers

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.

Couldn't reproduce the issue anymore.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

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
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Attached image header_00.gif

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.

See Also: → 1772785

Test case from bug 1786890 still exhibiting this on 106.0a1

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.

Flags: needinfo?(hsivonen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: