WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56123
Web Inspector: move breakpoints restoring to debugger presentation model
https://bugs.webkit.org/show_bug.cgi?id=56123
Summary
Web Inspector: move breakpoints restoring to debugger presentation model
Pavel Podivilov
Reported
2011-03-10 11:11:20 PST
Web Inspector: move breakpoints restoring to debugger presentation model. DebuggerModel's "breakpoint-added" and "breakpoint-removed" events are gone since setBreakpoint/removeBreakpoint are now called from DPM only.
Attachments
Patch.
(23.92 KB, patch)
2011-03-10 11:11 PST
,
Pavel Podivilov
pfeldman
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-03-10 11:11:53 PST
Created
attachment 85352
[details]
Patch.
Pavel Feldman
Comment 2
2011-03-14 05:57:37 PDT
Comment on
attachment 85352
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=85352&action=review
> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:51 > + this._breakpointsRestored = true;
debugger is enabled with no state, we should restore breakpoints in all cases.
> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:60 > + if (id in this._breakpoints)
this._uiBreakpoints
> Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:196 > + if (typeof breakpoint.url !== "string" || typeof breakpoint.lineNumber !== "number" || typeof breakpoint.columnNumber !== "number" ||
How can this happen?
Pavel Podivilov
Comment 3
2011-03-14 08:17:16 PDT
Committed
r81025
: <
http://trac.webkit.org/changeset/81025
>
Pavel Podivilov
Comment 4
2011-03-14 08:26:44 PDT
(In reply to
comment #2
)
> (From update of
attachment 85352
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=85352&action=review
> > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:51 > > + this._breakpointsRestored = true; > > debugger is enabled with no state, we should restore breakpoints in all cases.
Now breakpoints is cleared from cookie when debugger is disabled.
> > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:60 > > + if (id in this._breakpoints) > > this._uiBreakpoints > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:196 > > + if (typeof breakpoint.url !== "string" || typeof breakpoint.lineNumber !== "number" || typeof breakpoint.columnNumber !== "number" || > > How can this happen?
Done.
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