Closed Bug 1542172 Opened 6 years ago Closed 6 years ago

Firefox freezes when inspecting large POST data

Categories

(DevTools :: Netmonitor, defect, P2)

defect

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: Honza, Assigned: hemakshis)

References

Details

Attachments

(1 file)

STR:

  1. Open DevTools, select the Network panel
  2. Check the Perist Logs check-box in the panel's toolbar (just to make sure to see POST request after navigation)
  3. POST big ~2MB file (e.g. using <form>, or XHR)
  4. Select the POST request in the list
  5. Select Params side panel tab -> Firefox freezes

Expected:
No freeze

This is caused by React, which is rendering large binary data in the UI.
We should use similar technique as for large responses, see bug 1498565.

Honza

Priority: -- → P3
Priority: P3 → P2

Hi @honza,

I was trying to reproduce the error, but don't know why I keep getting a 413 status saying POST data too large.
I'm using XHR to send the data. Using the data from http://api.nobelprize.org/v1/prize.json (although it's not too large < 2MB)
Here's the link I am using to reproduce it http://bugzilla-tests.glitch.me/bugs/1542172.
Can you please have a look?

Thanks!
Hemakshi

Flags: needinfo?(odvarko)

I am seeing the same error (413). It looks like the glitch.me server defines some limits for POSTed data.

I am testing with my local HTTP server, using a simple HTML <form method="post">

Honza

Flags: needinfo?(odvarko)

Hi @honza,

I was able to reproduce it (had to change the limit in my bodyParser).
So, I guess we have to use the same technique as done in Bug #1498565 ?

Flags: needinfo?(odvarko)

(In reply to Hemakshi Sachdev [:hemakshis] from comment #3)

I was able to reproduce it (had to change the limit in my bodyParser).
So, I guess we have to use the same technique as done in Bug #1498565 ?

I think so, but before that we should test whether the performance problem (in CodeMirror) isn't caused by one super long line (i.e. no new lines characters in the POST data body). (I've got a feedback that long lines could be an issue for Code Mirror)

Can you please check that?

Thanks!
Honza

Flags: needinfo?(odvarko)
Assignee: nobody → sachdev.hemakshi
Status: NEW → ASSIGNED

Truncate the Request Payload if it exceeds the `devtools.netmonitor.requestBodyLimit` pref and show `Request has been truncated` error in the Params Tab

Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8e100a978832 Firefox freezes when inspecting large POST data. r=Honza
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Regressions: 1546706
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: