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

Unified Diff: chrome/browser/extensions/platform_app_browsertest.cc

Issue 9192021: Disallow WebSQL and localStorage in platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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/browser/extensions/platform_app_browsertest.cc
diff --git a/chrome/browser/extensions/platform_app_browsertest.cc b/chrome/browser/extensions/platform_app_browsertest.cc
index 8644eb205d74d808cb7f6cbfcfc5440cf28fd881..abde2eedc0e880594e1b4738ff8b590bbd7cf26c 100644
--- a/chrome/browser/extensions/platform_app_browsertest.cc
+++ b/chrome/browser/extensions/platform_app_browsertest.cc
@@ -210,3 +210,14 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowNavigation) {
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowModalDialogs) {
ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_;
}
+
+// Tests that localStorage and WebSQL are disabled for platform apps.
+// Disabled until shell windows are implemented for non-GTK, non-Views toolkits.
+#if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS)
+#define MAYBE_DisallowStorage DisallowStorage
+#else
+#define MAYBE_DisallowStorage DISABLED_DisallowStorage
+#endif
+IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowStorage) {
+ ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_;
+}
« no previous file with comments | « chrome/browser/extensions/extension_webkit_preferences.cc ('k') | chrome/test/data/extensions/platform_apps/storage/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698