Open Bug 1614242 Opened 3 years ago Updated 6 months ago

[SharedWorker] Check script type and credentials mode values before connecting to the matched SharedWorkerGlobalScope

Categories

(Core :: DOM: Workers, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: elkurin, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36

Steps to reproduce:

This is a bug for tracking a spec issue:
https://github.com/whatwg/html/issues/5235
spec change pull request: https://github.com/whatwg/html/pull/5258

The spec change above adds the step to check if type and credentials values match an existing shared worker. If not, the shared worker fires an error event and stop connecting to the existing shared worker.
This behavior can be tested by WPT https://github.com/web-platform-tests/wpt/pull/21651 (not yet merged).

Component: Untriaged → DOM: Workers
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.