Skip to content

Commit

Permalink
Use relevant settings object for pushState/replaceState URL parsing
Browse files Browse the repository at this point in the history
Tested by https://url-parsing-entry-iaqyojravh.now.sh/entry/entry.html;
all browsers use relevant, instead of entry, at least for URL parsing.
Further testing is needed for the origin checks.

Part of #1431.
  • Loading branch information
domenic authored and annevk committed Jul 6, 2016
1 parent 485c76a commit b568cf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -80683,8 +80683,8 @@ interface <dfn>History</dfn> {
methods that are invoked on a timer, or from event listeners that are not triggered in response
to a clear user action, or that are invoked in rapid succession.)</p></li>

<li><p>Let <var>targetRealm</var> be this <code>History</code> object's <span>relevant settings
object</span>'s <span data-x="environment settings object's realm">Realm</span>.</p></li>
<li><p>Let <var>targetRealm</var> be this <code>History</code> object's <span
data-x="concept-relevant-realm">relevant Realm</span>.</p></li>

<li><p>Let <var>cloned data</var> be <span>StructuredClone</span>(<var>data</var>,
<var>targetRealm</var>). Rethrow any exceptions.</p></li>
Expand All @@ -80696,7 +80696,7 @@ interface <dfn>History</dfn> {
<ol>

<li><span data-x="parse a url">Parse</span> the value of the third argument, relative to the
<span>entry settings object</span>.</li>
<span>relevant settings object</span> of this <code>History</code> object.</li>

<li>If that fails, throw a <span>"<code>SecurityError</code>"</span> <code>DOMException</code>
and abort these steps.</li>
Expand Down

0 comments on commit b568cf9

Please sign in to comment.