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

Unified Diff: chrome/common/chrome_switches.cc

Issue 402029: Don't allow content scripts to execute on file:// urls.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/common/chrome_switches.h ('k') | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
===================================================================
--- chrome/common/chrome_switches.cc (revision 32232)
+++ chrome/common/chrome_switches.cc (working copy)
@@ -187,10 +187,14 @@
// 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 @@
// 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++.
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698