Please sign in to comment.
Regression fix: add back origin check for shared workers
Shared workers always needs to perform a same-origin check since if the SharedWorkerGlobalScope already exists, no fetching is done, so we cannot count on fetching to do the same-origin check. Additionally, module workers allow cross-origin fetches, but we still want to ensure a distinct SharedWorkerGlobalScope per origin. This also cleans up “set up a worker environment settings object” with a more explicit way of referencing the needed environment settings object. This regressed through #339 (though that change also had to be made for module workers). Fixes #1321.
- Loading branch information...