Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: ios/chrome/browser/ui/static_content/static_html_native_content.mm

Issue 2616633003: Fix crash in StaticHTMLNativeContent when deallocating WKWebView on iOS9 (Closed)
Patch Set: no dismiss -> close call Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/static_content/static_html_native_content.mm
diff --git a/ios/chrome/browser/ui/static_content/static_html_native_content.mm b/ios/chrome/browser/ui/static_content/static_html_native_content.mm
index bfaa5a8905ef033758733bc89b46719e8296ef61..af1aebd82891a7eeaa9a4d68530280131fa7a8a0 100644
--- a/ios/chrome/browser/ui/static_content/static_html_native_content.mm
+++ b/ios/chrome/browser/ui/static_content/static_html_native_content.mm
@@ -85,11 +85,16 @@
- (void)setOverscrollActionsController:
(OverscrollActionsController*)controller {
_overscrollActionsController.reset([controller retain]);
+ [[self scrollView] setDelegate:controller];
}
#pragma mark -
#pragma mark CRWNativeContent implementation
+- (void)willBeDismissed {
+ [[self scrollView] setDelegate:nil];
+}
+
- (void)close {
[_overscrollActionsController invalidate];
}

Powered by Google App Engine
This is Rietveld 408576698