Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct specification of parallel operations #1431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jugglinmike
Copy link
Contributor

@jugglinmike jugglinmike commented Jul 6, 2019

Prior to this patch, parallelism in the Execute Script and Execute Async
Script commands was expressed in terms of ECMAScript promises. This was
ambiguous because in HTML, Promises rely on an environment settings
object [1], and such an object is not generally available in the
WebDriver execution context.

Refactor the command algorithms to instead manage parallel execution
using the generic "queue" primitive from the Infra specification.
Refactor the "execute a function body" algorithm to use Promises, where
following the invocation of "prepare to run a script," an environment
settings object is available.

[1] https://html.spec.whatwg.org/#integration-with-the-javascript-job-queue


Preview | Diff

Prior to this patch, parallelism in the Execute Script and Execute Async
Script commands was expressed in terms of ECMAScript promises. This was
ambiguous because in HTML, Promises rely on an environment settings
object [1], and such an object is not generally available in the
WebDriver execution context.

Refactor the command algorithms to instead manage parallel execution
using the generic "queue" primitive from the Infra specification.
Refactor the "execute a function body" algorithm to use Promises, where
following the invocation of "prepare to run a script," an environment
settings object is available.

[1] https://html.spec.whatwg.org/#integration-with-the-javascript-job-queue
@jugglinmike
Copy link
Contributor Author

We may want to hold off on this until there's consensus in gh-1436.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant