From 6b075880fe1fc9334b309363b82254d057ff41d9 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Wed, 9 Aug 2017 16:45:21 +0100 Subject: [PATCH] Add back the `conservative` page loading strategy This waits for all resources of a page to have finished loading, and not just for the readyState to reach "complete". Addresses #893. --- webdriver-spec.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/webdriver-spec.html b/webdriver-spec.html index 1e719e6f8..44c37affa 100644 --- a/webdriver-spec.html +++ b/webdriver-spec.html @@ -3034,6 +3034,12 @@

Navigation

normal "complete" + + + "conservative" + conservative + "complete" +

When asked to deserialize as a page load strategy with @@ -3077,6 +3083,11 @@

Navigation

session’s page loading strategy, which can be found in the table of page load strategies. +
  • If the current session's page loading strategy + is conservative, wait for all additional + remote resources to finish loading. Otherwise, continue with this + algorithm. +

  • Wait for the the current browsing context’s document readiness state to reach readiness target, or for the @@ -3203,12 +3214,13 @@

    Go

    Figure out if next paragraph is actually required:

    -

    When a page contains a META tag with the "http-equiv" attribute set to "refresh", - a response MUST be returned if the timeout is greater than 1 second - and the other criteria for determining whether a page is loaded are met. - When the refresh period is 1 second or less - and the page loading strategy is "normal" or "conservative" - implementations MUST wait for the refresh to complete before responding. +

    When a page contains a META tag with the "http-equiv" attribute + set to "refresh", a response MUST be returned if the timeout is + greater than 1 second and the other criteria for determining + whether a page is loaded are met. When the refresh period is 1 + second or less and the page loading strategy is "normal" or + "conservative" implementations MUST wait for the refresh to + complete before responding.