| Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| index d708cfe37d73ad9a4f6b42e156dd8ac3d8a82054..c039bea918ac3f70932439bee7282a10e43f053f 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| @@ -1481,8 +1481,11 @@ bool ContentSecurityPolicy::ShouldBypassMainWorld(
|
| const ExecutionContext* context) {
|
| if (context && context->IsDocument()) {
|
| const Document* document = ToDocument(context);
|
| - if (document->GetFrame())
|
| - return document->GetFrame()->Script().ShouldBypassMainWorldCSP();
|
| + if (document->GetFrame()) {
|
| + return document->GetFrame()
|
| + ->GetScriptController()
|
| + .ShouldBypassMainWorldCSP();
|
| + }
|
| }
|
| return false;
|
| }
|
|
|