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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2838603002: Added [SecureContext] to the subtle attribute (Closed)
Patch Set: Magic test starts doing differnt things out of the blue. Need to handle this properly. Avada Kedavr… Created 3 years, 8 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/ExecutionContext.h
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
index f4c1aedbda219adf3835150714039930425fbb94..0929c3ecc950be92cf7ef7c869c4fb6d741ef23e 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
@@ -68,14 +68,6 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
public:
DECLARE_VIRTUAL_TRACE();
- // Used to specify whether |isSecureContext| should walk the
- // ancestor tree to decide whether to restrict usage of a powerful
- // feature.
- enum SecureContextCheck {
- kStandardSecureContextCheck,
- kWebCryptoSecureContextCheck
- };
-
static ExecutionContext* From(const ScriptState*);
virtual bool IsDocument() const { return false; }
@@ -172,11 +164,8 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
// Decides whether this context is privileged, as described in
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged.
- virtual bool IsSecureContext(
- String& error_message,
- const SecureContextCheck = kStandardSecureContextCheck) const = 0;
- virtual bool IsSecureContext(
- const SecureContextCheck = kStandardSecureContextCheck) const;
+ virtual bool IsSecureContext(String& error_message) const = 0;
+ virtual bool IsSecureContext() const;
virtual String OutgoingReferrer() const;
// Parses a comma-separated list of referrer policy tokens, and sets
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698