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

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

Issue 2810263002: Deprecate __gCrWeb['sendFaviconsToHost'] by inlining it. (Closed)
Patch Set: Moved didFinishNavigation to legacy.js Created 3 years, 8 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/legacy.js ('k') | ios/web/web_state/js/resources/web_bundle.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/navigation.js
diff --git a/ios/web/web_state/js/resources/navigation.js b/ios/web/web_state/js/resources/navigation.js
index 4e299d553316b37fc7be88697bb9eea167018342..918b8aec20862f090e5bd942d42d249db7d98588 100644
--- a/ios/web/web_state/js/resources/navigation.js
+++ b/ios/web/web_state/js/resources/navigation.js
@@ -8,6 +8,7 @@
goog.provide('__crWeb.navigation');
+goog.require('__crWeb.common');
goog.require('__crWeb.message');
/** Beginning of anonymouse object */
@@ -117,6 +118,11 @@ goog.require('__crWeb.message');
};
window.addEventListener('hashchange', function(evt) {
+ // Because hash changes don't trigger __gCrWeb.didFinishNavigation, so fetch
+ // favicons for the new page manually.
+ __gCrWeb.message.invokeOnHost({'command': 'document.favicons',
+ 'favicons': __gCrWeb.common.getFavicons()});
+
__gCrWeb.message.invokeOnHost({'command': 'window.hashchange'});
});
« no previous file with comments | « ios/web/web_state/js/resources/legacy.js ('k') | ios/web/web_state/js/resources/web_bundle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698