Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp

Issue 1716303002: Remove SecurityOrigin::isPotentiallyTrustworthy() |errorMessage| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698