Changeset 263607 in webkit


Ignore:
Timestamp:
Jun 26, 2020 6:16:22 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

Crash at WebKit: 62-[WKContentView(WKInteraction) resignFirstResponderForWebView]_block_invoke
<https://webkit.org/b/213666>
<rdar://problem/64238661>

Reviewed by Darin Adler.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView resignFirstResponderForWebView]):

  • Speculative fix to return early if there are no queued key events available by the time the block runs.
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r263591 r263607  
     12020-06-26  David Kilzer  <ddkilzer@apple.com>
     2
     3        Crash at WebKit: __62-[WKContentView(WKInteraction) resignFirstResponderForWebView]_block_invoke
     4        <https://webkit.org/b/213666>
     5        <rdar://problem/64238661>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/ios/WKContentViewInteraction.mm:
     10        (-[WKContentView resignFirstResponderForWebView]):
     11        - Speculative fix to return early if there are no queued key
     12          events available by the time the block runs.
     13
    1142020-06-26  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r263591 r263607  
    14221422                if (!page)
    14231423                    return;
    1424                 ASSERT(page->hasQueuedKeyEvent());
     1424                if (!page->hasQueuedKeyEvent())
     1425                    return;
    14251426                keyEventHandler(page->firstQueuedKeyEvent().nativeEvent(), YES);
    14261427            });
Note: See TracChangeset for help on using the changeset viewer.