WICG / input-for-workers

Specification for exposing input events to workers
Other
25 stars 6 forks source link

Reasoning behind "context" #3

Open majido opened 5 years ago

majido commented 5 years ago
dictionary EventDelegationOptions {
  any context;
};

The proposed API proposed a context member that can be used when delegating an event target to a worker. It mentions that it is there to help send additional parameters for the target. We should add an example that shows how this is useful.

Also we should clarify that "context" needs to be structured cloneable otherwise we cannot send it to the worker/worklet.