Skip to content

Commit 69ef2cf

Browse files
recvfromlozy219
authored andcommitted
Replace existing usage of blob URL entry's object
As suggested in whatwg/fetch#1783 (comment), this change updates an existing use of blob URL entry's object so that the "obtain a blob object" algorithm is used instead. This algorithm was added in w3c/FileAPI#201.
1 parent 937480a commit 69ef2cf

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

source

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3481,8 +3481,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
34813481
<li>The concept of <dfn data-x="file-error-read">read errors</dfn></li>
34823482
<li><dfn data-x-href="https://w3c.github.io/FileAPI/#BlobURLStore">Blob URL Store</dfn></li>
34833483
<li><dfn data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry">blob URL entry</dfn> and its
3484-
<dfn data-x="blob-url-entry-object" data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry-object">object</dfn> and
34853484
<dfn data-x="blob-url-entry-environment" data-x-href="https://w3c.github.io/FileAPI/#blob-url-entry-environment">environment</dfn></li>
3485+
<li>The <dfn data-x="blob-url-obtain-object" data-x-href="https://w3c.github.io/FileAPI/#blob-url-obtain-object">obtain a blob object</dfn> algorithm</li>
34863486
</ul>
34873487
</dd>
34883488

@@ -36782,11 +36782,24 @@ interface <dfn interface>MediaError</dfn> {
3678236782
object</span> is as follows:</p>
3678336783

3678436784
<ol>
36785-
<li><p>If the algorithm was invoked with <span>media provider object</span> or a <span>URL
36786-
record</span> whose <span data-x="concept-url-blob-entry">blob URL entry</span> is a <span>blob
36787-
URL entry</span> whose <span data-x="blob-url-entry-object">object</span> is a <span>media
36788-
provider object</span>, then let <var>mode</var> be <i>local</i>. Otherwise, let <var>mode</var>
36789-
be <i>remote</i>.</p></li>
36785+
<li><p>Let <var>mode</var> be <i>remote</i>.</p></li>
36786+
36787+
<li>
36788+
<p>If the algorithm was invoked with <span>media provider object</span>, then set
36789+
<var>mode</var> to <i>local</i>.</p>
36790+
36791+
<p>Otherwise:</p>
36792+
36793+
<ol>
36794+
<li><p>Let <var>object</var> be the result of <span data-x="blob-url-obtain-object">obtaining
36795+
a blob object</span> using the <span>URL record</span>'s <span
36796+
data-x="concept-url-blob-entry">blob URL entry</span> and the <span>media element</span>'s
36797+
<span>node document</span>'s <span>relevant settings object</span>.</p></li>
36798+
36799+
<li><p>If <var>object</var> is a <span>media provider object</span>, then set <var>mode</var>
36800+
to <i>local</i>.</p></li>
36801+
</ol>
36802+
</li>
3679036803

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

0 commit comments

Comments
 (0)