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 df554007a2a6071a03e56d3e372338572d445d5e..966957bc44f0dd6dd98a8a255ad20a5dc5b807f4 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp |
@@ -381,7 +381,10 @@ bool WorkerGlobalScope::isSecureContext(String& errorMessage, const SecureContex |
// |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. |
- return securityOrigin()->isPotentiallyTrustworthy(errorMessage); |
+ if (securityOrigin()->isPotentiallyTrustworthy()) |
+ return true; |
+ errorMessage = securityOrigin()->isPotentiallyTrustworthyErrorMessage(); |
+ return false; |
} |
void WorkerGlobalScope::removeURLFromMemoryCache(const KURL& url) |