[Webkit-unassigned] [Bug 107813] Web Inspector: Filters on Console panel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 29 07:08:16 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107813





--- Comment #12 from Dmitry Zvorygin <zvorygin at chromium.org>  2013-01-29 07:10:14 PST ---
(From update of attachment 184996)
View in context: https://bugs.webkit.org/attachment.cgi?id=184996&action=review

>> Source/WebCore/inspector/front-end/ConsoleView.js:491
>> +    _addMessageUrlFilter: function(url)
> 
> nit: URL

Done

>> Source/WebCore/inspector/front-end/ConsoleView.js:493
>> +        this._messageURLFilters.push(url);
> 
> nit: as a next change, you'd want to persist this.

Done.

>> Source/WebCore/inspector/front-end/ConsoleView.js:501
>> +    _removeMessageUrlFilter: function(index)
> 
> ditto

Done

>> Source/WebCore/inspector/front-end/ConsoleView.js:518
>> +        return !message.url || this._messageURLFilters.indexOf(message.url) === -1;
> 
> This is a linear search which we don't need to do: making filters an object (map from string to boolean) would speed things up.

Done.

>> Source/WebCore/inspector/front-end/ConsoleView.js:812
>> +            this.messagesElement.insertBefore(element, node);
> 
> no need for {} around single line block

Done.

>> LayoutTests/inspector/console/console-filter-test.html:3
>> +    <script src="../../http/tests/inspector/inspector-test.js"></script>
> 
> nit: we don't indent these - see other tests.

Done.

>> LayoutTests/inspector/console/console-filter-test.html:12
>> +        function onload() {
> 
> ditto

Done.

>> LayoutTests/inspector/console/console-filter-test.html:13
>> +            for (var i = 0; i < 10; i++)
> 
> missing {}

Done.

>> LayoutTests/inspector/console/console-filter-test.html:24
>> +        function test() {
> 
> no indent for top level functions. { on the next line.

Done.

>> LayoutTests/inspector/console/console-filter-test.html:36
>> +            InspectorTest.addResult("=== BEFORE FILTER ===");
> 
> You should use runTestSuite to make several tests handling different cases (at least incremental + update)

Done.

>> LayoutTests/inspector/console/resources/log-source.js:1
>> +function log2() {
> 
> { on the next line.

Done.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list