From 31b264a56253e7b047d1cc6a02a4c6337dd6cff5 Mon Sep 17 00:00:00 2001
From: Shivani Sharma Let topLevelCreationURL be Let topLevelOrigin be origin if embedder is null;
otherwise embedder's relevant settings object's top-level
origin. Let settingsObject be the result of setting up a window environment settings object given realm
- execution context and topLevelOrigin.about:blank
if embedder is
+ null; otherwise embedder's relevant settings object's top-level
+ creation URL.
Let document be a new When the user agent is required to set up a window environment settings object,
- given a JavaScript execution context execution context, a
- top-level origin top-level origin, and an optional
- environment reserved environment, it must run the following steps: To set up a window environment settings object, given a JavaScript execution
+ context execution context, null or an environment
+ reservedEnvironment, a URL topLevelCreationURL, and an
+ origin topLevelOrigin, run these steps: Let realm be the value of execution context's Realm
@@ -78688,11 +78692,6 @@ interface BarProp {
data-x="concept-document-window">associated Document
, marked as an HTML document in quirks mode, whose BarProp {
Script settings for
- Window
objects
.Document
Return top-level origin.
-Return the HTTPS state of @@ -78720,23 +78719,20 @@ interface BarProp {
If reserved environment is given, then:
+If reservedEnvironment is non-null, then:
Set settings object's id to - reserved environment's id, - settings object's creation - URL to reserved environment's creation URL, settings object's - target browsing context to - reserved environment's reservedEnvironment's id, settings + object's target browsing + context to reservedEnvironment's target browsing context, and settings object's active - service worker to reserved environment's to reservedEnvironment's active service worker.
Set reserved environment's id to +
Set reservedEnvironment's id to the empty string.
The identity of the reserved environment is considered to be fully @@ -78749,11 +78745,14 @@ interface BarProp {
Otherwise, set settings object's id to a new unique opaque string, settings - object's creation URL to - url, settings object's target browsing context to null, and - settings object's active - service worker to null.
Set settings object's creation + URL to url, settings object's top-level creation URL to + topLevelCreationURL, and settings object's top-level origin to + topLevelOrigin.
Set realm's [[HostDefined]] field to settings object.
Run process a navigate response with null, resource, navigationType, the source browsing context, - browsingContext, sandboxFlags, incumbentNavigationOrigin, and - activeDocumentNavigationOrigin.
If reservedEnvironment is null, then set reservedEnvironment to a - new environment whose id is a - unique opaque string and target browsing context is - browsingContext.
Set reservedEnvironment's creation URL to currentURL.
+If reservedEnvironment is null, then:
+ +Let topLevelCreationURL be currentURL.
Let topLevelOrigin be null.
If browsingContext is not a top-level browsing context, then:
+ +Let parentEnvironment be browsingContext's container's relevant settings object.
Set topLevelCreationURL to parentEnvironment's top-level + creation URL and topLevelOrigin to parentEnvironment's + top-level origin.
The created environment's active service worker is set in the - Handle Fetch algorithm during the fetch if - the request URL matches a service worker registration.
+Set reservedEnvironment to a new environment whose id is a unique opaque string, target browsing context is + browsingContext, creation + URL is currentURL, top-level creation URL is + topLevelCreationURL, and top-level origin is + topLevelOrigin.
+ +The created environment's active service worker is set in + the Handle Fetch algorithm during the fetch + if the request URL matches a service worker registration.
+Set request's reserved @@ -81947,7 +81968,7 @@ interface Location { // but see also browsing contexts source and browsingContext, a sandboxing flag set sandboxFlags, two origins incumbentNavigationOrigin and - activeDocumentNavigationOrigin, and an optional environment + activeDocumentNavigationOrigin, and null or an environment reservedEnvironment, run these steps:
multipart/x-mixed-replace
"An explicitly supported XML MIME type is an XML MIME type for which @@ -82215,7 +82242,7 @@ interface Location { // but see also response response, a browsing context browsingContext, a sandboxing flag set sandboxFlags, two origins - incumbentNavigationOrigin, activeDocumentNavigationOrigin, and an optional + incumbentNavigationOrigin, activeDocumentNavigationOrigin, and null or an environment reservedEnvironment:
If request is non-null, then set creationURL to request's + current URL.
If browsingContext's only entry in its session history is the
initial about:blank
Document
that was added when
browsingContext was created, and
@@ -82274,14 +82307,28 @@ interface Location { // but see also container's relevant settings object.
Set topLevelCreationURL to parentEnvironment's top-level + creation URL.
Set topLevelOrigin to parentEnvironment's top-level + origin.
Set up a window environment settings object with realm execution - context, topLevelOrigin, and reservedEnvironment, if - present.
If request is non-null, then set - document's URL to request's - current URL.
- -Otherwise, set document's URL to - response's URL.
Set document's URL to creationURL.
Set document's HTTPS state to the HTTPS state of @@ -82493,18 +82536,19 @@ new PaymentRequest(…); // Allowed to use
When an HTML document is to be loaded in a browsing - context, provided browsingContext, request, response, - sandboxFlags, incumbentNavigationOrigin, and - activeDocumentNavigationOrigin, the user agent must queue a task on the - networking task source to:
+When an HTML document is to be loaded, given a + browsingContext, request, response, sandboxFlags, + incumbentNavigationOrigin, activeDocumentNavigationOrigin, and + environment, the user agent must queue a task on the networking task + source to:
Let document be the result of creating and initializing a Document
object providing "html
", "text/html
",
request, response, browsingContext, sandboxFlags,
- incumbentNavigationOrigin, and activeDocumentNavigationOrigin.
Create an HTML parser and associate it with the document. Each @@ -82539,14 +82583,15 @@ new PaymentRequest(…); // Allowed to use
When faced with displaying an XML file inline, provided browsingContext,
request, response, sandboxFlags,
- incumbentNavigationOrigin, and activeDocumentNavigationOrigin, user agents
- must follow the requirements defined in XML and Namespaces in XML,
- XML Media Types, DOM, and other relevant specifications to create and initialize a Document
object
- providing "xml
", type, request, response,
- browsingContext, sandboxFlags, incumbentNavigationOrigin, and
- activeDocumentNavigationOrigin. It must also create and a corresponding XML
- parser.
Document
object providing "xml
", type,
+ request, response, browsingContext, sandboxFlags,
+ incumbentNavigationOrigin, activeDocumentNavigationOrigin, and
+ environment. It must also create and a corresponding XML parser.
At the time of writing, the XML specification community had not actually yet specified how XML and the DOM interact.
@@ -82590,17 +82635,19 @@ new PaymentRequest(…); // Allowed to useWhen a plain text document is to be loaded in a browsing context, provided - browsingContext, request, response, sandboxFlags, - incumbentNavigationOrigin, and activeDocumentNavigationOrigin, the user - agent must queue a task on the networking task source to: +
When a plain text document is to be loaded, provided a browsingContext, + request, response, sandboxFlags, + incumbentNavigationOrigin, activeDocumentNavigationOrigin, and + environment, the user agent must queue a task on the networking task + source to:
Let document be the result of creating and initialize a Document
object
providing "html
", type, request,
response, browsingContext, sandboxFlags,
- incumbentNavigationOrigin, and activeDocumentNavigationOrigin.
Create an HTML parser and associate it with the document. Act as if the tokenizer had emitted a start tag token with the tag name "pre" followed by a single @@ -82667,17 +82714,18 @@ new PaymentRequest(…); // Allowed to use
When an image, video, or audio resource is to be loaded in a browsing context, - provided browsingContext, request, response, - sandboxFlags, incumbentNavigationOrigin, and - activeDocumentNavigationOrigin, the user agent should: +
When an image, video, or audio resource is to be loaded, provided a browsingContext, + request, response, sandboxFlags, + incumbentNavigationOrigin, activeDocumentNavigationOrigin, and + environment, the user agent should:
Let document be the result of creating and initialize a Document
object
providing "html
", type, request,
response, browsingContext, sandboxFlags,
- incumbentNavigationOrigin, and activeDocumentNavigationOrigin.
Append an html
element to document.
When a resource that requires an external resource to be rendered is to be loaded in a - browsing context, provided browsingContext, request, - response, sandboxFlags, incumbentNavigationOrigin, and - activeDocumentNavigationOrigin, the user agent should: +
When a resource that requires an external resource to be rendered is to be loaded, provided a + browsingContext, request, response, sandboxFlags, + incumbentNavigationOrigin, activeDocumentNavigationOrigin, and + environment, the user agent should:
Let document be the result of creating and initialize a Document
object
providing "html
", type, request,
response, browsingContext, sandboxFlags,
- incumbentNavigationOrigin, and activeDocumentNavigationOrigin.
Mark document as being a plugin document
When the user agent is to display a user agent page inline in a browsing context,
- the user agent should create and initialize a
- Document
object providing "html
", "text/html
", null, null, browsingContext, an empty set, null, and null,
- and then either associate that Document
with a custom rendering that is not rendered
- using the normal Document
rendering rules, or mutate that Document
until
- it represents the content the user agent wants to render.
When the user agent is to display a user agent page inline, the user agent should create and initialize a Document
object
+ providing "html
", "text/html
", null, null,
+ browsingContext, an empty set, null, null, and null, and then either associate that
+ Document
with a custom rendering that is not rendered using the normal
+ Document
rendering rules, or mutate that Document
until it represents
+ the content the user agent wants to render.
An opaque string that uniquely identifies the environment.
An opaque string that uniquely identifies this environment.
A URL record that represents the location of the resource with which the +
A URL that represents the location of the resource with which this environment is associated.
In the case of an environment settings object, this URL might be
@@ -86164,6 +86213,27 @@ interface ApplicationCache : EventTarget {
history.pushState()
.
Null or a URL that represents the creation URL of the "top-level" + environment. It is null for workers and worklets.
A for now implementation-defined value, null, + or an origin. For a "top-level" potential execution environment it is null (i.e., + when there is no response yet); otherwise it is the "top-level" environment's origin. For a dedicated worker or worklet it is + the top-level origin of its creator. For a shared or service worker it is an + implementation-defined value.
+ +This is distinct from the top-level creation URL's origin when sandboxing, workers, and worklets are + involved.
+Null or a target browsing context for a ApplicationCache : EventTarget {
An origin used in security checks.
The origin of the top-level browsing context at the time - this settings object was set up.
-An HTTPS state value representing the security properties of the network @@ -98396,16 +98459,6 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope { origin otherwise.
Return outside settings's top-level origin for a dedicated - worker.
- -For shared and service workers this is still undefined and is being worked on, - since such workers could be associated with multiple top-level browsing contexts.
-Return worker global scope's SharedWorkerGlobalScope : WorkerGlobalScope {
Set settings object's id to a new
unique opaque string, settings object's creation URL to worker global
- scope's url, settings object's 's url, settings object's top-level creation URL
+ to null, settings object's target browsing context to null, and
settings object's active
service worker to null. If worker global scope is a Otherwise, set settings object's top-level origin to an
+ implementation-defined value. See Client-Side
+ Storage Partitioning for the latest on properly defining this. Set realm's [[HostDefined]] field to settings object. Return settings object.DedicatedWorkerGlobalScope
object,
+ then set settings object's top-level origin to outside
+ settings's top-level origin.