RESOLVED FIXED 51230
Caps-Lock indicator never appears in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=51230
Summary Caps-Lock indicator never appears in WebKit2
Adam Roben (:aroben)
Reported 2010-12-16 20:11:49 PST
To reproduce: 1. Go to data:text/html,<input type=password> 2. Click in the text field 3. Press Caps-Lock The Caps-Lock indicator doesn't appear.
Attachments
proposed fix (13.84 KB, patch)
2011-04-04 13:27 PDT, Alexey Proskuryakov
mitz: review+
Adam Roben (:aroben)
Comment 1 2010-12-16 20:12:32 PST
Classic WebKit handles this in WebView::keyDown by calling capsLockStateMayHaveChanged.
Adam Roben (:aroben)
Comment 2 2010-12-16 20:16:33 PST
Alexey Proskuryakov
Comment 3 2011-04-04 13:27:21 PDT
Created attachment 88113 [details] proposed fix This fixes the problem on Mac, and probably on Windows, too.
mitz
Comment 4 2011-04-04 13:33:09 PDT
Comment on attachment 88113 [details] proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=88113&action=review > Source/WebCore/ChangeLog:441 > - DumpRenderTreeÕs delegate to be dispatched. The delegate doesnÕt expect to be called between > + DumpRenderTree's delegate to be dispatched. The delegate doesn't expect to be called between > tests, and it references the layout test controller, which is null. > > * page/Frame.cpp: > - (WebCore::Frame::scalePage): Avoid an unnecessary layout if the page scale isnÕt changing. This > + (WebCore::Frame::scalePage): Avoid an unnecessary layout if the page scale isn't changing. This These characters should be re-encoded as UTF-8 rather than changed. > Source/WebKit2/UIProcess/API/mac/WKView.mm:1173 > + [[theEvent retain] autorelease]; A more modern pattern is to use a mysteriously-named RetainPtr for this. Or is it not enough to retain the event for the scope of this function?
Alexey Proskuryakov
Comment 5 2011-04-04 13:51:36 PDT
> A more modern pattern is to use a mysteriously-named RetainPtr for this. Or is it not enough to retain the event for the scope of this function? That code might be completely useless in WK2. It was present in keyDown, so I'm copying it elsewhere.
Alexey Proskuryakov
Comment 6 2011-04-04 13:56:59 PDT
Committed <http://trac.webkit.org/changeset/82870>. Please do verify that this helps on Windows.
Note You need to log in before you can comment on or make changes to this bug.