Web Inspector: debugger and browser debugger agents should manage sticky breakpoints independently. This is a second step of debugger api refactoring (see bug 52879).
Created attachment 79904 [details] Patch.
Attachment 79904 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InspectorBrowserDebuggerAgent.h:61: The parameter name "breakpoints" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/inspector/InspectorDebuggerAgent.h:64: The parameter name "breakpoints" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 79906 [details] Fix style.
Comment on attachment 79904 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=79904&action=review > Source/WebCore/inspector/front-end/BreakpointManager.js:333 > + InspectorBackend.setAllJavaScriptBreakpoints(allJavaScriptBreakpoints); Why do we push JavaScript breakpoints to the backend?
(In reply to comment #4) > (From update of attachment 79904 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=79904&action=review > > > Source/WebCore/inspector/front-end/BreakpointManager.js:333 > > + InspectorBackend.setAllJavaScriptBreakpoints(allJavaScriptBreakpoints); > > Why do we push JavaScript breakpoints to the backend? Because JavaScript breakpoints are persisted in localStorage, and we have to sync them with backend when loading inspector.
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 79904 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=79904&action=review > > > > > Source/WebCore/inspector/front-end/BreakpointManager.js:333 > > > + InspectorBackend.setAllJavaScriptBreakpoints(allJavaScriptBreakpoints); > > > > Why do we push JavaScript breakpoints to the backend? > > Because JavaScript breakpoints are persisted in localStorage, and we have to sync them with backend when loading inspector. I thought we agreed that there should be no explicit setAllJavaScriptBreakpoints method.
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (From update of attachment 79904 [details] [details] [details]) > > > View in context: https://bugs.webkit.org/attachment.cgi?id=79904&action=review > > > > > > > Source/WebCore/inspector/front-end/BreakpointManager.js:333 > > > > + InspectorBackend.setAllJavaScriptBreakpoints(allJavaScriptBreakpoints); > > > > > > Why do we push JavaScript breakpoints to the backend? > > > > Because JavaScript breakpoints are persisted in localStorage, and we have to sync them with backend when loading inspector. > > I thought we agreed that there should be no explicit setAllJavaScriptBreakpoints method. In this change JavaScript breakpoints are separated from browser breakpoints to simplify further refactoring. Later we'll get rid of setAllBreakpoints protocol methods.
Committed r76581: <http://trac.webkit.org/changeset/76581>