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

Unified Diff: third_party/WebKit/Source/web/WebDocument.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/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 9ef8eba26d5fbe4f0fabe032d22b475a1330afce..371e42b7580c0bbf14fb730518558165e7e038a6 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -82,13 +82,13 @@ WebSecurityOrigin WebDocument::securityOrigin() const
return WebSecurityOrigin(constUnwrap<Document>()->securityOrigin());
}
-bool WebDocument::isPrivilegedContext(WebString& errorMessage) const
+bool WebDocument::isSecureContext(WebString& errorMessage) const
{
const Document* document = constUnwrap<Document>();
if (!document)
return false;
String message;
- bool result = document->isPrivilegedContext(message);
+ bool result = document->isSecureContext(message);
errorMessage = message;
return result;
}

Powered by Google App Engine
This is Rietveld 408576698