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

Unified Diff: third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.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/modules/credentialmanager/PasswordCredential.cpp
diff --git a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
index a9286651f98cfe6734b13ac031996391c0b61b41..0fcae13795a2c3542f717490a6cb5bfb4ab05af3 100644
--- a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
+++ b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
@@ -46,7 +46,7 @@ FormData* PasswordCredential::toFormData(ScriptState* scriptState, const FormDat
FormData* fd = FormData::create();
String errorMessage;
- if (!scriptState->executionContext()->isPrivilegedContext(errorMessage))
+ if (!scriptState->executionContext()->isSecureContext(errorMessage))
return fd;
fd->append(options.idName(), id());

Powered by Google App Engine
This is Rietveld 408576698