Web Inspector: Breakpoints in sourceURL named scripts do not work
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Oct 2013 18:22:21 +0000 (18:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Oct 2013 18:22:21 +0000 (18:22 +0000)
commitc6c39247ea107a53ad8079b0e433e20b944fa89d
tree15e7c5214087b7177e23920029a22f682280bafb
parentfd20f8a196522bb0713077423952c5fb0e735250
Web Inspector: Breakpoints in sourceURL named scripts do not work
https://bugs.webkit.org/show_bug.cgi?id=123231

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-10-24
Reviewed by Timothy Hatcher.

Source/WebCore:

Remember a Script's sourceURL and sourceMappingURL. When setting a
breakpoint by URL, check it against the sourceURL or original URL.
If a script had a sourceURL that would have been the only URL sent
to the frontend, so that receives priority.

Test: inspector-protocol/debugger/setBreakpointByUrl-sourceURL.html

* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
(WebCore::InspectorDebuggerAgent::didParseSource):
* inspector/InspectorDebuggerAgent.h:
* inspector/ScriptDebugListener.h:

LayoutTests:

* inspector-protocol/debugger/setBreakpointByUrl-sourceURL-expected.txt: Added.
* inspector-protocol/debugger/setBreakpointByUrl-sourceURL.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector-protocol/debugger/setBreakpointByUrl-sourceURL-expected.txt [new file with mode: 0644]
LayoutTests/inspector-protocol/debugger/setBreakpointByUrl-sourceURL.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorDebuggerAgent.cpp
Source/WebCore/inspector/InspectorDebuggerAgent.h
Source/WebCore/inspector/ScriptDebugListener.h