WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
46614
Web Inspector: extract Inspector Instrumentation API as a class.
https://bugs.webkit.org/show_bug.cgi?id=46614
Summary
Web Inspector: extract Inspector Instrumentation API as a class.
Ilya Tikhonovsky
Reported
2010-09-27 03:12:30 PDT
There is a lot of places where we push information from WebCore to Inspector. When we doing that we use Timeline agent, Debugger agent, InspectorController etc. In some cases we need to have an instrumentation for Debugger agent and Timeline agent in the same place. As example for XHR breakpoints. I'd be great to extract an Inspector Instrumentation API which hide internal Inspector things from the rest of WebCore code. In this case we will have: 1) InspectorInstrumentation class as an API for WebCore; 2) inspector agents with business logic for different inspector's activities; 3) InspectorBackendDispatcher class as the api for front-end; 4) InspectorController as the controller for all Inspector stuff. We already have last three things and want to have the first one. I've plan to make next patches: 1) split Timeline Agent implementation. The first part will be used as a base for InspectorInstrumentation class in the following patches, the second is InspectorTimeline agent itself. 2) extract API part of InspectorTimeline agent into separate file and rename it to InspectorInstrumentation. A lot of places in WebCore will be fixed too. 3) move current implementation of DOM breakpoints in WebCore under control of InspectorInstrumentation. 4) move other things under control of InspectorInstrumentation too.
Attachments
Patch
(36.96 KB, patch)
2010-09-29 06:05 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(39.53 KB, patch)
2010-09-29 06:07 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(39.88 KB, patch)
2010-09-29 06:48 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Fix linux build.
(28.24 KB, patch)
2010-09-29 07:53 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(40.24 KB, patch)
2010-09-29 08:35 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(40.83 KB, patch)
2010-09-29 10:45 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(77.50 KB, patch)
2010-10-05 06:36 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2010-09-29 06:05:58 PDT
Created
attachment 69183
[details]
Patch
Pavel Podivilov
Comment 2
2010-09-29 06:07:27 PDT
Created
attachment 69184
[details]
Patch.
Early Warning System Bot
Comment 3
2010-09-29 06:15:30 PDT
Attachment 69184
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/4216011
Csaba Osztrogonác
Comment 4
2010-09-29 06:19:44 PDT
(In reply to
comment #3
)
>
Attachment 69184
[details]
did not build on qt: > Build output:
http://queues.webkit.org/results/4216011
You missed to add the new source and header to SOURCES and HEADERS variable of WebCore/WebCore.pro: inspector/InspectorInstrumentationAgent.cpp inspector/InspectorInstrumentationAgent.h
Pavel Feldman
Comment 5
2010-09-29 06:22:11 PDT
Comment on
attachment 69184
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=69184&action=review
> WebCore/CMakeLists.txt:1109 > + inspector/InspectorInstrumentationAgent.cpp
InspectorInstrumentation
> WebCore/inspector/InspectorInstrumentationAgent.h:60 > + static bool hasFrontends() { return s_frontendCounter; }
inline?
WebKit Review Bot
Comment 6
2010-09-29 06:24:42 PDT
Attachment 69184
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/4193006
Pavel Podivilov
Comment 7
2010-09-29 06:48:38 PDT
Created
attachment 69187
[details]
Patch.
Pavel Podivilov
Comment 8
2010-09-29 06:49:02 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > >
Attachment 69184
[details]
[details] did not build on qt: > > Build output:
http://queues.webkit.org/results/4216011
> > You missed to add the new source and header to > SOURCES and HEADERS variable of WebCore/WebCore.pro: > inspector/InspectorInstrumentationAgent.cpp > inspector/InspectorInstrumentationAgent.h
Thanks, Csaba!
Csaba Osztrogonác
Comment 9
2010-09-29 06:53:33 PDT
(In reply to
comment #7
)
> Created an attachment (id=69187) [details] > Patch.
Didn't you want to mark this patch with r? flag?
Pavel Podivilov
Comment 10
2010-09-29 06:57:37 PDT
(In reply to
comment #9
)
> (In reply to
comment #7
) > > Created an attachment (id=69187) [details] [details] > > Patch. > > Didn't you want to mark this patch with r? flag?
Nope, I just want to make sure builds are green and commit, since I have r+ already.
Csaba Osztrogonác
Comment 11
2010-09-29 07:01:05 PDT
(In reply to
comment #10
)
> Nope, I just want to make sure builds are green and commit, since I have r+ already.
EWS bots build only r? marked patches.
WebKit Review Bot
Comment 12
2010-09-29 07:40:16 PDT
Attachment 69187
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/4192010
Pavel Podivilov
Comment 13
2010-09-29 07:53:52 PDT
Created
attachment 69197
[details]
Fix linux build.
Early Warning System Bot
Comment 14
2010-09-29 08:05:11 PDT
Attachment 69197
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/4155011
Pavel Podivilov
Comment 15
2010-09-29 08:35:35 PDT
Created
attachment 69200
[details]
Patch.
Eric Seidel (no email)
Comment 16
2010-09-29 08:44:39 PDT
Attachment 69197
[details]
did not build on mac: Build output:
http://queues.webkit.org/results/4198006
WebKit Review Bot
Comment 17
2010-09-29 09:03:07 PDT
Attachment 69197
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/4172008
Pavel Podivilov
Comment 18
2010-09-29 10:45:59 PDT
Created
attachment 69216
[details]
Patch.
Pavel Podivilov
Comment 19
2010-09-30 03:09:55 PDT
Committed in
r68767
.
Eric Seidel (no email)
Comment 20
2010-09-30 03:21:04 PDT
Comment on
attachment 69184
[details]
Patch. Cleared Pavel Feldman's review+ from obsolete
attachment 69184
[details]
so that this bug does not appear in
http://webkit.org/pending-commit
.
Eric Seidel (no email)
Comment 21
2010-09-30 03:21:12 PDT
Comment on
attachment 69200
[details]
Patch. Cleared Pavel Feldman's review+ from obsolete
attachment 69200
[details]
so that this bug does not appear in
http://webkit.org/pending-commit
.
Csaba Osztrogonác
Comment 22
2010-09-30 09:22:49 PDT
Patch landed in
r68767
, so the bug is resolved/fixed.
Pavel Podivilov
Comment 23
2010-10-05 06:36:54 PDT
Created
attachment 69775
[details]
Patch. Remove references to InspectorTimelineAgent from webcore.
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