WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47085
Web Inspector: set XHR breakpoint from resource panel
https://bugs.webkit.org/show_bug.cgi?id=47085
Summary
Web Inspector: set XHR breakpoint from resource panel
Pavel Podivilov
Reported
2010-10-04 07:15:35 PDT
Web Inspector: set XHR breakpoint from resource panel Add "Set Breakpoint" item to XHR resource context menu.
Attachments
Patch.
(2.72 KB, patch)
2010-10-04 07:17 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(2.74 KB, patch)
2010-10-05 08:20 PDT
,
Pavel Podivilov
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2010-10-04 07:17:06 PDT
Created
attachment 69631
[details]
Patch.
Alexander Pavlov (apavlov)
Comment 2
2010-10-04 07:27:23 PDT
Comment on
attachment 69631
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=69631&action=review
> WebCore/inspector/front-end/ResourcesPanel.js:1255 > + var resource = null;
Seems like there's no need to initialize this explicitly
> WebCore/inspector/front-end/ResourcesPanel.js:1268 > + if (resource && resource.category.name === "xhr") {
(... && resource.category === WebInspector.resourceCategories.xhr) looks cleaner
Pavel Podivilov
Comment 3
2010-10-05 08:20:34 PDT
Created
attachment 69787
[details]
Patch. Comments addressed.
Yury Semikhatsky
Comment 4
2010-10-05 08:37:31 PDT
Comment on
attachment 69787
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=69787&action=review
> WebCore/inspector/front-end/ResourcesPanel.js:1271 > + contextMenu.appendItem(WebInspector.UIString("Set Breakpoint"), WebInspector.breakpointManager.createXHRBreakpoint.bind(WebInspector.breakpointManager, resource.url));
We may want to be more specific about the nature of the breakpoint to set.
Pavel Podivilov
Comment 5
2010-10-06 01:18:28 PDT
Committed
r69180
: <
http://trac.webkit.org/changeset/69180
>
Pavel Podivilov
Comment 6
2010-10-06 01:27:06 PDT
(In reply to
comment #4
)
> (From update of
attachment 69787
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=69787&action=review
> > > WebCore/inspector/front-end/ResourcesPanel.js:1271 > > + contextMenu.appendItem(WebInspector.UIString("Set Breakpoint"), WebInspector.breakpointManager.createXHRBreakpoint.bind(WebInspector.breakpointManager, resource.url)); > > We may want to be more specific about the nature of the breakpoint to set.
I've accidentally committed it with "Set Breakpoint". Let me fix the wording in a separate patch.
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