paste of url from Google Sheets/'Get link to this cell' fails in Slack
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P2)
Tracking
()
Webcompat Priority | P1 |
People
(Reporter: aryx, Assigned: mbrodesser)
References
Details
Pasting of urls from Google docs/sheets 'Get link to this cell' fails in Slack.
- Open a google sheet.
- RIght-click a cell with.
- Select 'Get link to this cell'.
- Try to paste it into a Slack channel.
Actual result: Version:0.9 StartHTML:00000097 EndHTML:00000167 StartFragment:00000131 EndFragment:00000131
Expected result: Something like https://docs.google.com/spreadsheets/d/<string>/edit?skip_itp2_check=true#gid=1756929076&range=D25
Fails with Firefox Nightly 78.0a1 and 76.0.1, works in latest Chrome.
Comment 1•2 years ago
|
||
Hi aryx, this doesn't reproduce for me in Nightly on mac. Does it still for you?
![]() |
Reporter | |
Comment 2•2 years ago
|
||
It still reproduces with Firefox 78.0a1 20200526023857 on Windows here.
Comment 3•2 years ago
|
||
Thanks, will test Windows.
Comment 4•2 years ago
|
||
Hm, this is maybe a super old regression?
It's weird though, this is Windows platform code for setting to the clipboard, AFAICT: https://searchfox.org/mozilla-central/source/widget/windows/nsDataObj.cpp#1953-1958
Mozregression only got me this far: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=bd4cebdbed4bcd34d449f67d51f139f9bdf75edc&tochange=8991d660f20e3eea652e060c30e17670b45a9257
Bug 1493292 could be related? Tom, could your change (from 2018!) be related to the reported issue?
Comment 5•2 years ago
|
||
Could be. I don't know. This code is super complicated and barely tested or testable. I don't currently develop on Windows so I can't help with this at the moment.
Comment 6•2 years ago
|
||
OK, thanks for checking. Probably it would be most useful for us to come up with a reduced test case here (welp).
Comment 7•2 years ago
|
||
This appears to be fixed now, which could mean we fixed something, Slack fixed something, or GDocs fixed something (least likely).
Sebastian, can you verify? On Windows Nightly 81, I was able to create the following link and paste it into slack:
![]() |
Reporter | |
Comment 8•2 years ago
|
||
Hi Mike, the behavior is unchanged with Windows Nightly 81 (20200807093158) here, even if I open your doc, copy the link and then Try to paste it in Slack.
Comment 9•2 years ago
|
||
Oh interesting (but also, confusing). Thanks for checking.
Comment 10•2 years ago
|
||
Comment 0 happens to me when pasting into Google Docs, too. If I paste into the URL bar it shows properly and then I can copy/paste that into the thing I want.
Jens, can you add investigation of the clipboard behaviour here to the DOM team's backlog? Thanks.
Comment 11•2 years ago
|
||
Mirko, can you link this to an appropriate meta bug? Thank you!
Assignee | ||
Comment 12•2 years ago
|
||
Interesting. It works with Chrome. Chrome adds only the
"text/plain" flavor to the clipboard:
https://docs.google.com/spreadsheets/d/1qGuCD9VInnUpH4juGPyHwu9UmLOcZNNpAglpCp4yAuE/edit#gid=0&range=A1
Whereas Firefox adds
"text/html" flavor:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
and
"text/plain" flavor:
https://docs.google.com/spreadsheets/d/1qGuCD9VInnUpH4juGPyHwu9UmLOcZNNpAglpCp4yAuE/edit#gid=0&range=A1
The fix in this case is presumably to not export the "text/html" flavor at all. I'm not aware of any meta-bug for clipboard-bugs in general. This could also be a bug of Google Docs Spreadsheets. It needs further analysis. Removing priority and severity so that it reappears on our radar.
Karl-san, could you investigate the implementation before reporting Google?
![]() |
||
Comment 14•2 years ago
|
||
Hmmm I can't reproduce on macOS as said at the beginning of the issue.
Oana, What does it give on windows in the latest nightly?
<div class="goog-menuitem apps-menuitem" role="menuitem" style="user-select: none;" id="ek6kyw:2tq">
<div class="goog-menuitem-content"><span class="goog-menuitem-label">Get link to this cell</span></div></div>
But given the way the code is minified is usually quite quick to ask Google directly.
![]() |
||
Updated•2 years ago
|
Comment 15•2 years ago
|
||
Karl I can reproduce it on Windows, nothing is pasted on Slack.
Tested with:
Browser / Version: Firefox Nightly 85.0a1 (2020-12-06)
Operating System: Windows 10 Pro
Comment 12 suggests this is rather exceptionally bad.
![]() |
||
Updated•2 years ago
|
Assignee | ||
Updated•11 months ago
|
Comment 17•11 months ago
|
||
Karl, do you know if a bug was filed with Google, so I can check on status? Thanks.
(I no longer have access to the mailing list archives to double check).
Assignee | ||
Comment 18•11 months ago
|
||
(In reply to Mike Taylor [:miketaylr] from comment #17)
Karl, do you know if a bug was filed with Google, so I can check on status? Thanks.
(I no longer have access to the mailing list archives to double check).
No bug was filed for this. I'm investigating this issue as part of bug 1722711, for which I'm currently trying to determine if it's a duplicate of this one. Will contact Google when the latter has been resolved.
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 19•11 months ago
|
||
Contacted Google-developers about this. It's likely a bug in Google Sheets. Will update this ticket accordingly.
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 20•10 months ago
|
||
It's still broken. Contacted Google-developers again.
Assignee | ||
Comment 21•9 months ago
|
||
Google-developers claim to have fixed this. Works on Ubuntu 20.04.
Comment 22•9 months ago
|
||
I can no longer reproduce the issue on my side either. The link cell link is pasted on Slack.
https://prnt.sc/1u841xv
Tested with:
Browser / Version: Firefox Nightly 94.0a1 (2021-09-29)
Operating System: Windows 10 Pro
Description
•