Open Bug 1768148 Opened 2 years ago Updated 1 year ago

"Save all messages to file" in Firefox console saves truncated messages

Categories

(DevTools :: Console, defect, P3)

Firefox 100
defect

Tracking

(Not tracked)

ASSIGNED

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.

Component: Untriaged → Console
Product: Firefox → DevTools

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.

Severity: -- → S3
Priority: -- → P3
See Also: → 1777608

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

Assignee: nobody → nchevobbe
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.