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

Unified Diff: ios/chrome/browser/ui/reading_list/offline_page_native_content.mm

Issue 2616633003: Fix crash in StaticHTMLNativeContent when deallocating WKWebView on iOS9 (Closed)
Patch Set: setDelegate in dealloc 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/reading_list/offline_page_native_content.mm
diff --git a/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm b/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
index 7d1945ebd9585d5875e877c1ca11c733a5641880..1d2442330ffb93563eaaabc70ca2a397907ecca0 100644
--- a/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
+++ b/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
@@ -92,6 +92,7 @@
- (void)restoreOnlineURL {
web::NavigationItem* item =
_webState->GetNavigationManager()->GetLastCommittedItem();
+ DCHECK(item && item->GetVirtualURL() == [self virtualURL]);
item->SetURL([self virtualURL]);
item->SetVirtualURL([self virtualURL]);
}
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | ios/chrome/browser/ui/static_content/static_html_native_content.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698