Closed Bug 1791918 Opened 2 years ago Closed 2 years ago

Ensure ORB blocks requests with UNKNOWN_CONTENT_TYPE when the response is recognized as a blocked type after sniffing in OnDataAvailable

Categories

(Core :: DOM: Networking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: sefeng, Assigned: farre)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged][orb:m2], [wptsync upstream])

Attachments

(2 files)

ORB doesn't block requests with UNKNOWN_CONTENT_TYPE, however it's possible that the response gets recognized as blocked type after sniffing in OnDataAvailable. We need to make sure this works as expected

Severity: -- → N/A
Whiteboard: [necko-triaged]
Whiteboard: [necko-triaged] → [necko-triaged][orb:m?]
Whiteboard: [necko-triaged][orb:m?] → [necko-triaged][orb:m2]
Assignee: nobody → afarre
Attachment #9301767 - Attachment description: WIP: Bug 1791918 - Ensure that ORB handles UNKNOWN_CONTENT_TYPE correctly. → Bug 1791918 - Ensure that ORB handles UNKNOWN_CONTENT_TYPE correctly. r=sefeng!

The only test I can see failing is cache-put.https.any.js, and I think that it's correct and that it should fail.

https://treeherder.mozilla.org/jobs?repo=try&revision=0e50c7e91ba89b05fc5f22107c158ece5a775db5

Attachment #9301767 - Attachment description: Bug 1791918 - Ensure that ORB handles UNKNOWN_CONTENT_TYPE correctly. r=sefeng! → Bug 1791918 - Part 1: Ensure that ORB handles UNKNOWN_CONTENT_TYPE correctly. r=sefeng!

To allow the test to perform opaque response filtering, we need to
bypass the ORB safelist check. This is done, by forcing the MIME type
retrieval to fail and the validation of partial first response to
succeed.

Depends on D161142

Pushed by afarre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/235443c9a047 Part 1: Ensure that ORB handles UNKNOWN_CONTENT_TYPE correctly. r=necko-reviewers,sefeng,valentin https://hg.mozilla.org/integration/autoland/rev/129b6d7f330e Part 2: Make cache-put.https.any.js range test skip ORB check. r=sefeng,asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37291 for changes under testing/web-platform/tests
Whiteboard: [necko-triaged][orb:m2] → [necko-triaged][orb:m2], [wptsync upstream]
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1809931
Whiteboard: [necko-triaged][orb:m2], [wptsync upstream] → [necko-triaged][orb:m2], [wptsync upstream][sp3]
Whiteboard: [necko-triaged][orb:m2], [wptsync upstream][sp3] → [necko-triaged][orb:m2], [wptsync upstream]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: