| Index: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
| index a15ff0650f94f73d8df42d88f37bd53895c857a6..b9cf519efd6fc151de82599e8ef7215c34395bbe 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
|
| @@ -298,6 +298,8 @@ bool WorkerGlobalScope::IsSecureContext(String& error_message) const {
|
| // |isSecureContext| check here, we can check the responsible
|
| // document for a privileged context at worker creation time, pass
|
| // it in via WorkerThreadStartupData, and check it here.
|
| + // (Note: also update WorkerShadowFetchContext's IsSecureContext
|
| + // implementation when we update this.)
|
| if (GetSecurityOrigin()->IsPotentiallyTrustworthy())
|
| return true;
|
| error_message = GetSecurityOrigin()->IsPotentiallyTrustworthyErrorMessage();
|
|
|