From: Andrzej Surdej Date: Tue, 19 Mar 2013 12:41:47 +0000 (+0100) Subject: Disable CSP support and config.xml tag renamed. X-Git-Tag: accepted/tizen_2.1/20130425.023916~18^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d4c1d751638c7d071e6ef65b9c5c519214a8d37;p=framework%2Fweb%2Fwrt-installer.git Disable CSP support and config.xml tag renamed. [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] N/A [Verification] Build repo Change-Id: Icf77b94254ec2b39e0980db0213aed7207467751 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 78004ae..5a23ce2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE) #csp from .xml parsing enabled -OPTION(CSP_SUPPORT "Support for csp policy" ON) +OPTION(CSP_SUPPORT "Support for csp policy" OFF) IF(CSP_SUPPORT) ADD_DEFINITIONS("-DCSP_ENABLED") diff --git a/src/configuration_parser/widget_parser.cpp b/src/configuration_parser/widget_parser.cpp index df343dc..026a84d 100644 --- a/src/configuration_parser/widget_parser.cpp +++ b/src/configuration_parser/widget_parser.cpp @@ -2545,11 +2545,11 @@ WidgetParser::WidgetParser(ConfigParserData& data) : &WidgetParser::OnCategoryElement); m_map[L"app-widget"] = DPL::MakeDelegate(this, &WidgetParser::OnAppWidgetElement); #ifdef CSP_ENABLED - m_map[L"Content-Security-Policy"] = DPL::MakeDelegate( + m_map[L"content-security-policy"] = DPL::MakeDelegate( this, &WidgetParser:: OnCspElement); - m_map[L"Content-Security-Policy-Report-Only"] = DPL::MakeDelegate( + m_map[L"content-security-policy-report-only"] = DPL::MakeDelegate( this, &WidgetParser:: OnCspReportOnlyElement);