WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47173
Web Inspector: extract Inspector Instrumentation API as a class
https://bugs.webkit.org/show_bug.cgi?id=47173
Summary
Web Inspector: extract Inspector Instrumentation API as a class
Pavel Podivilov
Reported
2010-10-05 06:42:53 PDT
Web Inspector: extract Inspector Instrumentation API as a class Remove references to InspectorTimelineAgent from WebCore.
Attachments
Patch.
(77.50 KB, patch)
2010-10-05 06:43 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch.
(2.74 KB, patch)
2010-10-05 07:52 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Comments addressed.
(77.95 KB, patch)
2010-10-06 10:07 PDT
,
Pavel Podivilov
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2010-10-05 06:43:40 PDT
Created
attachment 69777
[details]
Patch.
Pavel Podivilov
Comment 2
2010-10-05 07:52:37 PDT
Created
attachment 69783
[details]
Patch. Comments addressed.
Pavel Podivilov
Comment 3
2010-10-05 08:21:48 PDT
(In reply to
comment #2
)
> Created an attachment (id=69783) [details] > Patch. > > Comments addressed.
Wrong patch, sorry.
Ilya Tikhonovsky
Comment 4
2010-10-06 03:10:06 PDT
Comment on
attachment 69777
[details]
Patch. looks good to me
Ilya Tikhonovsky
Comment 5
2010-10-06 03:30:31 PDT
Comment on
attachment 69777
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=69777&action=review
> WebCore/dom/Node.cpp:2605 > + int instrumentationCookie = InspectorInstrumentation::willDispatchEvent(document(), *event, targetForWindowEvents, this, ancestors);
Nit: InspectorInstrumentationCookie cookie?
> WebCore/inspector/InspectorInstrumentation.cpp:313 > + if (InspectorTimelineAgent* timelineAgent = inspectorController->m_timelineAgent.get()) {
Nit: I think it'd be better to have overloaded function for retrieving timelineAgent. like retrieveTimelineAgent(InspectorController*)
Pavel Podivilov
Comment 6
2010-10-06 10:07:52 PDT
Created
attachment 69953
[details]
Comments addressed.
Pavel Feldman
Comment 7
2010-10-06 14:02:12 PDT
Comment on
attachment 69953
[details]
Comments addressed. View in context:
https://bugs.webkit.org/attachment.cgi?id=69953&action=review
> WebCore/ChangeLog:27 > + (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
You should nuke these scary verbose lines.
> WebCore/bindings/v8/V8Proxy.cpp:414 > + InspectorInstrumentation::didEvaluateScript(m_frame, cookie);
I think cookie should be the first parameter in all the calls.
> WebCore/inspector/InspectorInstrumentation.cpp:-67 > - if (!inspectorController->hasFrontend())
Why did these go? Please explain in order to get r+.
> WebCore/inspector/InspectorInstrumentation.h:116 > + static InspectorInstrumentationCookie willCallFunctionImpl(InspectorController*, const String& scriptName, int scriptLine);
This is crazy amount of methods, really easy to make a mistake here. Can we cut the number?
Pavel Podivilov
Comment 8
2010-10-07 01:13:26 PDT
> > > WebCore/inspector/InspectorInstrumentation.cpp:-67 > > - if (!inspectorController->hasFrontend()) > > Why did these go? Please explain in order to get r+.
This checks were moved to InspectorInstrumentation::inspectorControllerForPage method.
Pavel Feldman
Comment 9
2010-10-07 02:05:24 PDT
Comment on
attachment 69953
[details]
Comments addressed. View in context:
https://bugs.webkit.org/attachment.cgi?id=69953&action=review
> WebCore/inspector/InspectorInstrumentation.h:61 > + static void willSendXMLHttpRequest(ScriptExecutionContext*, const String& url);
LGTM given we migrate to a macro shortly.
Pavel Podivilov
Comment 10
2010-10-07 02:44:11 PDT
Committed
r69283
: <
http://trac.webkit.org/changeset/69283
>
Kent Tamura
Comment 11
2010-10-07 03:28:07 PDT
This change broke
https://bugs.webkit.org/show_bug.cgi?id=47173
on all platforms.
Kent Tamura
Comment 12
2010-10-07 03:28:47 PDT
(In reply to
comment #11
)
> This change broke
https://bugs.webkit.org/show_bug.cgi?id=47173
on all platforms.
Oops, copy&paste error. This change broke http/tests/inspector/console-xhr-logging.html on all platforms.
Pavel Podivilov
Comment 13
2010-10-07 04:47:02 PDT
(In reply to
comment #12
)
> (In reply to
comment #11
) > > This change broke
https://bugs.webkit.org/show_bug.cgi?id=47173
on all platforms. > > Oops, copy&paste error. > > This change broke http/tests/inspector/console-xhr-logging.html on all platforms.
Fixed in
r69286
.
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