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

Unified Diff: chrome/test/data/extensions/platform_apps/restrictions/main.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/renderer/content_settings_observer.cc ('k') | extensions/renderer/resources/platform_app.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/restrictions/main.js
diff --git a/chrome/test/data/extensions/platform_apps/restrictions/main.js b/chrome/test/data/extensions/platform_apps/restrictions/main.js
index cca22626a9b134f0b6db2475f74323f71ff1ca4f..f566039e5c1cd44da87e491f062f82214ff9ef2d 100644
--- a/chrome/test/data/extensions/platform_apps/restrictions/main.js
+++ b/chrome/test/data/extensions/platform_apps/restrictions/main.js
@@ -67,13 +67,9 @@ chrome.test.runTests([
assertEq('undefined', typeof(history.forward));
assertEq('undefined', typeof(history.go));
assertEq('undefined', typeof(history.length));
-
- // These are part of the HTML5 History API that are feature detected, so we
- // remove them altogether, allowing apps to have fallback behavior.
- chrome.test.assertFalse('pushState' in history);
- chrome.test.assertFalse('replaceState' in history);
- chrome.test.assertFalse('state' in history);
-
+ assertEq('undefined', typeof(history.pushState));
+ assertEq('undefined', typeof(history.replaceState));
+ assertEq('undefined', typeof(history.state));
succeed();
},
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | extensions/renderer/resources/platform_app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698