WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52999
Web Inspector: debugger and browser debugger agents should manage sticky breakpoints independently
https://bugs.webkit.org/show_bug.cgi?id=52999
Summary
Web Inspector: debugger and browser debugger agents should manage sticky brea...
Pavel Podivilov
Reported
2011-01-24 02:19:52 PST
Web Inspector: debugger and browser debugger agents should manage sticky breakpoints independently. This is a second step of debugger api refactoring (see
bug 52879
).
Attachments
Patch.
(17.52 KB, patch)
2011-01-24 02:20 PST
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Fix style.
(17.49 KB, patch)
2011-01-24 02:23 PST
,
Pavel Podivilov
pfeldman
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-01-24 02:20:32 PST
Created
attachment 79904
[details]
Patch.
WebKit Review Bot
Comment 2
2011-01-24 02:22:16 PST
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.
Pavel Podivilov
Comment 3
2011-01-24 02:23:28 PST
Created
attachment 79906
[details]
Fix style.
Pavel Feldman
Comment 4
2011-01-24 02:27:14 PST
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?
Pavel Podivilov
Comment 5
2011-01-24 02:34:54 PST
(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.
Pavel Feldman
Comment 6
2011-01-24 04:36:23 PST
(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.
Pavel Podivilov
Comment 7
2011-01-24 05:14:45 PST
(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.
Pavel Podivilov
Comment 8
2011-01-25 01:44:59 PST
Committed
r76581
: <
http://trac.webkit.org/changeset/76581
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug