Web Inspector: Provide a way to distinguish scripts having sourceURL from standalone scripts.
https://bugs.webkit.org/show_bug.cgi?id=97231
Reviewed by Pavel Feldman.
Source/WebCore:
DebuggerAgent now scans scripts for sourceURL comment and provides
hasSourceURL flag for each non-inline script with such a comment.
* bindings/js/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::dispatchDidParseSource):
* inspector/Inspector.json:
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::didParseSource):
* inspector/front-end/DebuggerModel.js:
(WebInspector.DebuggerModel.prototype._parsedScriptSource):
(WebInspector.DebuggerDispatcher.prototype.scriptParsed):
* inspector/front-end/Script.js:
(WebInspector.Script):
LayoutTests:
* inspector/debugger/source-url-comment-expected.txt:
* inspector/debugger/source-url-comment.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk/LayoutTests@130138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed