Skip to content

Commit

Permalink
Add FTP related protocols to the registerProtocolHandler safelist.
Browse files Browse the repository at this point in the history
  • Loading branch information
asankah committed Feb 7, 2022
1 parent 912a3fe commit 6da640c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</li>
<li><dfn data-x-href="https://url.spec.whatwg.org/#valid-url-string">valid URL string</dfn></li>
<li>The <dfn data-x-href="https://url.spec.whatwg.org/#cannot-have-a-username-password-port">cannot have a username/password/port</dfn> concept</li>
<li>The <dfn data-x="concept-url-includes-credentials" data-x-href="https://url.spec.whatwg.org/#include-credentials">includes credentials</dfn> concept</li>
<li><dfn data-x="concept-url-serializer" data-x-href="https://url.spec.whatwg.org/#concept-url-serializer">URL serializer</dfn> and its
<dfn data-x="url serializer exclude fragment" data-x-href="https://url.spec.whatwg.org/#url-serializer-exclude-fragment">exclude fragment</dfn> argument</li>
<li>The <dfn data-x-href="https://url.spec.whatwg.org/#concept-host-parser">host parser</dfn></li>
Expand Down Expand Up @@ -96998,6 +96999,16 @@ interface <dfn interface>Navigator</dfn> {
<li><p>Assert: <var>inputURL</var>'s <span data-x="concept-url-scheme">scheme</span> is
<var>normalizedScheme</var>.</p></li>

<li>
<p>If <var>inputURL</var> <span data-x="concept-url-includes-credentials">includes
credentials</span> then:</p>

<ol>
<li><span>set the username</span> given <var>inputURL</var> and the empty string.</li>
<li><span>set the password</span> given <var>inputURL</var> and the empty string.</li>
</ol>
</li>

<li><p>Let <var>inputURLString</var> be the <span
data-x="concept-url-serializer">serialization</span> of <var>inputURL</var>.</p></li>

Expand Down Expand Up @@ -97079,6 +97090,8 @@ interface <dfn interface>Navigator</dfn> {

<ul class="brief">
<li><code data-x="">bitcoin</code></li> <!-- https://en.bitcoin.it/wiki/BIP_0021 -->
<li><code data-x="">ftp</code></li>
<li><code data-x="">ftps</code></li>
<li><code data-x="">geo</code></li>
<li><code data-x="">im</code></li>
<li><code data-x="">irc</code></li>
Expand All @@ -97090,6 +97103,7 @@ interface <dfn interface>Navigator</dfn> {
<li><code data-x="">news</code></li>
<li><code data-x="">nntp</code></li>
<li><code data-x="">openpgp4fpr</code></li>
<li><code data-x="">sftp</code></li>
<li><code data-x="">sip</code></li>
<li><code data-x="">sms</code></li>
<li><code data-x="">smsto</code></li>
Expand Down

0 comments on commit 6da640c

Please sign in to comment.