CSP and Fission: ShouldLoad should not rely on requestingContext because it's not available in the parent process
Categories
(Core :: DOM: Security, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: ckerschb, Assigned: ckerschb)
References
Details
(Whiteboard: [domsecurity-active])
Attachments
(1 file)
Since we want to make CSP fully fission compatible we should move away passing requestContext to shoudLoad.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Matt, it seems the requestingContext
within the actual CSP code is only used for querying if a script was parserCreated. We could move that bit of information into the loadinfo which brings us closer to CSP handling in the parent.
Just confirming, would you sign off on adding a bool parserCreated
to loadinfo? If you agree, then I'll get that patch ready.
Comment 2•5 years ago
|
||
(In reply to Christoph Kerschbaumer [:ckerschb] from comment #1)
Matt, it seems the
requestingContext
within the actual CSP code is only used for querying if a script was parserCreated. We could move that bit of information into the loadinfo which brings us closer to CSP handling in the parent.Just confirming, would you sign off on adding a
bool parserCreated
to loadinfo? If you agree, then I'll get that patch ready.
Yes, I think that's the right way to solve this.
Assignee | ||
Comment 3•5 years ago
|
||
Comment 5•5 years ago
|
||
Backed out changeset 55c37e8a6563 (bug 1627963) for test_csp_reports.js failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/b0496779c7cde65032214c2d3905cb7e42148f4f
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=296922921&repo=autoland&lineNumber=4858
[task 2020-04-09T10:01:08.417Z] 10:01:08 INFO - TEST-START | dom/security/test/unit/test_csp_reports.js
[task 2020-04-09T10:06:08.422Z] 10:06:08 WARNING - TEST-UNEXPECTED-TIMEOUT | dom/security/test/unit/test_csp_reports.js | Test timed out
[task 2020-04-09T10:06:08.422Z] 10:06:08 INFO - TEST-INFO took 300000ms
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Bogdan Tara[:bogdan_tara | bogdant] from comment #5)
[task 2020-04-09T10:01:08.417Z] 10:01:08 INFO - TEST-START | dom/security/test/unit/test_csp_reports.js
Ah, that test calls ShouldLoad directly :-(
I'll update - thanks!
Comment 9•5 years ago
|
||
bugherder |
Description
•