Open Bug 1571630 Opened 5 years ago Updated 2 years ago

Remove WebConsoleUI setSaveRequestAndResponseBodies

Categories

(DevTools :: Console, task, P2)

task

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

The function is used to disable saving network calls response bodies for the browser console, claiming that it's not possible to display the response in the browser console.
But this is false, we do show requests like in the webconsole and you can expand them to inspect the response.

Honza, should we remove the "devtools.netmonitor.saveRequestAndResponseBodies" pref as well? It's only used from the console https://searchfox.org/mozilla-central/search?q=devtools.netmonitor.saveRequestAndResponseBodies&case=true&path=

Flags: needinfo?(odvarko)

Yes, I think we should remove it. I tested this and I see no reason to keep the pref.

Honza

Flags: needinfo?(odvarko)

We were assuming that the BrowserConsole couldn't display a Response
body for a given network call, but we actually can.
This is probably an old limitation we don't have anymore, so we can
remove the setSaveRequestAndResponseBodies and the associated piece
of code on the WebConsole actor.
We take this as an opportunity to remove the devtools.netmonitor.saveRequestAndResponseBodies
preference, that was only checked in the webconsole.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: