Don't allow JSON MIME type for JS non-JSON module loads
Categories
(Core :: DOM: Security, defect, P3)
Tracking
()
People
(Reporter: tschuster, Assigned: jon4t4n)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Since bug 1858078 JSON modules (i.e. with {type: "json"}) load have their own nsContentPolicyType(s). This means the exception added for allowing loads of JS modules with a JSON MIME type in bug 1916351 is now incorrect. We should disallow normal JS modules with a JSON MIME type again and we should make sure JSON modules loads have a JSON MIME type.
Comment 1•8 months ago
|
||
Set release status flags based on info from the regressing bug 1858078
:jon4t4n, since you are the author of the regressor, bug 1858078, could you take a look?
For more information, please visit BugBot documentation.
Updated•8 months ago
|
| Assignee | ||
Comment 2•6 months ago
|
||
This code broke when TYPE_JSON was added in bug 1858078 because it
lacked test coverage. This patch fixes the code and adds tests to make
sure we don't break it again.
Updated•6 months ago
|
| Assignee | ||
Updated•6 months ago
|
Comment 5•6 months ago
|
||
Backed out for causing wpt perm failures @ /html/semantics/scripting-1/the-script-element/json-module/charset-bom.any.sharedworker.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/3febe603af79664101451a1613279b9377de08f4
| Assignee | ||
Updated•6 months ago
|
Updated•5 months ago
|
| Reporter | ||
Updated•5 months ago
|
Comment 7•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9da423677f3f
https://hg.mozilla.org/mozilla-central/rev/ede12d3619af
Comment 8•5 months ago
|
||
The patch landed in nightly and beta is affected.
:jon4t4n, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox142towontfix.
For more information, please visit BugBot documentation.
Updated•5 months ago
|
Updated•5 months ago
|
Description
•