Skip to content

Commit

Permalink
registerProtocolHandler(): only "https" schemes for the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored and domenic committed May 11, 2020
1 parent 9deddcd commit 72a6f17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -92805,10 +92805,11 @@ interface <dfn>Navigator</dfn> {
<code>DOMException</code>.</p></li>

<li>
<p>If the <span>resulting URL record</span>'s <span data-x="concept-url-origin">origin</span> is
not <span>same origin</span> with <var>environment</var>'s <span
data-x="concept-settings-object-origin">origin</span>, then throw a
<span>"<code>SecurityError</code>"</span> <code>DOMException</code>.</p>
<p>If the <span>resulting URL record</span>'s <span data-x="concept-url-scheme">scheme</span> is
not "<code data-x="">https</code>" or the <span>resulting URL record</span>'s <span
data-x="concept-url-origin">origin</span> is not <span>same origin</span> with
<var>environment</var>'s <span data-x="concept-settings-object-origin">origin</span>, then throw
a <span>"<code>SecurityError</code>"</span> <code>DOMException</code>.</p>

<p class="note">This is forcibly the case if the <code data-x="">%s</code> placeholder is in the
scheme, host, or port components of the URL.</p>
Expand Down

0 comments on commit 72a6f17

Please sign in to comment.