[Webkit-unassigned] [Bug 134414] Web Inspector: Add a setting for clearing the console on page reload

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 10 13:16:41 PDT 2014


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


Timothy Hatcher <timothy at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #234719|review?                     |review-
               Flag|                            |




--- Comment #3 from Timothy Hatcher <timothy at apple.com>  2014-07-10 13:16:58 PST ---
(From update of attachment 234719)
View in context: https://bugs.webkit.org/attachment.cgi?id=234719&action=review

> Source/WebInspectorUI/UserInterface/Views/LogContentView.js:113
>      get navigationItems()
>      {
> -        return [this._searchBar, this._scopeBar, this._clearLogNavigationItem, this._toggleSplitNavigationItem];
> +        return [this._searchBar, this._scopeBar, this._clearLogNavigationItem, this._clearLogOnReloadNavigationItem, this._toggleSplitNavigationItem];

I don't think a navigation bar item is the right UI for this at this time. (We would need a new icon that is not confusing with a general Reload.)

Lets add it to the context menu. You can do that in _handleContextMenuEvent by using appendCheckboxItem. You should also do appendSeparator between the existing Clear Log item.

> Source/WebInspectorUI/UserInterface/Views/LogContentView.js:301
> +        if (this._clearLogOnReloadSetting.value) {
> +            this._clearLog();
> +        }

WebKit style is to not use braces for single lines.

-- 
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