summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_switches.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:59:15 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 20:59:15 +0000
commit58adf848df7ad7a724be0526e25196ba6adee0e9 (patch)
treebe019ccbc5b0778ab24423fc568b710d8e57cbaf /chrome/common/chrome_switches.cc
parent9b05174501e3d9da6da4a2473aa666c48366401b (diff)
downloadchromium_src-58adf848df7ad7a724be0526e25196ba6adee0e9.zip
chromium_src-58adf848df7ad7a724be0526e25196ba6adee0e9.tar.gz
chromium_src-58adf848df7ad7a724be0526e25196ba6adee0e9.tar.bz2
Add a command line option --disable-web-security. People can use this option when the same-origin policy interferes with testing their web sites.
R=deanm BUG=6449 Review URL: http://codereview.chromium.org/20101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r--chrome/common/chrome_switches.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index c161449..00e7f11 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -299,6 +299,9 @@ const wchar_t kDisablePopupBlocking[] = L"disable-popup-blocking";
// Don't execute JavaScript (browser JS like the new tab page still runs).
const wchar_t kDisableJavaScript[] = L"disable-javascript";
+// Don't enforce the same-origin policy. (Used by people testing their sites.)
+const wchar_t kDisableWebSecurity[] = L"disable-web-security";
+
// Prevent Java from running.
const wchar_t kDisableJava[] = L"disable-java";