Firefox freezes when inspecting large POST data
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: Honza, Assigned: hemakshis)
References
Details
Attachments
(1 file)
STR:
- Open DevTools, select the Network panel
- Check the Perist Logs check-box in the panel's toolbar (just to make sure to see POST request after navigation)
- POST big ~2MB file (e.g. using <form>, or XHR)
- Select the POST request in the list
- 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
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
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
Reporter | ||
Comment 2•6 years ago
|
||
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
Assignee | ||
Comment 3•6 years ago
|
||
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 ?
Reporter | ||
Comment 4•6 years ago
|
||
(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
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
Truncate the Request Payload if it exceeds the `devtools.netmonitor.requestBodyLimit` pref and show `Request has been truncated` error in the Params Tab
Comment 7•6 years ago
|
||
bugherder |
Description
•