Closed
Bug 1871063
Opened 2 years ago
Closed 2 years ago
CSP: Trigger securityviolationevents on the document when a SharedWorker is blocked
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
124 Branch
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
We currently have various failures in the content-security-policy/gen WPT folder related to new SharedWorker() not triggering a "securitypolicyviolation" event on the document.
This happens because we actually load the SharedWorker in the RemoteWorkerChild and we can't access the document in nsCSPContext::FireViolationEvent after blocking. We can workaround this by forwarding the error via PRemoteWorkerChild::SendError.
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D196968
Updated•2 years ago
|
Attachment #9369664 -
Attachment description: WIP: Bug 1871063 - Forward CSP violations from creating a new SharedWorker → Bug 1871063 - Forward CSP violations from creating a new SharedWorker. r?#dom-workers-and-storage-reviewers
Updated•2 years ago
|
Attachment #9369665 -
Attachment description: WIP: Bug 1871063 - Update WPT meta data → Bug 1871063 - Update WPT meta data. r?#dom-workers-and-storage-reviewers
Updated•2 years ago
|
Severity: -- → S3
| Assignee | ||
Comment 3•2 years ago
|
||
Hi Andrew, can you have a look at or redirect the patch?
Flags: needinfo?(bugmail)
| Assignee | ||
Updated•2 years ago
|
Flags: needinfo?(echuang)
Updated•2 years ago
|
Attachment #9369664 -
Attachment description: Bug 1871063 - Forward CSP violations from creating a new SharedWorker. r?#dom-workers-and-storage-reviewers → Bug 1871063 - Forward CSP violations from creating a new SharedWorker. r?edenchuang
Updated•2 years ago
|
Attachment #9369665 -
Attachment description: Bug 1871063 - Update WPT meta data. r?#dom-workers-and-storage-reviewers → Bug 1871063 - Update WPT meta data. r?edenchuang
Pushed by tschuster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/db0d5b6a75a4
Forward CSP violations from creating a new SharedWorker. r=edenchuang
https://hg.mozilla.org/integration/autoland/rev/9445b35a9902
Update WPT meta data. r=edenchuang
Comment 6•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/db0d5b6a75a4
https://hg.mozilla.org/mozilla-central/rev/9445b35a9902
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox124:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•