Open Bug 1245274 Opened 9 years ago Updated 1 year ago

JSON Viewer: support for plain text .json URL extensions

Categories

(DevTools :: JSON Viewer, defect, P3)

defect

Tracking

(firefox47 affected)

Tracking Status
firefox47 --- affected

People

(Reporter: jryans, Unassigned)

References

Details

(We attempted this once in bug 1230544, but it was backed out for breaking things.) ## Reach: JSON viewer on text/plain responses Many JSON URLs out there have no Content-Type header in the response or respond falsely with Content-Type:text/plain. Here’s one example: https://raw.githubusercontent.com/npm/npm/master/package.json Maybe there’s an opportunity for using the JSON viewer on URLs that end in “.json” when the Content-Type is null or text/plain. :clarkbw would like to try again: I think a critical piece of the original request was that links ending in .json which are also being rendered as plaintext. This URL is an example of what should be rendered in our viewer: https://raw.githubusercontent.com/npm/npm/master/package.json while this URL should be left alone as the content is coming through as HTML https://github.com/npm/npm/blob/master/package.json This patch seems to only look for links ending in .json and I can see that as being problematic, thus the back out in bug 1235118
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.