diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 19:07:14 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 19:07:14 +0000 |
commit | f62a8906648ddfcee0ffa9604939d4c7f66891aa (patch) | |
tree | 8718200d4678647932c32844e7de6391f22bcf40 /chrome | |
parent | 711af1e567247935ce44a0ab253ea9cbfcb3a5fb (diff) | |
download | chromium_src-f62a8906648ddfcee0ffa9604939d4c7f66891aa.zip chromium_src-f62a8906648ddfcee0ffa9604939d4c7f66891aa.tar.gz chromium_src-f62a8906648ddfcee0ffa9604939d4c7f66891aa.tar.bz2 |
Enable the XSSAuditor by default.
R=dglazkov
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 2 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
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 2f0eef8..4f1a5aa 100644 --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc @@ -176,7 +176,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 26f6d6d..705f5a2 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -540,9 +540,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 0d4c254..4cfbff8 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -205,7 +205,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[]; |