Closed Bug 1256235 Opened 9 years ago Closed 9 years ago

Rich text copy/paste does not preserve enough formatting between Google docs documents

Categories

(Core :: DOM: Serializers, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 860857
Tracking Status
firefox48 --- affected

People

(Reporter: julienw, Unassigned)

Details

Attachments

(2 files)

STR: 1. Open https://docs.google.com/document/d/129bP4zZPOxCNQzxmxnJPO8xTsyAi4ueerYuyO_S4VXE/edit?usp=sharing (Note: this page contains a table with same-width columns, only one of which has content; and an unordered list with custom bullets) 2. select everything (click in the document, press Ctrl+A), then copy (Ctrl+C) 3. open another google docs document in a different tab. 4. paste what you just copied (Ctrl+V) in that document. => notice some formatting were lost: columns are not same-width anymore, the list lost its custom bullets.
Some additional notes: 1. The STR works fine in Google Chrome. 2. I did the STR on Linux here, but to reproduce an issue I saw on someone else's windows computer. I couldn't check whether this STR reproduces on Windows. 3. Copy/pasting inside the same document works fine in Firefox. 4. Copy/pasting between a Google Document in Google Chrome and a Google Document in Firefox (either as a source or target) triggers the same issue I describe here.
I just tried copy from Google Docs to a simple contenteditable zone [1], I get the same result as this bug, both in Chrome and Firefox. So maybe it's a WebCompat bug instead ? [1] data:text/html,<div contenteditable=true style="min-height: 100px; border: 1px solid black">
My best guess is that G Docs in Chrome writes some custom clipboard format with more formatting data. If that's correct this is going to be a dup of bug 860857
It does write a number of entries into a "Chromium Web Custom MIME Data Format" clipboard part. One of the custom types is an application/x-vnd.google-docs-document-slice-clipwrapped - this is probably where the extra formatting survives..
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Yeah, this seems like this, thanks. I've seen users going away from Firefox to Chrome just because of this. :(
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: