Skip to content

Conversation

@recvfrom
Copy link
Contributor

@recvfrom recvfrom commented Nov 25, 2025

Updates the media resource fetch algorithm to calculate when a top-level self-fetch might be occurring for blob URLs, which is a case where blob URL partitioning would be bypassed.

For more info see: w3c/FileAPI#210

(See WHATWG Working Mode: Changes for more details.)


/media.html ( diff )

@recvfrom recvfrom changed the title Update resource fetch to identify top-level self-fetch for blob URLs Update media resource fetch to identify top-level self-fetch for blob URLs Nov 25, 2025
@recvfrom recvfrom force-pushed the main branch 2 times, most recently from a6df317 to 3bb1387 Compare November 25, 2025 17:55
Updates the resource fetch algorithm to calculate when a top-level
self-fetch might be occurring for blob URLs, which is a case where
blob URL partitioning would be bypassed.

For more info see: w3c/FileAPI#210
Comment on lines +38235 to +38238
<li><p>Let <var>stringOrEnvironment</var> be <var>settingsObject</var>.</p></li>

<li><p>If <var>isTopLevelSelfFetch</var> is true, then set <var>stringOrEnvironment</var> to
"<code data-x="">top-level-self-fetch</code>".</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li><p>Let <var>stringOrEnvironment</var> be <var>settingsObject</var>.</p></li>
<li><p>If <var>isTopLevelSelfFetch</var> is true, then set <var>stringOrEnvironment</var> to
"<code data-x="">top-level-self-fetch</code>".</p></li>
<li><p>Let <var>stringOrEnvironment</var> be "<code data-x="">top-level-self-fetch</code>" if
<var>isTopLevelSelfFetch</var> is true; otherwise <var>settingsObject</var>.</p></li>

Comment on lines +38209 to +38210
<li><p>Let <var>settingsObject</var> be <span>media element</span>'s
<span>node document</span>'s <span>relevant settings object</span>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(There's a potentially gnarly edge case here with respect to using the element's relevant settings object or the element's node document's relevant settings object as they can currently be different if an element moves across documents, but I think we generally (maybe even exclusively) want to use the element's node document's relevant settings object.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants