Closed Bug 589025 Opened 14 years ago Closed 14 years ago

e10s: ExternalHelperAppParent must support content-disposition property of nsIChannel

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: crowderbt, Assigned: crowderbt)

References

Details

Attachments

(1 file, 5 obsolete files)

Summary+patch says it all.
Attachment #467625 - Flags: review?(dwitte)
Blocks: fennecko
Depends on: 589292
We can also fix this by just moving contentDisposition onto nsIChannel -- bug 589292. Let's see what happens there, because it'll basically give you what you want for free. ;)
We should merge this patch with the patch in that bug, then, since that bug has ExternalHelperAppParent returning an empty Content-Disposition, which is not sufficient...  would that be alright?
Yep!
Comment on attachment 467625 [details] [diff] [review]
Add support for Content-Disposition: header across process boundaries

Canceling request -- want to write a patch on top of the one in that bug, and I'll stamp?
Attachment #467625 - Flags: review?(dwitte)
Heading out to go see my kids after their first day of school, but I'll happily spin a rev of this tomorrow morning built on the patch in bug 589292 (you going to spin that for read-only?)
No longer depends on: 589292
Assignee: nobody → crowderbt
Attachment #467625 - Attachment is obsolete: true
Summary: e10s: ExternalHelperAppParent must support nsIMultiPartChannel to enable content-disposition to work → e10s: ExternalHelperAppParent must support content-disposition property of nsIChannel
This now requires the work from bug 589292 and will not work/apply without it.
Depends on: 589292
Comment on attachment 469168 [details] [diff] [review]
Add support for Content-Disposition: header across process boundaries

If you like this, maybe you can just land it in-sync with the patch from bug 589292?
Attachment #469168 - Flags: review?(dwitte)
Comment on attachment 469168 [details] [diff] [review]
Add support for Content-Disposition: header across process boundaries

> void
> ExternalHelperAppParent::Init(TabParent *parent,
>                               const nsCString& aMimeContentType,
>+                              const nsCString& aContentDisposition,
>                               const PRBool& aForceSave)
> {

>+  SetContentDisposition(aContentDisposition);

Latest patch in that bug makes contentDisposition readonly, so you'll want to directly set mContentDisposition here.

> NS_IMETHODIMP
> ExternalHelperAppParent::SetContentDisposition(const nsACString& aContentDisposition)
> {
>-  return NS_ERROR_NOT_IMPLEMENTED;
>+  mContentDisposition = aContentDisposition;
>+  return NS_OK;
> }

Likewise you'll want to remove this.

r=dwitte with that. Want to post an exported patch?
Attachment #469168 - Flags: review?(dwitte) → review+
Attached patch the one to land (obsolete) — Splinter Review
Keeping dwitte's review
Attachment #469168 - Attachment is obsolete: true
Attachment #469239 - Flags: review+
http://hg.mozilla.org/projects/electrolysis/rev/bc6739931542

Should leave this open til we merge to m-c. Should do that before Monday.
http://hg.mozilla.org/mozilla-central/rev/bc6739931542
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Need a new fix here now that bug 589292 is getting backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This should block fennec2.0b1 but not beta5, right?
Yes.
blocking2.0: --- → beta6+
tracking-fennec: --- → ?
blocking2.0: beta6+ → ---
Yes, this should block Fennec 2.0b1 because it is required functionality for Content-Disposition to work correctly.  The original patch is the "new fix" needed here.  I'll refresh that patch if it needs it and if not re-request review.
Attached patch the older version, updated (obsolete) — Splinter Review
With r=dwitte in the checkin-message, I'll update in review moves.
Attachment #469239 - Attachment is obsolete: true
Attachment #471539 - Flags: review?(dwitte)
tracking-fennec: ? → 2.0b1+
Comment on attachment 471539 [details] [diff] [review]
the older version, updated

>+NS_IMETHODIMP
>+ExternalHelperAppParent::GetBaseChannel(nsIChannel* *aChannel)
>+{
>+  *aChannel = this;

Any reason you didn't just make this throw? If not, I'd prefer that.

r=dwitte
Attachment #471539 - Flags: review?(dwitte) → review+
Attached patch land this (obsolete) — Splinter Review
Carrying dwitte's review over with GetBaseChannel change
Attachment #471539 - Attachment is obsolete: true
Attachment #474208 - Flags: review+
Keywords: checkin-needed
Attached patch no, land -this-Splinter Review
Attachment #474208 - Attachment is obsolete: true
Attachment #474746 - Flags: review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: