Created attachment 33179 [details]
Most JSON is from an XHR and thus its resource.type is "WebInspector.Resource.Type.XHR". This patch therefore tries to also highlight resources that have a mime type of 'application/json' and even further if the resource ends in the common extension names ".js" or ".json".
Created attachment 33180 [details]
Test Case attached:
1. Test an XHR returned with mime type 'application/json'
2. Test as XHR returned with extensions '.js' or '.json' ignoring query parameters
Everything works property with the patch. They are all black/white text in the current release.
Created attachment 33182 [details]
Added to the test page.
Committing to http://svn.webkit.org/repository/webkit/trunk ...
r46331 = 0b1049da038878886441c4299cc970f791be68d2 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk