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

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

Issue 11196055: Disable pushState and the rest of the history API in packaged apps via runtime-enabled features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
Index: chrome/renderer/resources/extensions/platform_app.js
diff --git a/chrome/renderer/resources/extensions/platform_app.js b/chrome/renderer/resources/extensions/platform_app.js
index d07bb14946dacbeb62902ae0a7f4d8767c52a702..feb35b29f7391d748f5731f09f55234416d3594b 100644
--- a/chrome/renderer/resources/extensions/platform_app.js
+++ b/chrome/renderer/resources/extensions/platform_app.js
@@ -79,8 +79,8 @@ disableMethods(HTMLDocument.prototype, 'document',
// Disable history.
window.history = {};
disableMethods(window.history, 'history',
- ['back', 'forward', 'go', 'pushState', 'replaceState']);
-disableGetters(window.history, 'history', ['length', 'state']);
+ ['back', 'forward', 'go']);
+disableGetters(window.history, 'history', ['length']);
// Disable find.
disableMethods(Window.prototype, 'window', ['find']);
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | chrome/test/data/extensions/platform_apps/restrictions/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698