ViewGestureController is not properly notified of process swaps on iOS causing assertion failures under ViewGestureController::disconnectFromProcess(): Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.WebKit 0x0000000102bdb6d3 WTFCrashWithInfo(int, char const*, char const*, int) + 19 (Assertions.h:566) 1 com.apple.WebKit 0x0000000102bf5587 IPC::MessageReceiverMap::removeMessageReceiver(IPC::StringReference, unsigned long long) + 163 2 com.apple.WebKit 0x0000000102dfa057 WebKit::ViewGestureController::disconnectFromProcess() + 81 (ViewGestureController.cpp:111) 3 com.apple.WebKit 0x0000000102df9e95 WebKit::ViewGestureController::~ViewGestureController() + 95 (memory:2631) 4 com.apple.WebKit 0x0000000102dfa088 WebKit::ViewGestureController::~ViewGestureController() + 14 (ViewGestureController.h:83) 5 com.apple.WebKit 0x0000000102d3bd6b -[WKWebView .cxx_destruct] + 235 (WKWebView.mm:266) 6 libobjc.A.dylib 0x00000001099da963 object_cxxDestructFromClass(objc_object*, objc_class*) + 127 7 libobjc.A.dylib 0x00000001099e64c7 objc_destructInstance + 134 8 libobjc.A.dylib 0x00000001099e64f9 object_dispose + 19 9 com.apple.UIKitCore 0x00000001137e385b -[UIResponder dealloc] + 145 10 com.apple.UIKitCore 0x0000000113c57918 -[UIView dealloc] + 1041 11 com.apple.WebKit 0x0000000102d303ab -[WKWebView dealloc] + 375 (WKWebView.mm:882)
<rdar://problem/48954651>
Similar fix for macOS was Bug 191734.
Created attachment 365391 [details] Patch
Comment on attachment 365391 [details] Patch Clearing flags on attachment: 365391 Committed r243240: <https://trac.webkit.org/changeset/243240>
All reviewed patches have been landed. Closing bug.