Commit 030c6b95 authored by Philip Jägenstedt's avatar Philip Jägenstedt Committed by Commit Bot

Update links to the Secure Contexts spec

Part of https://github.com/w3c/web-platform-tests/issues/7784 and
roundabout manner.

Change-Id: I7a11d22240784d94776d77ca07d0c28b1ef12736
Reviewed-on: https://chromium-review.googlesource.com/952670Reviewed-by: default avatarEmily Stark <estark@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542295}
parent 764281a9
...@@ -176,7 +176,7 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier, ...@@ -176,7 +176,7 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
bool IsWindowInteractionAllowed() const; bool IsWindowInteractionAllowed() const;
// Decides whether this context is privileged, as described in // Decides whether this context is privileged, as described in
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged. // https://w3c.github.io/webappsec-secure-contexts/#is-settings-object-contextually-secure.
virtual bool IsSecureContext(String& error_message) const = 0; virtual bool IsSecureContext(String& error_message) const = 0;
virtual bool IsSecureContext() const; virtual bool IsSecureContext() const;
......
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
attribute EventHandler onwebkitanimationstart; attribute EventHandler onwebkitanimationstart;
attribute EventHandler onwebkittransitionend; attribute EventHandler onwebkittransitionend;
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#monkey-patching-global-object // https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object
readonly attribute boolean isSecureContext; readonly attribute boolean isSecureContext;
attribute DOMMatrixConstructor WebKitCSSMatrix; attribute DOMMatrixConstructor WebKitCSSMatrix;
......
...@@ -183,7 +183,7 @@ void ServiceWorkerContainer::RegisterServiceWorkerImpl( ...@@ -183,7 +183,7 @@ void ServiceWorkerContainer::RegisterServiceWorkerImpl(
execution_context->GetSecurityOrigin(); execution_context->GetSecurityOrigin();
String error_message; String error_message;
// Restrict to secure origins: // Restrict to secure origins:
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged // https://w3c.github.io/webappsec-secure-contexts/#is-settings-object-contextually-secure
if (!execution_context->IsSecureContext(error_message)) { if (!execution_context->IsSecureContext(error_message)) {
callbacks->OnError(WebServiceWorkerError( callbacks->OnError(WebServiceWorkerError(
mojom::blink::ServiceWorkerErrorType::kSecurity, error_message)); mojom::blink::ServiceWorkerErrorType::kSecurity, error_message));
......
...@@ -144,7 +144,7 @@ class PLATFORM_EXPORT SchemeRegistry { ...@@ -144,7 +144,7 @@ class PLATFORM_EXPORT SchemeRegistry {
PolicyAreas = kPolicyAreaAll); PolicyAreas = kPolicyAreaAll);
// Schemes which bypass Secure Context checks defined in // Schemes which bypass Secure Context checks defined in
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustworthy. // https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy
static void RegisterURLSchemeBypassingSecureContextCheck( static void RegisterURLSchemeBypassingSecureContextCheck(
const String& scheme); const String& scheme);
static bool SchemeShouldBypassSecureContextCheck(const String& scheme); static bool SchemeShouldBypassSecureContextCheck(const String& scheme);
......
...@@ -123,7 +123,7 @@ class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> { ...@@ -123,7 +123,7 @@ class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> {
// Returns true if the origin loads resources either from the local // Returns true if the origin loads resources either from the local
// machine or over the network from a // machine or over the network from a
// cryptographically-authenticated origin, as described in // cryptographically-authenticated origin, as described in
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustworthy. // https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy
bool IsPotentiallyTrustworthy() const; bool IsPotentiallyTrustworthy() const;
// Returns a human-readable error message describing that a non-secure // Returns a human-readable error message describing that a non-secure
......
...@@ -92,7 +92,7 @@ class WebSecurityOrigin { ...@@ -92,7 +92,7 @@ class WebSecurityOrigin {
// Returns true if the origin loads resources either from the local // Returns true if the origin loads resources either from the local
// machine or over the network from a // machine or over the network from a
// cryptographically-authenticated origin, as described in // cryptographically-authenticated origin, as described in
// https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustworthy. // https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy.
BLINK_PLATFORM_EXPORT bool IsPotentiallyTrustworthy() const; BLINK_PLATFORM_EXPORT bool IsPotentiallyTrustworthy() const;
// Returns a string representation of the WebSecurityOrigin. The empty // Returns a string representation of the WebSecurityOrigin. The empty
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment