Closed
Bug 2060972
Opened 2 months ago
Closed 1 month ago
Show content-type: text/jsonl responses with the JSON Viewer
Categories
(DevTools :: JSON Viewer, task)
DevTools
JSON Viewer
Tracking
(firefox155 fixed)
RESOLVED
FIXED
155 Branch
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: mathew.hodson, Assigned: benoit.goupilleau)
References
Details
Attachments
(1 file)
content-type: text/jsonl seems to be a popular MIME type used for JSONL, and that wasn't adding in bug 2055774 as one of the supported types. I found the following example at https://docs.servicestack.net/jsonl-format
Example that uses content-type: text/jsonl
https://blazor-gallery.servicestack.net/albums.jsonl
Comment 1•2 months ago
|
||
Benoit, do you want to have a look at this?
Flags: needinfo?(benoit.goupilleau)
text/jsonl is a common spelling for JSON Lines (e.g. ServiceStack serves
it) that bug 2055774 did not cover, so such responses fell through to the
plain text path instead of the JSON Viewer.
Accept it in the sniffer alongside the application/ spellings, and in
fixSave() so Save As restores the served type rather than falling back to
application/jsonl.
Updated•1 month ago
|
Assignee: nobody → benoit.goupilleau
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/a42cbce518dc
https://hg.mozilla.org/integration/autoland/rev/5b2d85da895a
Show text/jsonl responses with the JSON Viewer r=nchevobbe,devtools-reviewers
Comment 4•1 month ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in
before you can comment on or make changes to this bug.
Description
•