RESOLVED FIXED 47542
Web Inspector: need a breakpoint for the timer events.
https://bugs.webkit.org/show_bug.cgi?id=47542
Summary Web Inspector: need a breakpoint for the timer events.
Ilya Tikhonovsky
Reported 2010-10-12 05:48:30 PDT
%subj%
Attachments
Patch. (9.85 KB, patch)
2010-10-13 05:16 PDT, Pavel Podivilov
pfeldman: review-
[IMAGE] Unified breakpoints design mock. (103.17 KB, image/png)
2010-10-13 07:18 PDT, Pavel Feldman
no flags
Comments addressed. (13.09 KB, patch)
2010-10-14 02:48 PDT, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2010-10-13 05:16:31 PDT
Pavel Feldman
Comment 2 2010-10-13 05:47:02 PDT
Comment on attachment 70600 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=70600&action=review > WebCore/inspector/InspectorInstrumentation.cpp:46 > +static const char* const timeoutEventName = "extended.timeout"; "timeout" is a bad name for the event. timerFire (localized "Timer fire" in UI) sounds more user-friendly. Also, encoding extended event names using dot-separated strings is fragile: there is no guarantee event will not have similar name. So you should either create a pair here or be more creative about encoding the event names. > WebCore/inspector/front-end/BreakpointManager.js:508 > + if (this._eventName.search(prefix) !== 0) Nit: use indexOf instead of regex search. > WebCore/inspector/front-end/BreakpointsSidebarPane.js:251 > + "HTML frame/object": ["load", "error", "resize", "scroll", "extended.timeout"] I think you are adding confusion here: timeout is not a real event. I think we should we have a separate category for it. It might have all timer-related breaks such as setTimeout, clearTimeout and timerFire event.
Ilya Tikhonovsky
Comment 3 2010-10-13 06:13:20 PDT
> > WebCore/inspector/front-end/BreakpointsSidebarPane.js:251 > > + "HTML frame/object": ["load", "error", "resize", "scroll", "extended.timeout"] > > I think you are adding confusion here: timeout is not a real event. I think we should we have a separate category for it. It might have all timer-related breaks such as setTimeout, clearTimeout and timerFire event. +1
Pavel Feldman
Comment 4 2010-10-13 07:18:41 PDT
Created attachment 70609 [details] [IMAGE] Unified breakpoints design mock.
Ilya Tikhonovsky
Comment 5 2010-10-13 07:26:54 PDT
it'd be interesting to have separate checkboxes for tracking send request/receive response for xhr The same idea for DOM modifications. Just have separate checkboxes for add/modify/delete.
Pavel Podivilov
Comment 6 2010-10-14 02:48:37 PDT
Created attachment 70721 [details] Comments addressed.
Pavel Feldman
Comment 7 2010-10-14 03:09:52 PDT
Comment on attachment 70721 [details] Comments addressed. Please do not forget to land localizedStrings.
Pavel Podivilov
Comment 8 2010-10-18 05:11:15 PDT
Note You need to log in before you can comment on or make changes to this bug.