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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1360543004: Manually fetch favicons after hash changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: JSON handler => string handler Created 4 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
« no previous file with comments | « ios/web/web_state/js/resources/core_dynamic_wk.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 01d6a55bab99f5395748b249ddb4716e5b96dee0..45614483df75bda8ff038c66ee4625f5d1342d6e 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -2426,6 +2426,11 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
context:(NSDictionary*)context {
[self checkForUnexpectedURLChange];
+ // Because hash changes don't trigger |-didFinishNavigation|, fetch favicons
+ // for the new page manually.
+ [self evaluateJavaScript:@"__gCrWeb.sendFaviconsToHost();"
+ stringResultHandler:nil];
+
// Notify the observers.
_webStateImpl->OnUrlHashChanged();
return YES;
« no previous file with comments | « ios/web/web_state/js/resources/core_dynamic_wk.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698