Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace existing usage of blob URL entry's object #10792

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
25 changes: 19 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3481,8 +3481,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The concept of <dfn data-x="file-error-read">read errors</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/FileAPI/#BlobURLStore">Blob URL Store</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry">blob URL entry</dfn> and its
<dfn data-x="blob-url-entry-object" data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry-object">object</dfn> and
<dfn data-x="blob-url-entry-environment" data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry-environment">environment</dfn></li>
<li>The <dfn data-x-href="https://w3c.github.io/FileAPI/#obtainBlobObject">obtain a blob object</dfn> algorithm</li>
</ul>
</dd>

Expand Down Expand Up @@ -36780,11 +36780,24 @@ interface <dfn interface>MediaError</dfn> {
object</span> is as follows:</p>

<ol>
<li><p>If the algorithm was invoked with <span>media provider object</span> or a <span>URL
record</span> whose <span data-x="concept-url-blob-entry">blob URL entry</span> is a <span>blob
URL entry</span> whose <span data-x="blob-url-entry-object">object</span> is a <span>media
provider object</span>, then let <var>mode</var> be <i>local</i>. Otherwise, let <var>mode</var>
be <i>remote</i>.</p></li>
<li><p>Let <var>mode</var> be <i>remote</i>.</p></li>

<li>
<p>If the algorithm was invoked with <span>media provider object</span>, set <var>mode</var>
recvfrom marked this conversation as resolved.
Show resolved Hide resolved
to <i>local</i>.</p>

<p>Otherwise, run these steps:</p>
recvfrom marked this conversation as resolved.
Show resolved Hide resolved

<ol>
<li><p>Let <var>object</var> be the result of <span>obtaining a blob object</span> using the
<span>URL record</span>'s <span data-x="concept-url-blob-entry">blob URL entry</span> and the
<span>media element</span>'s <span>node document</span>'s <span>relevant settings
object</span>.

<li><p>If <var>object</var> is a <span>media provider object</span>, then let <var>mode</var> be
<i>local</i>.</p></li>
recvfrom marked this conversation as resolved.
Show resolved Hide resolved
</ol>
</li>

<li><p>If <var>mode</var> is <i>remote</i>, then let the <var>current media resource</var> be the
resource given by the <span>URL record</span> passed to this algorithm; otherwise, let the
Expand Down
Loading