diff options
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 2 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 2 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
3 files changed, 3 insertions, 3 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 64b62f6..2385069 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::kDisableRemoteFonts); web_prefs.xss_auditor_enabled = - !command_line.HasSwitch(switches::kDisableXSSAuditor); + command_line.HasSwitch(switches::kEnableXSSAuditor); web_prefs.application_cache_enabled = !command_line.HasSwitch(switches::kDisableApplicationCache); diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 631f39f..a440c55 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -188,7 +188,7 @@ const char kDisableWebSecurity[] = "disable-web-security"; const char kDisableWebSockets[] = "disable-web-sockets"; // Disable WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. -const char kDisableXSSAuditor[] = "disable-xss-auditor"; +const char kEnableXSSAuditor[] = "enable-xss-auditor"; // Use a specific disk cache location, rather than one derived from the // UserDatadir. diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index edda3d5..8c0d490 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -69,7 +69,7 @@ extern const char kDisableSyncTypedUrls[]; extern const char kDisableWebResources[]; extern const char kDisableWebSecurity[]; extern const char kDisableWebSockets[]; -extern const char kDisableXSSAuditor[]; +extern const char kEnableXSSAuditor[]; extern const char kDiskCacheDir[]; extern const char kDiskCacheSize[]; extern const char kDnsLogDetails[]; |