Skip to content

Commit

Permalink
Do not wait for page load if only the fragment changes. Fixes #706
Browse files Browse the repository at this point in the history
We need to check if only the fragment has changed and if it's only
a fragment change then we don't need to do as many of the post
checks for this command as it won't fire any events
  • Loading branch information
AutomatedTester authored and shs96c committed Feb 7, 2017
1 parent a9108b5 commit 906eb96
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions webdriver-spec.html
Expand Up @@ -2884,15 +2884,24 @@ <h3>Go</h3>
<a>local scheme</a>,
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.

<li>If <var>timer</var> has not been started, start
a <var>timer</var>. If this algorithm has not completed
before <var>timer</var> reaches the <a>session</a>'s <a>session page
load timeout</a> in milliseconds, return an <a>error</a>
with <a>error code</a> <a>timeout</a>.
<li><p>Let <var>current URL</var> be the <a>current top-level browsing context</a>’s
<a>active document</a>’s <a>document URL</a>.

<li><p>If <var>current URL</var> and <var>url</var> do not have the same
<a>absolute URL</a>:

<ol>
<li>If <var>timer</var> has not been started, start
a <var>timer</var>. If this algorithm has not completed
before <var>timer</var> reaches the <a>session</a>'s <a>session page
load timeout</a> in milliseconds, return an <a>error</a>
with <a>error code</a> <a>timeout</a>.
</ol>

<li><p><a>Navigate</a> the <a>current top-level browsing context</a> to <var>url</var>.

<li><p>If <var>url</var> <a>is special</a> except for <code>file</code>:
<li><p>If <var>url</var> <a>is special</a> except for <code>file</code> and
<var>current URL</var> and <var>URL</var> do not have the same <a>absolute URL</a> :
<ol>
<li><p>Run the <a>post-navigation checks</a>
and return its value if it is an <a>error</a>.
Expand Down

0 comments on commit 906eb96

Please sign in to comment.