[Webkit-unassigned] [Bug 72818] Web Inspector: console.clear() implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 19 23:15:42 PST 2011


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


Pavel Feldman <pfeldman at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #2 from Pavel Feldman <pfeldman at chromium.org>  2011-11-19 23:15:42 PST ---
(In reply to comment #0)
> In Firefox you can do console.clear() to clear entire content that you added with console.log(), but in Web Inspector that is not working.
> 
> When you try to use it in Web Inspector you get this error:
> 
> Uncaught TypeError: Object #<Console> has no method 'clear'
> (anonymous function)
> 
> What i would love to see is that this little method gets implemented into Web Inspector, I'm pretty sure that i am not the only one in need for a better solution to clear console(across multiple browsers), this solution(and other like that) is just not that great: http://t.co/b87PGGfp

Although console.clear is a part of http://getfirebug.com/wiki/index.php/Console_API, I am not convinced that it is a goog idea: imagine an iframe that is clearing the console and preventing you from debugging of the main page.

You could
1) issue "clear()" in the console to clear it see the command line API: http://getfirebug.com/wiki/index.php/Command_Line_API. Or use keyboard shortcut to clear console.
2) use keyboard shortcut (hit "?" to get the shortcut for your platform).

Feel free to reopen this change (or post a comment asking to reopen) if you have a scenario that requires you to clear console programmatically from the web facing API.

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