"Save all messages to file" in Firefox console saves truncated messages
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
People
(Reporter: fiammanda, Assigned: nchevobbe)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
"Save all messages to file" in console
Actual results:
Messages in saved file are truncated
Expected results:
I understand that truncation of messages is needed by design as in explained in Bug 1418382, however when saving the result I would expect it to save full ones.
I have like 100+ long messages and it would be impossible to click them one by one to expand.
Assignee | ||
Comment 1•3 years ago
|
||
Yeah, unfortunately we don't have a good answer for that at the moment, as we're getting the content we put in the file from the console underlying DOM.
Assignee | ||
Comment 2•2 years ago
|
||
When we introduced virtualization, we had to find a solution for export, and so what we do is that we render all the messages in a hidden element just to get the text content (see https://searchfox.org/mozilla-central/rev/f24503d2f5d8b7e4341be8bc20d94a04a6b223d6/devtools/client/webconsole/utils/context-menu.js#307-367)
So we could either pass a new prop, or use the existing one, to control the cropping of URLs (we might even not try to linkify URL at all since they're going to be plain text in the end)
This wouldn't help with Bug 1777608 though, but it could be a good first step
Description
•