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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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/platform/weborigin/SecurityOrigin.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
index 84f740fc03ff7327967632e6f58fb297406c20b3..75ccae4168e61cf84ba79686b9a8fb9e9cea04aa 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
@@ -359,6 +359,15 @@ bool SecurityOrigin::isPotentiallyTrustworthy() const
return false;
}
+bool SecurityOrigin::isPotentiallyTrustworthy(String* errorMessage) const
+{
+ if (isPotentiallyTrustworthy())
+ return true;
+ if (errorMessage)
+ *errorMessage = isPotentiallyTrustworthyErrorMessage();
+ return false;
+}
+
// static
String SecurityOrigin::isPotentiallyTrustworthyErrorMessage()
{

Powered by Google App Engine
This is Rietveld 408576698