MicrosoftEdge / DevTools

Feedback and discussions about Microsoft Edge Developer Tools
MIT License
154 stars 51 forks source link

DevTools Network tool should be able to import NetLog files, as it does for HAR files #4

Open captainbrosset opened 2 years ago

captainbrosset commented 2 years ago

This was originally reported by @ericlaw1979 on twitter: https://twitter.com/ericlaw/status/1498817513362276356

The idea is: the DevTools Network tool already allows importing HAR files (which you can capture in a number of ways: from DevTools, or puppeteer, or others), and it would be good if it also allowed importing NetLog JSON files.

You can read more from Eric himself about NetLog here: https://textslashplain.com/2020/04/08/analyzing-network-traffic-logs-netlog-json/

You can capture NetLog files from a chromium-based browser by going to about:net-export.

ericlaw1979 commented 2 years ago

As context: Netlog JSON files have higher fidelity than what HAR import/export offers, and as a consequence getting a Netlog is often preferable to getting a HAR file. However, visualizing HAR files can be easier/more convenient than visualizing Netlogs, especially as a part of initial analysis (e.g. so you know which URLRequests to examine using the NetLog viewer tool).

If we could enable the F12 Net tab to import Netlog JSON files, we could make analysis of such files simpler.