Open
Description
What is the issue with the HTML Standard?
WorkerGlobalScope has a distinct embedder policy field which is never initialized, only read.
In run a worker, the policy conatiner for the WorkerGlobalScope is initalized during processResponseConsumeBody
for the worker's script. Two steps later, the uninitialized embedder policy field is read to perform some CORS checks.
check a global object's embedder policy, which applies only to WorkerGlobalScope objects, also refers directly to the WorkerGlobalScope's embedder policy, rather than its policy conatiner's embedder policy.
This feels like a straightforward cleanup? But there might be other places that are half-converted to use policy containers vs many policy fields.