The console is not cleared on non-Mac platforms when Ctrl-L is hit in the text prompt.
Created attachment 53337 [details] [PATCH] Trivial fix
Comment on attachment 53337 [details] [PATCH] Trivial fix I don't understand how this fixes Ctrl "L" on Windows. > 1 var clearConsoleHandler = this.requestClearMessages.bind(this); > 2 > 3 shortcut = WebInspector.KeyboardShortcut.makeKey("k", WebInspector.KeyboardShortcut.Modifiers.Meta); > 4 - this._shortcuts[shortcut] = clearConsoleHandler; > 5 + this._shortcuts[shortcut] = this.requestClearMessages.bind(this); > 6 this._shortcuts[shortcut].isMacOnly = true; > 7 shortcut = WebInspector.KeyboardShortcut.makeKey("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl); > 8 this._shortcuts[shortcut] = clearConsoleHandler; Line 1 shows that the clearConsoleHandler variable already has the requestClearMessages bound to this already. So the change doesn't appear to do anything. Also, the change is made to the Mac only <Cmd>K clear shortcut, not to the Windows <Ctrl>L part. Is there something I am missing?
Comment on attachment 53337 [details] [PATCH] Trivial fix Ahhhh, I think I got it. The "isMacOnly" property was being set on the shared bound function, and so all other cases (like Windows) see the isMacOnly property and don't run. Thats unfortunate. r=me if you Provide a comment explaining this (because its tricky). You might even want to reorder the code slightly if that helps make it clearer as well.
Created attachment 53342 [details] [PATCH] Comments addressed
Comment on attachment 53342 [details] [PATCH] Comments addressed Excellent. Thanks!
Comment on attachment 53342 [details] [PATCH] Comments addressed Clearing flags on attachment: 53342 Committed r57590: <http://trac.webkit.org/changeset/57590>
All reviewed patches have been landed. Closing bug.