| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 4af9b671725620814b3f5d10384a881f4c68d83a..c1ac3f0c955ea93e6c1263b2e90348286f84a5c5 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -684,7 +684,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(
|
| @@ -1570,6 +1571,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,
|
| @@ -5228,6 +5231,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,
|
|
|