-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add a task queue for scheduling tasks. #115
base: main
Are you sure you want to change the base?
Conversation
@@ -627,7 +633,7 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=] | |||
|
|||
1. Let |method| be |matched|["<code>method</code>"] | |||
|
|||
1. Run the following steps in parallel: | |||
1. [=Queue a WebDriver task=] to run the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. [=Queue a WebDriver task=] to run the following: | |
1. [=Queue a WebDriver task=] to run the following steps: |
index.bs
Outdated
|
||
1. Let |related browsing contexts| be a set containing |context|. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this step removed?
This will be pretty easy to review and quick to land, but the order of landing multiple big conflicting PRs is a bit unclear. @jgraham can you pick an order and ping me when it's time for this one? |
This adds a parallel task queue and uses it to schedule all events, rather than using "in parallel" a lot. This makes it easier to reason about the ordering of events. In addition it makes all events happens as part of a task. This seems likely to match implementations where events will presumably be triggered from event listeners rather than synchronously as in the spec at present. It also means that we don't need the event suppression hack to ensure that navigation commands return before related events are emitted.
Preview | Diff