[Webkit-unassigned] [Bug 188251] [iOS] Keyboard becomes unresponsive after pressing delete while pressing down on a character key with accents

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 1 22:20:05 PDT 2018


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

--- Comment #1 from Wenson Hsieh <wenson_hsieh at apple.com> ---
This following code:

- (void)handleKeyWebEvent:(::WebEvent *)theEvent withCompletionHandler:(void (^)(::WebEvent *theEvent, BOOL wasHandled))completionHandler
{
    _keyWebEventHandler = [completionHandler copy];
    _page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent));
}

- (void)_didHandleKeyEvent:(::WebEvent *)event eventWasHandled:(BOOL)eventWasHandled
{
    if (_keyWebEventHandler) {
        _keyWebEventHandler(event, eventWasHandled);
        [_keyWebEventHandler release];
        _keyWebEventHandler = nil;
        return;
    }

…

}

...is not robust in the case where the key event completion handler calls back into -handleKeyWebEvent:withCompletionHandler:, since we'll just end up stomping over the newly stored completion block in the next line.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180802/d87a046a/attachment.html>


More information about the webkit-unassigned mailing list