From 58adf848df7ad7a724be0526e25196ba6adee0e9 Mon Sep 17 00:00:00 2001 From: "abarth@chromium.org" Date: Fri, 6 Feb 2009 20:59:15 +0000 Subject: 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 --- webkit/glue/webview_impl.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'webkit/glue/webview_impl.cc') diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index 024d689..c1a175d 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1266,6 +1266,7 @@ void WebViewImpl::SetPreferences(const WebPreferences& preferences) { settings->setDefaultTextEncodingName(webkit_glue::StdWStringToString( preferences.default_encoding)); settings->setJavaScriptEnabled(preferences.javascript_enabled); + settings->setWebSecurityEnabled(preferences.web_security_enabled); settings->setJavaScriptCanOpenWindowsAutomatically( preferences.javascript_can_open_windows_automatically); settings->setLoadsImagesAutomatically( -- cgit v1.1