Closed Bug 1194777 Opened 10 years ago Closed 2 years ago

Support "json" or "data" as one of the network request filters

Categories

(DevTools :: Netmonitor, enhancement)

All
Unspecified
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: glind, Unassigned)

References

(Blocks 2 open bugs)

Details

Current set is "All | HTML | CSS | ...". 'json' would be a nice addition.
Product: Firefox → DevTools
Severity: normal → S3

JSON currently shows up under the XHR filter, would the idea be to rename that or split this out to another one?

Flags: needinfo?(odvarko)

We definitely want to keep the XHR filter (maybe rename it, see Bug 1706797)

Not sure about adding a JSON filter
They're not necessarily tied to XHR (you can see it just navigating to a URL that returns JSON (e.g. https://api.github.com/)
There's also this proposal to be able to import json file: https://github.com/tc39/proposal-json-modules

we'll talk about it with the rest of the team

Whiteboard: [devtools-triage]

Note that you can filter the list of requests by using the filter box.
Use: mime-type:application/json

See more in DevTools User docs:
https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_list/#filtering-by-properties

Flags: needinfo?(odvarko)

Thanks for the interest, given the existing filtering feature, we can probably avoid this new filter.
Instead we should make the filtering syntax easier to learn about.

One idea is to improve the placeholder text of the filter to show example syntax.
Another idea would be to apply the filter from a button as filter syntax for the input (eg click on Image and the input gets filled with the appropriate text)

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
Whiteboard: [devtools-triage]
You need to log in before you can comment on or make changes to this bug.