Changeset 195424 in webkit
- Timestamp:
- Jan 21, 2016, 3:34:01 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/Cocoa/WKWebView.mm (modified) (1 diff)
-
UIProcess/ios/WKContentView.h (modified) (1 diff)
-
UIProcess/ios/WKContentView.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195421 r195424 1 2016-01-21 Dean Jackson <dino@apple.com> 2 3 [iOS] Crash in _endPotentialTapAndEnableDoubleTapGesturesIfNecessary 4 https://bugs.webkit.org/show_bug.cgi?id=153326 5 <rdar://problem/24264339> 6 7 Reviewed by Anders Carlsson. 8 9 UIKit's UIGestureRecognizer could call back into the WKContentView 10 after the associated WKWebView has disappeared. The fix is to 11 explicitly null the WKWebView reference as we deallocate. 12 13 * UIProcess/API/Cocoa/WKWebView.mm: 14 (-[WKWebView dealloc]): Tell the WKContentView we are going away. 15 * UIProcess/ios/WKContentView.h: 16 * UIProcess/ios/WKContentView.mm: 17 (-[WKContentView _webViewDestroyed]): 18 * UIProcess/ios/WKContentViewInteraction.mm: 19 (-[WKContentView _endPotentialTapAndEnableDoubleTapGesturesIfNecessary]): 20 Only do something if the WKWebView is still around. 21 1 22 2016-01-21 Beth Dakin <bdakin@apple.com> 2 23 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r195421 r195424 485 485 486 486 #if PLATFORM(IOS) 487 [_contentView _webViewDestroyed]; 488 487 489 if (_remoteObjectRegistry) 488 490 _page->process().processPool().removeMessageReceiver(Messages::RemoteObjectRegistry::messageReceiverName(), _page->pageID()); -
trunk/Source/WebKit2/UIProcess/ios/WKContentView.h
r191644 r195424 76 76 - (void)willStartZoomOrScroll; 77 77 78 - (void)_webViewDestroyed; 79 78 80 - (std::unique_ptr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy; 79 81 - (void)_processDidExit; -
trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm
r194496 r195424 454 454 } 455 455 456 - (void)_webViewDestroyed 457 { 458 _webView = nil; 459 } 460 456 461 #pragma mark PageClientImpl methods 457 462
Note:
See TracChangeset
for help on using the changeset viewer.