summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_switches.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 03:21:13 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 03:21:13 +0000
commit5f8681f6e104c322166e4bb860e242a86a601e13 (patch)
treed8e1516961fc938178e46ebdc2df9e7d5458a67c /chrome/common/chrome_switches.cc
parenta3d46f7e58274fc65cb89628a8e89fc49bca2750 (diff)
downloadchromium_src-5f8681f6e104c322166e4bb860e242a86a601e13.zip
chromium_src-5f8681f6e104c322166e4bb860e242a86a601e13.tar.gz
chromium_src-5f8681f6e104c322166e4bb860e242a86a601e13.tar.bz2
Don't allow content scripts to execute on file:// urls.
This requires a command line flag for the page cycler tests, since those load file:// urls. BUG=27877 TEST=Bunch of tests affected. Review URL: http://codereview.chromium.org/402029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r--chrome/common/chrome_switches.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 060adffd..61c0b98 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -187,10 +187,14 @@ const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api";
// Enable the fastback page cache.
const char kEnableFastback[] = "enable-fastback";
-// By default, cookies are not allowed on file://. They are needed in for
+// By default, cookies are not allowed on file://. They are needed for
// testing, for example page cycler and layout tests. See bug 1157243.
const char kEnableFileCookies[] = "enable-file-cookies";
+// By default, js content scripts are not allowed on file://. They are needed
+// for page cycler tests. See http://crbug.com/27877.
+const char kEnableJsOnFileUrls[] = "enable-content-script-on-file-urls";
+
// Disable LocalStorage.
const char kDisableLocalStorage[] = "disable-local-storage";
@@ -203,7 +207,7 @@ const char kEnableLogging[] = "enable-logging";
// assumed to be sRGB.
const char kEnableMonitorProfile[] = "enable-monitor-profile";
-// Enable Native Web Worker support
+// Enable Native Web Worker support.
const char kEnableNativeWebWorkers[] = "enable-native-web-workers";
// Enable AutoFill++.