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

Unified Diff: extensions/renderer/resources/platform_app.js

Issue 988293002: platform apps: Disables history.pushState/replaceState in platform_app.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « chrome/test/data/extensions/platform_apps/restrictions/main.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/platform_app.js
diff --git a/extensions/renderer/resources/platform_app.js b/extensions/renderer/resources/platform_app.js
index 280155fcea2bc768b8c74d7d95d143a320ac50ce..b34a303e04895cdc9b248f555682d6428ab6a281 100644
--- a/extensions/renderer/resources/platform_app.js
+++ b/extensions/renderer/resources/platform_app.js
@@ -153,7 +153,8 @@ disableMethods(HTMLDocument.prototype, 'document', ['write', 'writeln'], true);
// Disable history.
Object.defineProperty(window, "history", { value: {} });
-disableGetters(window.history, 'history', ['back', 'forward', 'go', 'length']);
+disableGetters(window.history, 'history',
+ ['back', 'forward', 'go', 'length', 'pushState', 'replaceState']);
// Disable find.
disableMethods(Window.prototype, 'window', ['find']);
« no previous file with comments | « chrome/test/data/extensions/platform_apps/restrictions/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698