Open Bug 1745190 Opened 3 years ago Updated 3 years ago

"Copy Response" truncates the response to 1MiB but does not indicate that the copied text is incomplete

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: mstange, Unassigned)

References

(Blocks 2 open bugs)

Details

What were you doing?

  1. Go to https://share.firefox.dev/3rSlxiK
  2. Open the network monitor.
  3. In the web page, click Profile Info -> Re-symbolicate profile
  4. Wait for the network requests to complete.
  5. Find the largest request to https://symbolication.services.mozilla.com/symbolicate/v5 .
  6. Right-click the row for that request and go Copy -> Copy Response
  7. Paste the response in a text editor.

What happened?

The pasted text was cut off after 1048576 characters.

What should have happened?

The pasted text should have been complete.
Alternatively, the fact that truncation happened should have been indicated to me somehow.

Thank you for the report, Markus!

Looks like you are hitting a limit for response bodies, which is defined by devtools.netmonitor.responseBodyLimit preference and the default value is (not surprisingly) 1048576 bytes. You can set the pref to 0 to disable it.

Alternatively, the fact that truncation happened should have been indicated to me somehow.

Yes, I agree, there should be some kind of notification.
Any tips what we could do in the UI to inform the user?

Honza

Severity: -- → S3
Priority: -- → P3

Hmm, maybe the simplest thing to do would be to add a string to the copied text. Maybe "!! Response truncated !! <truncated response here>".

You need to log in before you can comment on or make changes to this bug.