summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 05:28:31 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 05:28:31 +0000
commitd362aecec340d190b11e36dbf01e7f9111784729 (patch)
treec5380bca803929102b952fd7879e5e0f90fb9e52 /chrome
parent55c1e6296120949a6633ba764e3a9ec12e663a8b (diff)
downloadchromium_src-d362aecec340d190b11e36dbf01e7f9111784729.zip
chromium_src-d362aecec340d190b11e36dbf01e7f9111784729.tar.gz
chromium_src-d362aecec340d190b11e36dbf01e7f9111784729.tar.bz2
Enable the XSSAuditor by default. Please watch out for compatibility issues.
Review URL: http://codereview.chromium.org/174013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/render_view_host_delegate_helper.cc2
-rw-r--r--chrome/common/chrome_switches.cc5
-rw-r--r--chrome/common/chrome_switches.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index 5146caf..458b1b2 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -175,7 +175,7 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
web_prefs.remote_fonts_enabled =
command_line.HasSwitch(switches::kEnableRemoteFonts);
web_prefs.xss_auditor_enabled =
- command_line.HasSwitch(switches::kEnableXSSAuditor);
+ !command_line.HasSwitch(switches::kDisableXSSAuditor);
web_prefs.application_cache_enabled =
command_line.HasSwitch(switches::kEnableApplicationCache);
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 4204e27..70a4ad5 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -525,9 +525,8 @@ const wchar_t kFileDescriptorLimit[] = L"file-descriptor-limit";
// to be sRGB.
const wchar_t kEnableMonitorProfile[] = L"enable-monitor-profile";
-// Enable WebKit's XSSAuditor to mitigate reflective XSS. The XSSAuditor is
-// still experimental.
-const wchar_t kEnableXSSAuditor[] = L"enable-xss-auditor";
+// Disable WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS.
+const wchar_t kDisableXSSAuditor[] = L"disable-xss-auditor";
#if defined(OS_POSIX)
// A flag, generated internally by Chrome for renderer and other helper process
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index e3ff1a9..d38a0d9 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -199,7 +199,7 @@ extern const wchar_t kFileDescriptorLimit[];
extern const wchar_t kEnableMonitorProfile[];
-extern const wchar_t kEnableXSSAuditor[];
+extern const wchar_t kDisableXSSAuditor[];
#if defined(OS_POSIX)
extern const wchar_t kEnableCrashReporter[];