[Webkit-unassigned] [Bug 122898] Web Inspector: JSON may not be pretty printed if served as text/html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 16 10:59:12 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122898





--- Comment #5 from Timothy Hatcher <timothy at apple.com>  2013-10-16 10:57:57 PST ---
An option to fixing this would be to allow the user to change/force a different MIME-type in the UI, which will affect the syntax highlighting and in turn the pretty printing.

That would be useful for subtle dialects like SASS or LESS that might get the wrong MIME-type on the server.

The next obvious approach (which Dave mentions) would be to second guess the server MIME-type and sniff the content to make the guess about the correct MIME-type.

I think we should consider doing both of these things (user selectable type in the sidebar and content sniffing for obvious content types).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list