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

Unified Diff: ios/web/web_state/js/resources/core.js

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 | « no previous file | ios/web/web_state/js/resources/core_dynamic_ui.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/js/resources/core.js
diff --git a/ios/web/web_state/js/resources/core.js b/ios/web/web_state/js/resources/core.js
index 510c504343492c14e2eb708a045d8d76c1e64087..376d8d48e74b9bad9f3761af750955af93c4488b 100644
--- a/ios/web/web_state/js/resources/core.js
+++ b/ios/web/web_state/js/resources/core.js
@@ -434,6 +434,11 @@ goog.require('__crWeb.message');
return anchor.href;
};
+ __gCrWeb['sendFaviconsToHost'] = function() {
+ __gCrWeb.message.invokeOnHost({'command': 'document.favicons',
+ 'favicons': __gCrWeb.common.getFavicons()});
+ }
+
// Tracks whether user is in the middle of scrolling/dragging. If user is
// scrolling, ignore window.scrollTo() until user stops scrolling.
var webViewScrollViewIsDragging_ = false;
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/core_dynamic_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698