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

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

Issue 2565673003: Fix window.history.go() with no parameter. (Closed)
Patch Set: fix bug in javascript Created 4 years 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 | no next file » | 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 c08e6791d924832f40596add09fcdb6eceeed772..5562258a72b73e7bf4ae4d4cb410ddd84a014cbf 100644
--- a/ios/web/web_state/js/resources/core.js
+++ b/ios/web/web_state/js/resources/core.js
@@ -425,7 +425,7 @@ goog.require('__crWeb.message');
invokeOnHost_({'command': 'window.history.forward'});
};
window.history.go = function(delta) {
- invokeOnHost_({'command': 'window.history.go', 'value': delta});
+ invokeOnHost_({'command': 'window.history.go', 'value': delta | 0});
};
window.history.pushState = function(stateObject, pageTitle, pageUrl) {
__gCrWeb.message.invokeOnHost(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698