|
|
Created:
6 years, 6 months ago by aandrey Modified:
6 years, 6 months ago CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org Base URL:
svn://svn.chromium.org/blink/trunk Visibility:
Public. |
DescriptionDevTools: Support XHR event listener breakpoints on frontend.
BUG=381470
R=yurys@chromium.org, pfeldman@chromium.org, vsevik, yurys
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176318
Patch Set 1 #
Total comments: 4
Patch Set 2 : addressed #
Total comments: 7
Patch Set 3 : addressed #Patch Set 4 : tweaked the test #
Messages
Total messages: 29 (0 generated)
https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... File Source/devtools/front_end/sources/BreakpointsSidebarPane.js (right): https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:537: this._createCategory(WebInspector.UIString("Timer"), ["setTimer", "clearTimer", "timerFired"], null); It was more clear with boolean isDOMEvent, may be we should pass category explicitly? null vs undefined is too obscure to my taste. https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:602: var eventName = (targetNames === null ? WebInspector.EventListenerBreakpointsSidebarPane.categoryInstrumentation : WebInspector.EventListenerBreakpointsSidebarPane.categoryListener) + eventNames[i]; Category evaluation can be moved out of the loop body.
PTAL https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... File Source/devtools/front_end/sources/BreakpointsSidebarPane.js (right): https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:537: this._createCategory(WebInspector.UIString("Timer"), ["setTimer", "clearTimer", "timerFired"], null); On 2014/06/11 12:31:23, yurys wrote: > It was more clear with boolean isDOMEvent, may be we should pass category > explicitly? null vs undefined is too obscure to my taste. Done. https://codereview.chromium.org/321113005/diff/1/Source/devtools/front_end/so... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:602: var eventName = (targetNames === null ? WebInspector.EventListenerBreakpointsSidebarPane.categoryInstrumentation : WebInspector.EventListenerBreakpointsSidebarPane.categoryListener) + eventNames[i]; On 2014/06/11 12:31:23, yurys wrote: > Category evaluation can be moved out of the loop body. Done.
ping?
https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... File Source/devtools/front_end/sources/BreakpointsSidebarPane.js (right): https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:732: delete categoryItem.dirtyCheckbox; categoryItem.dirtyCheckbox = false; https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:733: var hasEnabled = false, hasDisabled = false; one assignment per line please https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:760: return breakpointItem; Consider doing "return breakpointItem || null;" unconditionally?
lgtm https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... File Source/devtools/front_end/sources/BreakpointsSidebarPane.js (right): https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:539: this._createCategory(WebInspector.UIString("XHR"), ["readystatechange", "load", "loadstart", "loadend", "abort", "error", "progress", "timeout"], false, ["XMLHttpRequest", "XMLHttpRequestUpload"]); It is a bit confusing that we mix categories and targets on the same level. We may want a better separation in UI, e.g. first all events are grouped by targets, under each target events grouped by categories. Can be addressed in a separate change.
https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... File Source/devtools/front_end/sources/BreakpointsSidebarPane.js (right): https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:732: delete categoryItem.dirtyCheckbox; On 2014/06/16 12:07:24, yurys wrote: > categoryItem.dirtyCheckbox = false; Done. https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:733: var hasEnabled = false, hasDisabled = false; On 2014/06/16 12:07:24, yurys wrote: > one assignment per line please Done. https://codereview.chromium.org/321113005/diff/20001/Source/devtools/front_en... Source/devtools/front_end/sources/BreakpointsSidebarPane.js:760: return breakpointItem; On 2014/06/16 12:07:24, yurys wrote: > Consider doing "return breakpointItem || null;" unconditionally? depending on the condition, we may have to proceed the loop interation
The CQ bit was checked by aandrey@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/321113005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12104)
The CQ bit was checked by aandrey@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/321113005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12124)
The CQ bit was checked by aandrey@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/321113005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12154)
The CQ bit was checked by aandrey@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/321113005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12294)
The CQ bit was checked by aandrey@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/321113005/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered...)
Message was sent while issue was closed.
Committed patchset #4 manually as r176318 (presubmit successful). |