Closed Bug 1916351 Opened 1 year ago Closed 1 year ago

JSON mime type should only be allowed for JS module loads

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox130 --- unaffected
firefox131 --- unaffected
firefox132 --- fixed

People

(Reporter: evilpies, Assigned: jon4t4n)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

https://hg.mozilla.org/integration/autoland/rev/1de3f8d89dec seems to allow the JSON MIME type for all JavaScript loads, but I think JSON should only be allowed for JS module loads.

:jon4t4n, since you are the author of the regressor, bug 1877792, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(jonatan.r.klemets)
Blocks: 1670176
Severity: -- → S3
Priority: -- → P1

Oh, good catch. I think you are correct. Added a WIP patch that I think solves this issue.

(I'll try to write a test case while waiting for the try run.)

Try push for with the WIP patch: https://treeherder.mozilla.org/jobs?repo=try&revision=2872c7d6a2b1635d5258d9343106bf8ae0067895

Assignee: nobody → jonatan.r.klemets
Attachment #9422302 - Attachment description: WIP: Bug 1916351 - Only allow JSON mime type for javascript modules r=evilpie → Bug 1916351 - Only allow JSON mime type for javascript modules r=evilpie!,#necko-reviewers!
Status: NEW → ASSIGNED
Flags: needinfo?(jonatan.r.klemets)
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/920579be1c72 Only allow JSON mime type for javascript modules r=evilpie,necko-reviewers,devtools-reviewers,jesup,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Blocks: 1966620
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: