RESOLVED FIXED 53169
Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController
https://bugs.webkit.org/show_bug.cgi?id=53169
Summary Web Inspector: move InspectorController's methods from InspectorAgent to Insp...
Ilya Tikhonovsky
Reported 2011-01-26 07:41:32 PST
%subj%
Attachments
[patch] initial version. for trybots (82.49 KB, patch)
2011-01-26 07:50 PST, Ilya Tikhonovsky
no flags
[patch] second version (52.01 KB, patch)
2011-02-02 10:14 PST, Ilya Tikhonovsky
no flags
[patch] third version version (52.48 KB, patch)
2011-02-08 02:31 PST, Ilya Tikhonovsky
no flags
[patch] fourth version (51.77 KB, patch)
2011-02-08 06:45 PST, Ilya Tikhonovsky
no flags
patch I'm going to land (51.02 KB, patch)
2011-02-08 09:33 PST, Ilya Tikhonovsky
no flags
Ilya Tikhonovsky
Comment 1 2011-01-26 07:50:25 PST
Created attachment 80192 [details] [patch] initial version. for trybots
Pavel Feldman
Comment 2 2011-01-26 08:17:04 PST
Comment on attachment 80192 [details] [patch] initial version. for trybots View in context: https://bugs.webkit.org/attachment.cgi?id=80192&action=review A bunch of nits, otherwise looks good. > Source/WebCore/ChangeLog:12 > + https://bugs.webkit.org/show_bug.cgi?id=53169 ChangeLog structure should be: Web Inspector: <Bug title> http://bug <blank line> Description. <blank line> > Source/WebCore/inspector/InspectorController.cpp:167 > + m_inspectorAgent->evaluateForTestInFrontend(callId, script); This can go straight into the front-end. > Source/WebCore/inspector/InspectorController.h:65 > + InspectorAgent* inspectorAgent() const { return m_inspectorAgent.get(); } You can't expose agent from inspector controller. > Source/WebCore/inspector/InspectorController.h:66 > + InspectorBackendDispatcher* inspectorBackendDispatcher() { return m_inspectorBackendDispatcher.get(); } replace with wrapper method: dispatchMessageFromFrontend > Source/WebCore/inspector/InspectorController.h:67 > + InspectorClient* inspectorClient() const { return m_inspectorClient; } Should not be exposed. Or at least put a FIXME here. > Source/WebCore/inspector/InspectorController.h:82 > + void reuseFrontend(); I don't think we have reuseFrontend. > Source/WebCore/inspector/InspectorController.h:87 > + void highlight(Node*); This code should move to HighlightUtilities class. > Source/WebCore/inspector/InspectorController.h:94 > + // FIXME: these methods are necessary for LayoutTestController but we can do that with help of script injected into WebInspector page. These should stay here. > Source/WebCore/loader/FrameLoader.cpp:2981 > + InspectorInstrumentation::resume(m_frame->page()); resume is not a part of the instrumentation, this is a control statement, should be called on InspectorController.
Build Bot
Comment 3 2011-01-26 08:25:02 PST
WebKit Review Bot
Comment 4 2011-01-26 08:51:55 PST
Ilya Tikhonovsky
Comment 5 2011-02-02 10:14:36 PST
Created attachment 80927 [details] [patch] second version (In reply to comment #2) > (From update of attachment 80192 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=80192&action=review > > A bunch of nits, otherwise looks good. > > > Source/WebCore/ChangeLog:12 > > + https://bugs.webkit.org/show_bug.cgi?id=53169 > > ChangeLog structure should be: > > Web Inspector: <Bug title> > http://bug > <blank line> > Description. > <blank line> done. > > > Source/WebCore/inspector/InspectorController.cpp:167 > > + m_inspectorAgent->evaluateForTestInFrontend(callId, script); > > This can go straight into the front-end. done. > > > Source/WebCore/inspector/InspectorController.h:65 > > + InspectorAgent* inspectorAgent() const { return m_inspectorAgent.get(); } > > You can't expose agent from inspector controller. done. > > > Source/WebCore/inspector/InspectorController.h:66 > > + InspectorBackendDispatcher* inspectorBackendDispatcher() { return m_inspectorBackendDispatcher.get(); } > > replace with wrapper method: dispatchMessageFromFrontend done. > > Source/WebCore/inspector/InspectorController.h:67 > > + InspectorClient* inspectorClient() const { return m_inspectorClient; } > > Should not be exposed. Or at least put a FIXME here. > > > Source/WebCore/inspector/InspectorController.h:82 > > + void reuseFrontend(); > > I don't think we have reuseFrontend. done. > > > Source/WebCore/inspector/InspectorController.h:87 > > + void highlight(Node*); > > This code should move to HighlightUtilities class. I'll do this in a separate patch. > > > Source/WebCore/loader/FrameLoader.cpp:2981 > > + InspectorInstrumentation::resume(m_frame->page()); > > resume is not a part of the instrumentation, this is a control statement, should be called on InspectorController. done.
Early Warning System Bot
Comment 6 2011-02-02 10:51:12 PST
Yury Semikhatsky
Comment 7 2011-02-03 02:31:20 PST
Comment on attachment 80927 [details] [patch] second version View in context: https://bugs.webkit.org/attachment.cgi?id=80927&action=review > Source/WebCore/inspector/InspectorAgent.cpp:-161 > - ASSERT(!m_highlightedNode); Please revert this line. > Source/WebCore/inspector/InspectorAgent.cpp:189 > + m_inspectorController->connectFrontend(); InspectorAgent shouldn't know about InspectorController. You can break this dependency in a separate change though. Please file a bug and add a FIXME. > Source/WebCore/inspector/InspectorAgent.cpp:289 > + m_inspectorController->inspect(node.get()); You shouldn't go into IC here.
Yury Semikhatsky
Comment 8 2011-02-03 04:44:52 PST
Comment on attachment 80927 [details] [patch] second version View in context: https://bugs.webkit.org/attachment.cgi?id=80927&action=review > Source/WebCore/loader/FrameLoader.cpp:2977 > + m_frame->page()->inspectorController()->resume(); You may want to assign m_frame->page() to a local variable since it is used in several places in the method.
Yury Semikhatsky
Comment 9 2011-02-03 04:54:43 PST
Comment on attachment 80927 [details] [patch] second version View in context: https://bugs.webkit.org/attachment.cgi?id=80927&action=review > Source/WebCore/inspector/InspectorController.h:37 > +#include <wtf/PassOwnPtr.h> You don't need PassOwnPtr and RefPtr includes here, wtf/Forward should be enough.
Yury Semikhatsky
Comment 10 2011-02-03 04:56:34 PST
Comment on attachment 80927 [details] [patch] second version View in context: https://bugs.webkit.org/attachment.cgi?id=80927&action=review > Source/WebCore/inspector/InspectorController.h:111 > + friend class InspectorAgent; We could introduce InspectorAgentClient and have InspectorController implement it. Then you wouldn't need this friendship.
Ilya Tikhonovsky
Comment 11 2011-02-08 02:31:45 PST
Created attachment 81617 [details] [patch] third version version (In reply to comment #7) > (From update of attachment 80927 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=80927&action=review > > > Source/WebCore/inspector/InspectorAgent.cpp:-161 > > - ASSERT(!m_highlightedNode); > > Please revert this line. done > > Source/WebCore/inspector/InspectorAgent.cpp:189 > > + m_inspectorController->connectFrontend(); > > InspectorAgent shouldn't know about InspectorController. You can break this dependency in a separate change though. Please file a bug and add a FIXME. done > > Source/WebCore/inspector/InspectorAgent.cpp:289 > > + m_inspectorController->inspect(node.get()); > > You shouldn't go into IC here. done
WebKit Review Bot
Comment 12 2011-02-08 02:33:56 PST
Attachment 81617 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InspectorController.h:36: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 13 2011-02-08 05:16:50 PST
Comment on attachment 81617 [details] [patch] third version version View in context: https://bugs.webkit.org/attachment.cgi?id=81617&action=review > Source/WebCore/inspector/InspectorAgent.cpp:295 > +void InspectorAgent::didClearWindowObjectInWorld(Frame* frame) This method should be renamed since it doesn't accept any world anymore. > Source/WebCore/inspector/InspectorAgent.cpp:454 > + if (!m_requiredPanel) { !m_requiredPanel -> m_requiredPanel > Source/WebCore/loader/FrameLoader.cpp:2984 > + m_frame->page()->inspectorController()->resume(); Why has the main frame check gone?
Ilya Tikhonovsky
Comment 14 2011-02-08 06:45:25 PST
Created attachment 81629 [details] [patch] fourth version (In reply to comment #13) > (From update of attachment 81617 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=81617&action=review > > > Source/WebCore/inspector/InspectorAgent.cpp:295 > > +void InspectorAgent::didClearWindowObjectInWorld(Frame* frame) > > This method should be renamed since it doesn't accept any world anymore. done > > Source/WebCore/inspector/InspectorAgent.cpp:454 > > + if (!m_requiredPanel) { > > !m_requiredPanel -> m_requiredPanel done > > Source/WebCore/loader/FrameLoader.cpp:2984 > > + m_frame->page()->inspectorController()->resume(); > > Why has the main frame check gone? done
WebKit Review Bot
Comment 15 2011-02-08 06:51:24 PST
Collabora GTK+ EWS bot
Comment 16 2011-02-08 06:54:07 PST
Early Warning System Bot
Comment 17 2011-02-08 07:03:11 PST
Build Bot
Comment 18 2011-02-08 07:15:40 PST
WebKit Review Bot
Comment 19 2011-02-08 07:31:17 PST
WebKit Review Bot
Comment 20 2011-02-08 07:31:24 PST
Ilya Tikhonovsky
Comment 21 2011-02-08 09:33:57 PST
Created attachment 81652 [details] patch I'm going to land
WebKit Review Bot
Comment 22 2011-02-08 10:15:28 PST
http://trac.webkit.org/changeset/77950 might have broken Qt Linux Release The following tests are not passing: http/tests/websocket/tests/workers/close-in-onmessage-crash.html
Csaba Osztrogonác
Comment 23 2011-02-08 10:22:55 PST
(In reply to comment #22) > http://trac.webkit.org/changeset/77950 might have broken Qt Linux Release > The following tests are not passing: > http/tests/websocket/tests/workers/close-in-onmessage-crash.html It is a false positive alarm: https://bugs.webkit.org/show_bug.cgi?id=53912 Sorry for the SPAM.
Note You need to log in before you can comment on or make changes to this bug.