Skip to content

WorkerGlobalScope policies not fully converted to policy containers #11316

Open
@ADKaster

Description

@ADKaster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions