Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / renderer / resources / extensions / platform_app.js
index 0982a6a..f6934cf 100644 (file)
@@ -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.