Index: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp |
diff --git a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp |
index 9be0628f7f2e9aa4f3d64a257ba582dea3f300a0..2acf00402d766738f8a29c137992fbd305855d24 100644 |
--- a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp |
+++ b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp |
@@ -52,7 +52,10 @@ bool WorkletGlobalScope::isSecureContext(String& errorMessage, const SecureConte |
// Until there are APIs that are available in worklets and that |
// require a privileged context test that checks ancestors, just do |
// a simple check here. |
- return securityOrigin()->isPotentiallyTrustworthy(errorMessage); |
+ if (securityOrigin()->isPotentiallyTrustworthy()) |
+ return true; |
+ errorMessage = securityOrigin()->isPotentiallyTrustworthyErrorMessage(); |
+ return false; |
} |
KURL WorkletGlobalScope::virtualCompleteURL(const String& url) const |