Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| index e9c08e2b9a8ebcc4dcb1174dfbee4b75c3e1f3fc..9e4b630214cf67fe66321f99d5fbdf262205ffff 100644 |
| --- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| @@ -658,12 +658,10 @@ void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const |
| frame()->securityContext()->resetReplicatedContentSecurityPolicy(); |
| } |
| -void WebRemoteFrameImpl::setReplicatedShouldEnforceStrictMixedContentChecking(bool shouldEnforce) const |
| +void WebRemoteFrameImpl::setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy policy) const |
| { |
| DCHECK(frame()); |
| - WebInsecureRequestPolicy oldPolicy = frame()->securityContext()->getInsecureRequestPolicy(); |
| - WebInsecureRequestPolicy newPolicy = shouldEnforce ? oldPolicy | kBlockAllMixedContent : oldPolicy & ~kBlockAllMixedContent; |
| - frame()->securityContext()->setInsecureRequestPolicy(newPolicy); |
| + frame()->securityContext()->setInsecureRequestPolicy(policy); |
|
Yoav Weiss
2016/06/07 14:13:14
Is merging of both policies no longer required?
Mike West
2016/06/07 15:56:23
The previous iteration didn't merge the policies;
|
| } |
| void WebRemoteFrameImpl::setReplicatedPotentiallyTrustworthyUniqueOrigin(bool isUniqueOriginPotentiallyTrustworthy) const |