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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.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/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)

Powered by Google App Engine
This is Rietveld 408576698