Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index a2c64fe4c55ec089c14c048ddf7560c66e7dc815..f65c5b666138d903af0dfc162fdaa37d6b022568 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -680,7 +680,8 @@ CommonNavigationParams MakeCommonNavigationParams( |
report_type, GURL(), GURL(), |
static_cast<PreviewsState>(info.urlRequest.getPreviewsState()), |
base::TimeTicks::Now(), info.urlRequest.httpMethod().latin1(), |
- GetRequestBodyForWebURLRequest(info.urlRequest)); |
+ GetRequestBodyForWebURLRequest(info.urlRequest), |
+ info.shouldBypassMainWorldCSP); |
} |
media::Context3D GetSharedMainThreadContext3D( |
@@ -1566,6 +1567,8 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) { |
OnTextTrackSettingsChanged) |
IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) |
IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) |
+ IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, |
+ OnReportContentSecurityPolicyViolation) |
IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, |
OnGetSavableResourceLinks) |
IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, |
@@ -5246,6 +5249,12 @@ void RenderFrameImpl::OnFailedNavigation( |
browser_side_navigation_pending_ = false; |
} |
+void RenderFrameImpl::OnReportContentSecurityPolicyViolation( |
+ const content::CSPViolationParams& violation_params) { |
+ frame_->reportContentSecurityPolicyViolation( |
+ BuildWebContentSecurityPolicyViolation(violation_params)); |
+} |
+ |
WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation( |
const NavigationPolicyInfo& info) { |
// A content initiated navigation may have originated from a link-click, |