WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52282
Web Inspector: extract console related functionality into InspectorConsoleAgent
https://bugs.webkit.org/show_bug.cgi?id=52282
Summary
Web Inspector: extract console related functionality into InspectorConsoleAgent
Yury Semikhatsky
Reported
2011-01-12 01:52:54 PST
Web Inspector: extract console related functionality into InspectorConsoleAgent. There are several methods and fields in InspectorController that deal with console messages and they should be moved into their own class.
Attachments
Patch
(56.61 KB, patch)
2011-01-13 07:19 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(57.75 KB, patch)
2011-01-13 08:26 PST
,
Yury Semikhatsky
pfeldman
: review+
Details
Formatted Diff
Diff
Patch that I'm going to land
(64.40 KB, patch)
2011-01-14 05:02 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2011-01-13 07:19:22 PST
Created
attachment 78808
[details]
Patch
Ilya Tikhonovsky
Comment 2
2011-01-13 08:03:18 PST
Comment on
attachment 78808
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78808&action=review
> Source/WebCore/inspector/Inspector.idl:83 > [domain=Inspector] void clearConsoleMessages();
I think it also should be a member of Console domain. other looks good to me
Yury Semikhatsky
Comment 3
2011-01-13 08:26:33 PST
Created
attachment 78813
[details]
Patch
Yury Semikhatsky
Comment 4
2011-01-13 08:27:01 PST
(In reply to
comment #2
)
> (From update of
attachment 78808
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=78808&action=review
> > > > Source/WebCore/inspector/Inspector.idl:83 > > [domain=Inspector] void clearConsoleMessages(); > > I think it also should be a member of Console domain. >
Done.
Pavel Feldman
Comment 5
2011-01-13 08:34:52 PST
Comment on
attachment 78813
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78813&action=review
> Source/WebCore/inspector/front-end/ConsoleView.js:252 > + addConsoleMessage: function(payload)
I know Ilya has been doing it earlier, but I think it is wrong. We should dispatch against private closure.
WebKit Review Bot
Comment 6
2011-01-13 08:45:01 PST
Attachment 78813
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/7597014
WebKit Review Bot
Comment 7
2011-01-13 09:02:45 PST
Attachment 78813
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/7547013
Build Bot
Comment 8
2011-01-13 09:12:37 PST
Attachment 78813
[details]
did not build on win: Build output:
http://queues.webkit.org/results/7576015
Early Warning System Bot
Comment 9
2011-01-13 10:24:45 PST
Attachment 78813
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/7621006
WebKit Review Bot
Comment 10
2011-01-13 11:05:42 PST
Attachment 78813
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/7539017
WebKit Review Bot
Comment 11
2011-01-13 12:01:33 PST
Attachment 78813
[details]
did not build on mac: Build output:
http://queues.webkit.org/results/7496015
Pavel Feldman
Comment 12
2011-01-13 12:06:49 PST
Comment on
attachment 78813
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78813&action=review
Please fix these two comments before landing.
> Source/WebCore/inspector/Inspector.idl:79 > + [domain=Console] void setConsoleMessagesEnabled(in boolean enabled, out boolean newState);
I think this should belong to the "Inspector" domain. Upon this call, inspector controller should provide console agent with the InspectorFrontend instance.
> Source/WebCore/inspector/InspectorConsoleAgent.cpp:188 > + m_state->setBoolean(InspectorState::consoleMessagesEnabled, enabled);
If you do what I suggest above, you would no longer need this property (it'll be m_frontend != 0).
Martin Robinson
Comment 13
2011-01-13 12:18:48 PST
(In reply to
comment #12
)
> (From update of
attachment 78813
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=78813&action=review
This patch broke every EWS bot. It might be better to post another iteration.
Yury Semikhatsky
Comment 14
2011-01-14 01:58:50 PST
Comment on
attachment 78813
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78813&action=review
>> Source/WebCore/inspector/InspectorConsoleAgent.cpp:188
> > If you do what I suggest above, you would no longer need this property (it'll be m_frontend != 0).
This won't work since we need to restore console state after navigation.
Yury Semikhatsky
Comment 15
2011-01-14 05:02:11 PST
Created
attachment 78926
[details]
Patch that I'm going to land
Yury Semikhatsky
Comment 16
2011-01-14 06:57:57 PST
Committed
r75792
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