WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 68342
Web Inspector: streamline Console's MessageType and MessageSource semantics.
https://bugs.webkit.org/show_bug.cgi?id=68342
Summary
Web Inspector: streamline Console's MessageType and MessageSource semantics.
Pavel Feldman
Reported
2011-09-19 02:09:46 PDT
This change fixes semantics of the MessageSource and MessageType: MessageSource is now the source of the message (be it Network, HTML parser or Console API) MessageType is only defined for the Console API messages and contains the name of the API call (log, dir, dirxml, etc.). Subsequent
https://bugs.webkit.org/show_bug.cgi?id=66371
will make MessageType private to the inspector.
Attachments
Patch
(35.08 KB, patch)
2011-09-19 02:56 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Path] Mac bot fixed.
(35.07 KB, patch)
2011-09-19 08:28 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] Review comments addressed
(38.09 KB, patch)
2011-09-19 10:39 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] rebaselined 2.
(38.22 KB, patch)
2011-09-19 10:53 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[Patch] rebaselined 3.
(38.22 KB, patch)
2011-09-19 10:55 PDT
,
Pavel Feldman
tonyg
: review+
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2011-09-19 02:56:10 PDT
Created
attachment 107825
[details]
Patch
WebKit Review Bot
Comment 2
2011-09-19 07:51:15 PDT
Comment on
attachment 107825
[details]
Patch
Attachment 107825
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/9744296
Pavel Feldman
Comment 3
2011-09-19 08:28:25 PDT
Created
attachment 107858
[details]
[Path] Mac bot fixed.
Vsevolod Vlasov
Comment 4
2011-09-19 09:46:21 PDT
Comment on
attachment 107858
[details]
[Path] Mac bot fixed. View in context:
https://bugs.webkit.org/attachment.cgi?id=107858&action=review
> Source/WebCore/inspector/front-end/ConsoleMessage.js:98 > + case WebInspector.ConsoleMessage.MessageType.Dir:
We should not switch between MessageTypes unless MessageSource is ConsoleAPI. Please put switch behind a conditional operator and make MessageType optional in protocol. Otherwise looks good.
Pavel Feldman
Comment 5
2011-09-19 10:39:36 PDT
Created
attachment 107879
[details]
[Patch] Review comments addressed
Pavel Feldman
Comment 6
2011-09-19 10:53:34 PDT
Created
attachment 107884
[details]
[Patch] rebaselined 2.
Pavel Feldman
Comment 7
2011-09-19 10:55:25 PDT
Created
attachment 107886
[details]
[Patch] rebaselined 3.
Vsevolod Vlasov
Comment 8
2011-09-20 04:52:18 PDT
LGTM
Tony Gentilcore
Comment 9
2011-09-20 05:42:22 PDT
Comment on
attachment 107886
[details]
[Patch] rebaselined 3. View in context:
https://bugs.webkit.org/attachment.cgi?id=107886&action=review
> Source/WebCore/inspector/Inspector.json:335 > + "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='
http://getfirebug.com/wiki/index.php/Console_API
'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
I take it these strings are localized so it is fine to change them in place?
Pavel Feldman
Comment 10
2011-09-20 05:56:09 PDT
Comment on
attachment 107886
[details]
[Patch] rebaselined 3. View in context:
https://bugs.webkit.org/attachment.cgi?id=107886&action=review
>> Source/WebCore/inspector/Inspector.json:335 >> + "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='
http://getfirebug.com/wiki/index.php/Console_API
'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.", > > I take it these strings are localized so it is fine to change them in place?
Protocol description is not localized.
Pavel Feldman
Comment 11
2011-09-20 06:45:17 PDT
Committed
r95535
: <
http://trac.webkit.org/changeset/95535
>
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