[Webkit-unassigned] [Bug 107813] Web Inspector: Filters on Console panel
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 24 22:56:05 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=107813
Pavel Feldman <pfeldman at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #184499|review? |review-
Flag| |
--- Comment #7 from Pavel Feldman <pfeldman at chromium.org> 2013-01-24 22:57:59 PST ---
(From update of attachment 184499)
View in context: https://bugs.webkit.org/attachment.cgi?id=184499&action=review
A bunch of really minor style nits and a request for test.
> Source/WebCore/inspector/front-end/ConsoleView.js:459
> + var srcElement = event.target.enclosingNodeOrSelfWithClass("console-message");
style: WebKit discourages usage of abbreviated strings. Should be sourceElement.
> Source/WebCore/inspector/front-end/ConsoleView.js:461
> + var filterSubMenu = contextMenu.appendSubMenuItem("Filter", !(this._messageURLFilters.length || (srcElement && srcElement.message.url)));
UIString("Filter")
> Source/WebCore/inspector/front-end/ConsoleView.js:471
> + filterSubMenu.appendCheckboxItem(new WebInspector.ParsedURL(this._messageURLFilters[i]).displayName + " (" + this._urlToMessageCount[this._messageURLFilters[i]] + ")", this._removeMessageUrlFilter.bind(this, i), true);
You could use message format: String.sprintf("%s (%d)", displayName, count)
> Source/WebCore/inspector/front-end/ConsoleView.js:502
> + if (idx == -1)
index (no abbreviations)
> Source/WebCore/inspector/front-end/ConsoleView.js:515
> + _shouldBeVisible: function(msg)
message
> Source/WebCore/inspector/front-end/ConsoleView.js:520
> + _updateMessageList: function()
A test?
> Source/WebCore/inspector/front-end/ConsoleView.js:811
> + this.messagesElement.insertBefore(element, node);
insertBefore(element, null) would work as appendChild and just as fast (see ContainerNode.cpp:241), no need to fork the code here.
--
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