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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/CacheStorage.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/cachestorage/CacheStorage.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
index 5f74d519f5ac880b944aebd9c49d9e85a0a462c8..62edb3d56e60c845135b92ccf582b8ba698886f9 100644
--- a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
@@ -33,7 +33,7 @@ bool commonChecks(ScriptState* scriptState, ExceptionState& exceptionState)
return false;
String errorMessage;
- if (!executionContext->isPrivilegedContext(errorMessage)) {
+ if (!executionContext->isSecureContext(errorMessage)) {
exceptionState.throwSecurityError(errorMessage);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698