Using "Copy message" on message with shortened links (with 3 dots in the middle) does copy the full link
Categories
(DevTools :: Console, defect, P3)
Tracking
(firefox112 fixed)
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: only.sarki, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
I am creating a website and to quickly obtain some urls from a database, to copy them to another place, I printed them in the console. With the aim of re-producing the problem, you can use:
console.log(['http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonogs_tag?alt=media&token=b5d50163-fc80-4ac0-9125-e5a820242d46',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonles_tag?alt=media&token=331bb7ab-6492-4c62-9b4b-0983678c0343',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonets_tag?alt=media&token=a75aa313-e55d-49d4-a4bd-b3bfa0bc3ce3',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonals_tag?alt=media&token=1bc1efc3-20ab-4892-ae45-0dab81e1675d',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonogs_tag?alt=media&token=4ae632da-1e55-464c-b9a1-670bdb1c734c',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonves_tag?alt=media&token=59058ff0-9bb3-4a3e-9825-aca43c58910b',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonogs_tag?alt=media&token=e5e4c095-e0dc-4e7b-8cad-a72fd33f46bc',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonnks_tag?alt=media&token=a2d569e9-d7bb-4adf-acc3-96c682393249',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonils_tag?alt=media&token=eaf94a2b-eb15-4fa2-b395-cc9a0e11db4f',
'http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-vanwatermelonand_tag?alt=media&token=61451044-28c3-4baf-9e88-0ec5b1c7aa75'].join('\n'));
Actual results:
Now, the links in the console are shortened (with the 3 dots) and they looks like this:
"http://localhost:9199/v0/b/mds2-83b34.appspot.com/o/tags-van…ogs_tag?alt=media&token=b5d50163-fc80-4ac0-9125-e5a820242d46"
and if I use the option "copy message" or "save all messages to file" they are still shortened.
Expected results:
I was expecting that using the option "copy message" or "save all messages to file" would actually copy the complete link
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Assignee | ||
Comment 4•1 year ago
|
||
We could workaround this by actually rendering the cropped part but hiding it visually (see https://phabricator.services.mozilla.com/D165805)
This is causing me problems as well, I'm having to find workaround to debug my javascript because I really need some way to get the full url out of the console.
It's also worth noting that even if there is sufficient horizonal width in the debug console to display the URL without truncation, the URL is still truncated. So in addition to fixing the copy function so the full URL is copied, the ideal fix would also be to make the truncation adapt to the available console width.
Updated•1 year ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0fe486a4b156 [devtools] Change how we render cropped URLs in String rep. r=bomsy.
Comment 7•1 year ago
|
||
bugherder |
Description
•