这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
text: reflect; url: common-dom-interfaces.html#reflect
text: width; url: embedded-content-other.html#attr-dim-width
text: height; url: embedded-content-other.html#attr-dim-height
spec: fetch; urlPrefix: https://fetch.spec.whatwg.org/
type: dfn
text: cross-origin resource policy internal check; url: #cross-origin-resource-policy-internal-check
</pre>

<style>
Expand Down Expand Up @@ -168,31 +165,3 @@ The {{HTMLFencedFrameElement/src}} IDL attribute must [=reflect=] the respective
<h3 id=dimension-attributes>Dimension attributes</h3>

This section details monkeypatches to [[!HTML]]'s <a href="https://html.spec.whatwg.org/multipage/embedded-content-other.html#dimension-attributes">Dimension attributes</a> section. This section will be updated to include <{fencedframe}> in the list of elements that the <code>[=width=]</code> and <code>[=height=]</code> dimension attributes apply to.

<h3 id=new-request-destination>New fencedframe [=request=] [=request/destination=]</h3>

Every distinct element should have its own request destination to allow for special handling when making requests (fenced frame request behavior deviates from iframe behavior in enough ways to justify having a separate destination). Update the associated request [=request/destination=] list to include a new entry, "<code>fencedframe</code>". It will have the [=request/initiator=] "", the CSP directive <code>fenced-frame-src</code>, and the features HTML's <code>&lt;fencedframe&gt;</code>.

Add "<code>fencedframe</code>" to the [=non-subresource request=] list and to the [=navigation request=] list.

Add "<code>fencedframe</code>" to the {{RequestDestination}} enum.

In the [=fetch=] algorithm, step 13.2, where it says:

> A user agent should set value to the first matching statement, if any, switching on request’s [=request/destination=]:

Add "<code>fencedframe</code>" to the switch cases alongside "<code>document</code>", "<code>frame</code>", and "<code>iframe</code>".

<h3 id=coep>Patching [=Cross-Origin Resource Policy Internal Check=]</h3>

In [[!Fetch]]'s [=cross-origin resource policy internal check=] steps, in the step

> 5. Switch on policy:

Where it currently states

> If origin is <a>same origin</a> with response's <a for=response>URL</a>'s <a for=url>origin</a>, then return <b>allowed</b>.

Modify it to say

> If origin is <a>same origin</a> with response's <a for=response>URL</a>'s <a for=url>origin</a>, and [=request/destination=] is not "<code>fencedframe</code>", then return <b>allowed</b>.