[Webkit-unassigned] [Bug 175315] WebDriver: timeout when JavaScript alert is shown in onload handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 9 00:10:41 PDT 2017


--- Comment #6 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Brian Burg from comment #4)
> Is there any spec language for this issue?

The spec doesn't mention the case of prompts spawned in onload specifically, but when waiting for navigations to complete it says:

6. Wait for the the current browsing context’s document readiness state to reach readiness target, or for the session page load timeout to pass, whichever occurs sooner.

7. If the previous step completed by the session page load timeout being reached and the browser does not have an active user prompt, return error with error code timeout.

So, according to the spec we should wait for the timeout to happen and only report timeout error if there isn't a prompt. In case of normal page load strategy we know it's going to timeout, so I don't think it makes sense to wait, note that the default timeout is 5 minutes! The spec doesn't say we should report unexpected alert in this case, though. So, maybe we can just return without error, because the next command will try to handle prompts anyway.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170809/13aa8600/attachment.html>

More information about the webkit-unassigned mailing list