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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 years, 3 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 98cd8dd6a9e2cff06694ae5b82d463c4df0a3985..e7fbfa121be82c83326c49acb6d8fce987ec4ebc 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5651,7 +5651,7 @@ v8::Local<v8::Object> Document::associateWithWrapper(v8::Isolate* isolate, const
return wrapper;
}
-bool Document::isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck privilegeContextCheck) const
+bool Document::isSecureContext(String& errorMessage, const SecureContextCheck privilegeContextCheck) const
{
if (SecurityContext::isSandboxed(SandboxOrigin)) {
if (!SecurityOrigin::create(url())->isPotentiallyTrustworthy(errorMessage))
@@ -5661,7 +5661,7 @@ bool Document::isPrivilegedContext(String& errorMessage, const PrivilegeContextC
return false;
}
- if (privilegeContextCheck == StandardPrivilegeCheck) {
+ if (privilegeContextCheck == StandardSecureContextCheck) {
Document* context = parentDocument();
while (context) {
// Skip to the next ancestor if it's a srcdoc.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698