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 0982a6a18ea0b4371208292f1fd14f6ed4d3b921..f6934cf0bf94d84d625f989b1bd535794f5160d9 100644 |
--- a/chrome/renderer/resources/extensions/platform_app.js |
+++ b/chrome/renderer/resources/extensions/platform_app.js |
@@ -152,7 +152,7 @@ disableMethods(HTMLDocument.prototype, 'document', ['open', 'clear', 'close']); |
disableMethods(HTMLDocument.prototype, 'document', ['write', 'writeln'], true); |
// Disable history. |
-window.history = {}; |
+Object.defineProperty(window, "history", { value: {} }); |
disableGetters(window.history, 'history', ['back', 'forward', 'go', 'length']); |
// Disable find. |