Skip to content

Commit b7647a2

Browse files
evilpiedomenic
authored andcommitted
Don't allow the javascript: protocol in navigation.navigate()
1 parent e09d102 commit b7647a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95600,6 +95600,11 @@ interface <dfn interface>NavigationHistoryEntry</dfn> : <span>EventTarget</span>
9560095600
data-x="navigation-api-early-error-result">early error result</span> for a
9560195601
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code>.</p></li>
9560295602

95603+
<li><p>If <var>urlRecord</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
95604+
data-x="javascript protocol">javascript</code>", then return an <span
95605+
data-x="navigation-api-early-error-result">early error result</span> for a
95606+
<span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p>
95607+
9560395608
<li><p>Let <var>document</var> be <span>this</span>'s <span>relevant global object</span>'s <span
9560495609
data-x="concept-document-window">associated <code>Document</code></span>.</p></li>
9560595610

0 commit comments

Comments
 (0)