Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Feature Suggestion/Request: Keep latest request(s) saved even if DevTools is not open

57 views
Skip to first unread message

Nikunj Bhatt

unread,
Oct 12, 2020, 6:31:10 AM10/12/20
to mozilla-dev-d...@lists.mozilla.org
If DevTools is not open then the sent requests are not saved, if DevTools is open then only the requests are saved/logged in the Network panel. (Although this is not same for JavaScript/Console messages!) If any error occurs on server or to know the response of the server for the last request then developer has to re-request to see what is/was the error/response.

Either all requests should be logged/saved in Network panel, or at least last POST and AHR (XHR) request should be logged/saved after the last loading of the page even if the DevTools is not open.

An option in DevTools' settings may be provided to select the kind and/or input the number of request to log/save.

I have requested same feature for Chromium too: https://bugs.chromium.org/p/chromium/issues/detail?id=1136198

Jan Odvarko

unread,
Oct 12, 2020, 7:14:13 AM10/12/20
to Nikunj Bhatt, dev-developer-tools dev
Thanks for reaching out!

Logging all HTTP traffic has an impact on performance and memory consumption and it shouldn't affect non DevTools users.
So it's disabled when DevTools are *not* opened.

Note that installing a Web Extension and registering a listener for ` devtools.network.onNavigated ` or ` devtools.network.onRequestFinished` forces DevTools to record HTTP traffic immediately as they are opened by the user - no need to select the Network panel. If no such extension is loaded, you need to do the following to ensure that HTTP traffic is recorded (1) Open DevTools and (2) Select the Network panel at least once.


Honza

_______________________________________________
dev-developer-tools mailing list
dev-devel...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-developer-tools

Codacodr

unread,
Oct 12, 2020, 8:51:05 AM10/12/20
to dev-devel...@lists.mozilla.org
Sounds to me like that's something Developer Edition might be used for.

#justsaying

Nikunj Bhatt

unread,
Oct 14, 2020, 4:57:45 AM10/14/20
to mozilla-dev-d...@lists.mozilla.org
I know that logging all HTTP traffic can impact performance and memory consumption, that's why I have suggested to provide an option in settings of DevTools through which developer can specify whether to log the request(s) or not, and how many last requests to log.

For the matter of performance and memory consumption, I recommend to provide only one checkbox like "Log last POST and AHR request even if DevTools is not open" in DevTools settings, on checking which only the last POST and AHR request is logged. By default this option should be disabled, so non-dev user's performance doesn't get affected.

Jan Odvarko

unread,
Oct 14, 2020, 5:00:22 AM10/14/20
to Nikunj Bhatt, dev-developer-tools dev
> For the matter of performance and memory consumption, I recommend to provide only one checkbox like "Log last POST and AHR request even if DevTools is not open" in DevTools settings, on checking which only the last POST and AHR request is logged. By default this option should be disabled, so non-dev user's performance doesn't get affected.

I see, can you please file a bug, so it isn't lost here in the noise.
You can use this link:

Thanks,
Honza

On Wed, Oct 14, 2020 at 10:57 AM Nikunj Bhatt <nikunj...@gmail.com> wrote:
I know that logging all HTTP traffic can impact performance and memory consumption, that's why I have suggested to provide an option in settings of DevTools through which developer can specify whether to log the request(s) or not, and how many last requests to log.

For the matter of performance and memory consumption, I recommend to provide only one checkbox like "Log last POST and AHR request even if DevTools is not open" in DevTools settings, on checking which only the last POST and AHR request is logged. By default this option should be disabled, so non-dev user's performance doesn't get affected.

On Monday, October 12, 2020 at 4:44:13 PM UTC+5:30, odv...@gmail.com wrote:

Nikunj Bhatt

unread,
Oct 20, 2020, 5:19:54 AM10/20/20
to mozilla-dev-d...@lists.mozilla.org
Here is the link to the bug in Mozilla's Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1671256
0 new messages