Open Bug 1915686 Opened 1 month ago Updated 1 month ago

Cleanup up content types for blob responses of ObliviousHttp.sys.mjs

Categories

(Core :: Networking, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: tcampbell, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

https://phabricator.services.mozilla.com/D220499#inline-1224620

As we generalize the code for using OHTTP from different Firefox components, we would have the blob() helper method no longer hardcode an image/jpeg mimetype. Existing usecases are fine, but this is a bit silly.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]
Blocks: ohttp

Since the ObliviousHTTP module is only pretending to do fetch, it misses the Reponse.prototype.text() that [1] tries to use incorrectly.

[1] https://searchfox.org/mozilla-central/rev/89fa43ebb52249863ada27fa5fd67a65bd73d299/toolkit/components/telemetry/dap/DAPTelemetrySender.sys.mjs#317

You need to log in before you can comment on or make changes to this bug.