Bug 196029

Summary: Regression(PSON): ViewGestureController is not properly notified of process swaps on iOS
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ggaren, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=191734
Attachments:
Description Flags
Patch none

Description Chris Dumez 2019-03-20 13:32:21 PDT
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)
Comment 1 Chris Dumez 2019-03-20 13:32:33 PDT
<rdar://problem/48954651>
Comment 2 Chris Dumez 2019-03-20 13:33:17 PDT
Similar fix for macOS was Bug 191734.
Comment 3 Chris Dumez 2019-03-20 13:36:21 PDT
Created attachment 365391 [details]
Patch
Comment 4 WebKit Commit Bot 2019-03-20 14:26:07 PDT
Comment on attachment 365391 [details]
Patch

Clearing flags on attachment: 365391

Committed r243240: <https://trac.webkit.org/changeset/243240>
Comment 5 WebKit Commit Bot 2019-03-20 14:26:09 PDT
All reviewed patches have been landed.  Closing bug.