Skip to content

Commit 5b01d31

Browse files
authored
Add FTP-related protocols to the registerProtocolHandler safelist
Closes #6583. This also adds normative steps to strip out the username and password components of the URL before passing it to the handler.
1 parent 0898ef9 commit 5b01d31

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

source

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98451,6 +98451,12 @@ interface <dfn interface>Navigator</dfn> {
9845198451
<li><p>Assert: <var>inputURL</var>'s <span data-x="concept-url-scheme">scheme</span> is
9845298452
<var>normalizedScheme</var>.</p></li>
9845398453

98454+
<li><p><span data-x="set the username">Set the username</span> given <var>inputURL</var> and
98455+
the empty string.</p></li>
98456+
98457+
<li><p><span data-x="set the password">Set the password</span> given <var>inputURL</var> and
98458+
the empty string.</p></li>
98459+
9845498460
<li><p>Let <var>inputURLString</var> be the <span
9845598461
data-x="concept-url-serializer">serialization</span> of <var>inputURL</var>.</p></li>
9845698462

@@ -98532,6 +98538,8 @@ interface <dfn interface>Navigator</dfn> {
9853298538

9853398539
<ul class="brief">
9853498540
<li><code data-x="">bitcoin</code></li> <!-- https://en.bitcoin.it/wiki/BIP_0021 -->
98541+
<li><code data-x="">ftp</code></li>
98542+
<li><code data-x="">ftps</code></li>
9853598543
<li><code data-x="">geo</code></li>
9853698544
<li><code data-x="">im</code></li>
9853798545
<li><code data-x="">irc</code></li>
@@ -98543,6 +98551,7 @@ interface <dfn interface>Navigator</dfn> {
9854398551
<li><code data-x="">news</code></li>
9854498552
<li><code data-x="">nntp</code></li>
9854598553
<li><code data-x="">openpgp4fpr</code></li>
98554+
<li><code data-x="">sftp</code></li>
9854698555
<li><code data-x="">sip</code></li>
9854798556
<li><code data-x="">sms</code></li>
9854898557
<li><code data-x="">smsto</code></li>
@@ -98632,14 +98641,6 @@ interface <dfn interface>Navigator</dfn> {
9863298641
allowing administrators to disable custom handlers on certain subdomains, content types, or
9863398642
schemes.</p>
9863498643

98635-
<p><strong>Leaking credentials.</strong> User agents must never send username or password
98636-
information in the URLs that are escaped and included sent to the handler sites. User agents may
98637-
even avoid attempting to pass to web-based handlers the URLs of resources that are known to
98638-
require authentication to access, as such sites would be unable to access the resources in
98639-
question without prompting the user for credentials themselves (a practice that would require the
98640-
user to know whether to trust the third-party handler, a decision many users are unable to make or
98641-
even understand).</p>
98642-
9864398644
<p><strong>Interface interference.</strong> User agents should be prepared to handle intentionally
9864498645
long arguments to the methods. For example, if the user interface exposed consists of an "accept"
9864598646
button and a "deny" button, with the "accept" binding containing the name of the handler, it's
@@ -127667,6 +127668,7 @@ INSERT INTERFACES HERE
127667127668
Arthur Stolyar,
127668127669
Arun Patole,
127669127670
Aryeh Gregor,
127671+
Asanka Herath,
127670127672
Asbj&oslash;rn Ulsberg,
127671127673
Ashley Gullen,
127672127674
Ashley Sheridan,

0 commit comments

Comments
 (0)