docs.google.com - Pasting from markdown option is unavailable
Categories
(Web Compatibility :: Site Reports, defect, P1)
Tracking
(Webcompat Score:6, Webcompat Priority:P1, firefox129 affected, firefox130 affected, firefox131 affected)
People
(Reporter: rbucata, Unassigned)
References
(Depends on 3 open bugs, Blocks 1 open bug, )
Details
(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline][webcompat:japan])
User Story
platform:windows,mac,linux impact:feature-broken configuration:general affects:all branch:release diagnosis-team:webcompat outreach-contact-date:2025-05-22 outreach-response-date:2025-05-22 user-impact-score:450
Attachments
(2 files)
Environment:
Operating system: Mac OS X 10.15
Firefox version: Firefox 129.0
Preconditions:
Markdown enabled
Steps to reproduce:
- Navigate to: https://docs.google.com/
- Perform account login and open any doc
- Type "# This is a markdown" inside the doc then copy the newly text inserted
- Using any pasting option, select "Paste from markdown" and observe
Expected Behavior:
Text is pasted
Actual Behavior:
Paste from Markdown is not available in Firefox
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in Firefox Nightly, and Firefox Release
- Does not reproduce in Chrome
Created from https://github.com/webcompat/web-bugs/issues/140397
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
| Comment hidden (obsolete) |
| Comment hidden (obsolete) |
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
There is if (chrome) {} else {openDialog()} which controls this popup.
https://docs.google.com/static/document/client/js/3683200486-client_js_prod_kix_tertiary.js
Line 186518 (pretty printed)
function () {
np.CHROME ? (e.Ma.setValue(!0), e.D.va(OFa).xb()) : e.fb.openDialog(NUp, {
})
}
Pausing in this function and faking chrome by evaluating Object.defineProperty(np, "CHROME", {value: true}) in the console would still hit another popup (which I think is already covered in webcompat?).
Comment 5•1 year ago
|
||
Comment 6•1 year ago
|
||
That second popup is shown because of that other check:
https://docs.google.com/static/document/client/js/1621481524-client_js_prod_kix_app.js
Line 20331 (pretty printed)
function iXg(a) {
if (a.H) a = !1;
else {
a: {
if (!a.F.Ga('docs-erpep')) {
var c = a.F.Ga('docs-ececs') && // Ga methods checks if an attribute exists on `window._docs_flag_initialData`, here window._docs_flag_initialData["docs-ececs"] is false on Firefox and c = false
mhb(),
d = Ko(Kia) >= 13; // Kia == "safari" and d = false
if (!c && !d) {
a = !1; /// We return false here and show the popup based on this boolean
break a
}
}
a = a.D.ld().queryCommandSupported(Pha)
}
a = !!(a || np.n0 || np.CHROME && np.bv(52) && Jwc(Nve, !1))
}
return a
}
Updated•1 year ago
|
Updated•1 year ago
|
Updated•10 months ago
|
Updated•8 months ago
|
Comment 7•8 months ago
|
||
Did we contact google on this? perhaps we should email google-mozilla-discuss?
Updated•6 months ago
|
Comment 9•6 months ago
|
||
The issue is similar to other in-app menu-triggered copy/paste cases. We'll receive more details on the previous discussion thread over the next week or so.
Updated•4 months ago
|
Comment 12•3 months ago
|
||
Hmm, I didn’t see any custom types being used when perform "Copy as Markdown", even in Chrome. I only see text/plain and text/html data in clipboard data (both in Firefox and Chrome). And if I do "copy as markdown" in Firefox, and then perform "paste from markdown" in Chrome, it works. So this means the data we put into clipboard is good for markdown feature.
One thing might be the problem is the document.execCommand("paste") which we do not support, but it is marked as deprecated, and there is async clipboard API which provide the same functionality now. We know that some paste function on Google Suite product can not move to use async clipboard API because of the lack of support for web custom format. But in this case, there is no custom format involved. It might be worth to ask google about this.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 13•28 days ago
|
||
Paste from markdown only works in Chrome with the Google Docs offline addon installed.
Updated•28 days ago
|
Comment 14•27 days ago
|
||
Added back the dependency on bug 1956304 because Google wants that before using the async clipboard API
Description
•