12019-05-08 Daniel Bates <dabates@apple.com>
2
3 [Legacy WebKit] REGRESSION (r238078): Crash in hardwareKeyboardAvailabilityChangedCallback()
4 https://bugs.webkit.org/show_bug.cgi?id=197724
5 <rdar://problem/49725959>
6
7 Reviewed by NOBODY (OOPS!).
8
9 Speculative fix for race condition. Between the time we receive a kGSEventHardwareKeyboardAvailabilityChangedNotification
10 notification and when we schedule execution to run on the WebThread the WebView that notification
11 was for may no longer exist. Take out a weak ptr on the WebView when we receive the notification
12 and check that we still have it once we are running on the WebThread.
13
14 * WebView/WebHTMLView.mm:
15 (hardwareKeyboardAvailabilityChangedCallback):
16