diff --git a/source b/source index ca1389014e0..808dcf6db88 100644 --- a/source +++ b/source @@ -26062,6 +26062,19 @@ document.body.appendChild(wbr);
An element implementing the HTMLHyperlinkElementUtils mixin has an associated url (null or a URL). It is initially null.
+
An element implementing the HTMLHyperlinkElementUtils mixin has the following
+ extract an origin steps:
If this's url is null, then + return null.
Return this's url's + origin.
An element implementing the HTMLHyperlinkElementUtils mixin has an associated set the url algorithm, which runs these steps:
Origin interfaceThe Origin interface represents an
+ origin, allowing robust same origin and same site
+ comparisons.
[Exposed=*]
+interface Origin {
+ constructor();
+
+ static Origin from(any value);
+
+ readonly attribute boolean opaque;
+
+ boolean isSameOrigin(Origin other);
+ boolean isSameSite(Origin other);
+};
+
+ Origin objects have an associated
+ origin, which holds an
+ origin.
Platform objects have an + extract an origin operation, which returns null unless + otherwise specified.
+ +Objects implementing the Origin interface's
+ extract an origin steps are to return this's
+ origin.
The new Origin() constructor steps are:
Set this's origin to a unique + opaque origin.
The static from(value) method steps are:
If value is a platform object:
+Let origin be the result of executing value's extract an + origin operation.
If origin is not null, then return a new
+ Origin object whose
+ origin is set to origin.
If value is a string:
+Let parsed url be the result of basic URL + parsing value.
If parsed url is not failure, then return a new
+ Origin object whose
+ origin is set to parsed url's
+ origin.
Throw a TypeError.
The opaque attribute
+ getter steps are to return true if this's
+ origin is an opaque
+ origin; otherwise false.
The isSameOrigin(other) method returns true if
+ this's origin is same origin
+ with other's origin; otherwise false.
The isSameSite(other) method returns true if
+ this's origin is same site with
+ other's origin; otherwise false.
An element implementing the WindowOrWorkerGlobalScope mixin has the following
+ extract an origin steps:
If this's relevant settings object's origin is not same origin-domain + with the entry settings object's origin, then return null.
Return this's return this's relevant settings + object's origin.
Since these objects are potentially accessible cross-origin (e.g., through
+ WindowProxy), we need a security check here before granting access to the origin.
Objects implementing the MessageEvent interface's extract an origin
+ steps are to return this's relevant settings object's
+ origin.
The lastEventId attribute must return the value it
@@ -131655,6 +131789,7 @@ interface WorkerLocation {
A WorkerLocation object has an associated WorkerGlobalScope object (a
WorkerGlobalScope object).