Closed Bug 1594166 Opened 5 years ago Closed 5 years ago

Enable DocumentChannel for ftp, file and blob.

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla72
Fission Milestone M4
Tracking Status
firefox72 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(4 files)

Building on top of bug 1593560, adding support for ftp, file and blob.

This mainly shows up when creating a DocumentChannel for a blob URI, and then we try switch to the 'real' blob channel and can't find an nsIChildChannel.

We could instead implement an IDPL parent/child class for this (like FileChannelChild/Parent), but the implementation of those is effectively the same (just call AsyncOpen from CompleteRedirectSetup), and I think is unnecessary boilterplate, since we can't have an actual redirect to a blob URI.

Depends on D51902

We fail this during test_invalid_mime_type_blob.html when using DocumentChannel for blobs without this.
DocumentChannelChild reports an internal redirect as it replaces itself with the real channel (BlobURLChannel), and we fail the CheckLoadURIWithPrincipal checks.

The old channel has a null principal (due to being a sandboxed iframe), and we compare that to the blob principal computed from the URI, which is a normal content principal.

Depends on D51904

Attachment #9106691 - Attachment description: Bug 1594166 - Dont do nsContentSecurityManager for internal redirects. r?baku → Bug 1594166 - Dont do nsContentSecurityManager checks for internal redirects. r?baku
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1d1e8f14b42b
Enable DocumentChannel for ftp, file and blob. r=nika
https://hg.mozilla.org/integration/autoland/rev/0da839f538f2
Handle channel types that don't implement nsIChildChannel when switching to a real channel from DocumentChannel. r=mayhemer
https://hg.mozilla.org/integration/autoland/rev/8b10deda7d0e
Don't add a manual ref when constructing FileChannelChild, since it's a refcounted IPDL class. r=nika
https://hg.mozilla.org/integration/autoland/rev/c07d058d206c
Dont do nsContentSecurityManager checks for internal redirects. r=baku,ckerschb

Retroactively moving fixed bugs whose summaries mention "Fission" (or other Fission-related keywords) but are not assigned to a Fission Milestone to an appropriate Fission Milestone.

This will generate a lot of bugmail, so you can filter your bugmail for the following UUID and delete them en masse:

0ee3c76a-bc79-4eb2-8d12-05dc0b68e732

Fission Milestone: --- → M4
Regressions: 1607749
Blocks: 1399574
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: