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 29359cd325866a2243ac92dad940d23443211aff..8e559cb3cff1f31f98a28651323f1ef217f0c116 100644 |
| --- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp |
| @@ -661,7 +661,9 @@ void WebRemoteFrameImpl::resetReplicatedContentSecurityPolicy() const |
| void WebRemoteFrameImpl::setReplicatedShouldEnforceStrictMixedContentChecking(bool shouldEnforce) const |
| { |
| DCHECK(frame()); |
| - frame()->securityContext()->setShouldEnforceStrictMixedContentChecking(shouldEnforce); |
| + WebInsecureRequestPolicy oldPolicy = frame()->securityContext()->getInsecureRequestPolicy(); |
| + WebInsecureRequestPolicy newPolicy = shouldEnforce ? oldPolicy & ~kBlockAllMixedContent : oldPolicy | kBlockAllMixedContent; |
|
Yoav Weiss
2016/06/07 11:18:53
Isn't that condition the inverse of what it should
|
| + frame()->securityContext()->setInsecureRequestPolicy(newPolicy); |
| } |
| void WebRemoteFrameImpl::setReplicatedPotentiallyTrustworthyUniqueOrigin(bool isUniqueOriginPotentiallyTrustworthy) const |