Bug 67711

Summary: Web Inspector: [REGRESSION] Clear console shortcut Ctrl + L broken
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, mamacdon, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Suggested fix
yurys: review-
[PATCH] Comments addressed yurys: review+

Description Alexander Pavlov (apavlov) 2011-09-07 08:44:41 PDT
This was regressed in r93769.

Patch to follow
Comment 1 Alexander Pavlov (apavlov) 2011-09-07 09:08:56 PDT
Upstreaming http://code.google.com/p/chromium/issues/detail?id=95495
Comment 2 Alexander Pavlov (apavlov) 2011-09-07 09:10:00 PDT
Created attachment 106590 [details]
[PATCH] Suggested fix
Comment 3 Yury Semikhatsky 2011-09-07 23:44:27 PDT
Comment on attachment 106590 [details]
[PATCH] Suggested fix

View in context: https://bugs.webkit.org/attachment.cgi?id=106590&action=review

> Source/WebCore/inspector/front-end/ConsoleView.js:495
>          this._shortcuts[shortcutK.key].isMacOnly = true;

I'd suggest you get rid of the isMacOnly flag and set this handler only if current platform is Mac, this way you'll be able to share the handler.
Comment 4 Alexander Pavlov (apavlov) 2011-09-07 23:59:21 PDT
(In reply to comment #3)
> (From update of attachment 106590 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=106590&action=review
> 
> > Source/WebCore/inspector/front-end/ConsoleView.js:495
> >          this._shortcuts[shortcutK.key].isMacOnly = true;
> 
> I'd suggest you get rid of the isMacOnly flag and set this handler only if current platform is Mac, this way you'll be able to share the handler.

Does it make sense to have the isMacOnly flag at all? Can't believe it's the only instance of its usage...
Comment 5 Alexander Pavlov (apavlov) 2011-09-08 02:10:51 PDT
Created attachment 106712 [details]
[PATCH] Comments addressed
Comment 6 Alexander Pavlov (apavlov) 2011-09-08 06:57:42 PDT
Committed r94758: <http://trac.webkit.org/changeset/94758>
Comment 7 Pavel Feldman 2011-09-27 09:39:50 PDT
*** Bug 68907 has been marked as a duplicate of this bug. ***