Currently if resource content is loaded too fast, SourceFrame doesn't get all the scripts, so SourceFrame should listen for parsed script events itself.
Created attachment 76865 [details]
Comment on attachment 76865 [details]
I don't think SourceFrame should listen to parsed script events.
Created attachment 76870 [details]
Add scripts parsed after resource load to SourceFrame.
Comment on attachment 76870 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=76870&action=review
> + var view = WebInspector.ResourceManager.resourceViewForResource(resource);
You should use WebInspector.ResourceManager.existingResourceViewForResource not to create it unless necessary.
Created attachment 76875 [details]
Committed r74261: <http://trac.webkit.org/changeset/74261>