From 9d56f343dcfe7f39d5715f5acf4afda17635907f Mon Sep 17 00:00:00 2001
From: Mike West An element implementing the An element implementing the If this's url is null, return
+ null. Return this's url's
+ origin. An element implementing the The Platform objects have an
+ extract an origin operation, which returns null unless
+ otherwise specified. Objects implementing the The Set this's [[origin]] internal slot to a unique
+ opaque origin. The static If value is a platform object: Let origin be the result of executing value's extract an
+ origin operation. If origin is not null, return a new
+ If value is a string: Let parsed url be the result of basic URL
+ parsing value. If parsed url is not failure, return a new
+ Throw a The The The This is a same site, not schemelessly same
+ site, comparison. For the reasons explained in URL The
+ HTMLHyperlinkElementUtils mixin has an associated url (null or a URL). It is initially null.
+ HTMLHyperlinkElementUtils mixin has the following
+ extract an origin steps:
+
+ HTMLHyperlinkElementUtils mixin has an associated set the url algorithm, which runs these steps:The
+
+ Origin interfaceOrigin 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
+ [[origin]] internal slot, which holds an
+ origin.Origin interface's
+ extract an origin steps are to return this's
+ [[origin]].new Origin() constructor steps are:
+
+ from(value)
+ method accepts an arbitrary object value, and returns either a newly-constructed
+ Origin object if one can be extracted from
+ value, or throws a TypeError otherwise:
+
+
+
+ Origin object whose [[origin]] is set
+ to origin.
+
+ Origin object whose [[origin]] is set
+ to parsed url's origin.TypeError.opaque attribute
+ getter steps are to return true if this's [[origin]] is an opaque origin, and false otherwise.isSameOrigin(other) method returns true if
+ this's [[origin]] is same origin with other's
+ [[origin]], and false otherwise.isSameSite(other) method returns true if
+ this's [[origin]] is same site with other's
+ [[origin]], and false otherwise.Origin origin does not offer schemeless comparison.Origin-keyed agent clusters
@@ -96906,6 +97016,21 @@ interface Location { // but see also origin is not same origin-domain with
+ the entry settings object's
+ origin, then return null.
Return this's url's + origin.
A Location object has an associated ancestor origins list. When a
@@ -123029,6 +123154,24 @@ document.body.appendChild(frame)
capability.
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, 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 +131804,14 @@ interface WorkerLocation {
Objects implementing the WorkerLocation interface's extract an origin
+ steps are to return this's WorkerGlobalScope object's
+ url's origin.
A WorkerLocation object has an associated WorkerGlobalScope object (a
WorkerGlobalScope object).
From b0fdce52977c41bf9defe1dbe44a905413651da0 Mon Sep 17 00:00:00 2001
From: Mike West
If this's url is null, return - null.
If this's url is null, then + return null.
Return this's url's origin.
Origin objects have an
- [[origin]] internal slot, which holds an
+
Origin objects have an associated
+ origin, which holds an
origin.
Platform objects have an @@ -92456,7 +92457,7 @@ interface Origin {
Objects implementing the Origin interface's
extract an origin steps are to return this's
- [[origin]].
Set this's [[origin]] internal slot to a unique +
Set this's origin to a unique opaque origin.
Let origin be the result of executing value's extract an origin operation.
If origin is not null, return a new
- Origin object whose [[origin]] is set
- to origin.
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, return a new
- Origin object whose [[origin]] is set
- to parsed url's origin.
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, and false otherwise.
The isSameOrigin(other) method returns true if
- this's [[origin]] is same origin with other's
- [[origin]], and false otherwise.
The isSameSite(other) method returns true if
- this's [[origin]] is same site with other's
- [[origin]], and false otherwise.
This is a same site, not schemelessly same
- site, comparison. For the reasons explained in URL The
- Origin origin does not offer schemeless comparison.
If this's relevant settings object's origin is not same origin-domain with the entry settings object's origin, return null.
Return this's return this's relevant settings object's origin.
Since these objects are potentially accessible cross-origin (e.g. through +
Since these objects are potentially accessible cross-origin (e.g., through
WindowProxy), we need a security check here before granting access to the origin.
Note that same-site checks might return different values for the same origins in + different user agents, or even in the same user agent at different times, as the public suffix + list is updated and distributed in implementation-defined ways. isSameSite() reflects the user agent's current understanding + of the relationship between two origins, but makes no promises about the future.
From 37fa9233e00ba7b6010363a28b36cabb69b53b64 Mon Sep 17 00:00:00 2001 From: Mike WestOrigin objects have an associated
- origin, which holds an
+ origin, which holds an
origin.
Platform objects have an @@ -92457,7 +92457,7 @@ interface Origin {
Objects implementing the Origin interface's
extract an origin steps are to return this's
- origin.
Set this's origin to a unique +
Set this's origin to a unique opaque origin.
The static from(value)
- method accepts an arbitrary object value, and returns either a newly-constructed
- Origin object if one can be extracted from
- value, or throws a TypeError otherwise:
The static from(value) method steps are:
If origin is not null, then return a new
Origin object whose
- origin is set to origin.
If parsed url is not failure, then return a new
Origin object whose
- origin is set to parsed url's
+ origin is set to parsed url's
origin.
The opaque attribute
getter steps are to return true if this's
- origin is an opaque
- origin, and false otherwise.
The isSameOrigin(other) method returns true if
- this's origin is same origin
- with other's origin, and false otherwise.
The isSameSite(other) method returns true if
- this's origin is same site with
- other's origin, and false otherwise.
Note that same-site checks might return different values for the same origins in - different user agents, or even in the same user agent at different times, as the public suffix - list is updated and distributed in implementation-defined ways. isSameSite() reflects the user agent's current understanding - of the relationship between two origins, but makes no promises about the future.
+ this's origin is same site with + other's origin; otherwise false.Return this's url's - origin.
A Location object has an associated ancestor origins list. When a
@@ -131804,13 +131789,6 @@ interface WorkerLocation {
Objects implementing the WorkerLocation interface's extract an origin
- steps are to return this's WorkerGlobalScope object's
- url's origin.
A Platform objects have an
- extract an origin operation, which returns null unless
- otherwise specified. Platform objects have an extract an origin operation, which returns null unless otherwise specified. Objects implementing the The Set this's origin to a unique
- opaque origin. Let origin be the result of executing value's extract an
origin operation. If origin is not null, then return a new
- If origin is not null, then return a new If value is a string: Let parsed url be the result of basic URL
+ Let parsedURL be the result of basic URL
parsing value. If parsed url is not failure, then return a new
- If parsedURL is not failure, then return a new The The The The A WorkerLocation object has an associated WorkerGlobalScope object (a
From a85adea4659a3d84939a84261c9248cbee94e052 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Origin objects have an associated
- origin, which holds an
- origin.Origin objects have an associated origin, which holds an origin.Origin interface's
- extract an origin steps are to return this's
- origin.new Origin() constructor steps are:
-
+ data-x="dom-Origin-constructor">new Origin() constructor steps are to set
+ this's origin to a unique opaque origin.
Origin object whose
- origin is set to origin.Origin object whose origin is origin.
-
Origin object whose
- origin is set to parsed url's
- origin.Origin object whose origin is set to parsedURL's origin.opaque attribute
- getter steps are to return true if this's
- origin is an opaque
- origin; otherwise false.opaque getter
+ steps are to return true if this's origin
+ is an opaque origin; otherwise false.isSameOrigin(other) method returns true if
- this's origin is same origin
- with other's origin; otherwise false.isSameSite(other) method returns true if
- this's origin is same site with
- other's origin; otherwise false.WorkerLocation object has an associated WorkerGlobalScope object (a
WorkerGlobalScope object).
From 01111757376ae0e209814dcb181d3cc111c7da55 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Origin objects have an associated