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

Add a task queue for scheduling tasks. #115

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

Add a task queue for scheduling tasks. #115

wants to merge 1 commit into from

Conversation

jgraham
Copy link
Member

@jgraham jgraham commented Jun 25, 2021

Base automatically changed from navigate to master July 13, 2021 20:19
index.bs Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. [=Queue a WebDriver task=] to run the following:
1. [=Queue a WebDriver task=] to run the following steps:

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated

1. Let |related browsing contexts| be a set containing |context|.
Copy link
Member

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?

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@foolip
Copy link
Member

foolip commented Sep 23, 2021

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.
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.

2 participants