Closed Bug 591081 Opened 15 years ago Closed 15 years ago

e10s: ExternalHelperAppChild should still make use of parts of nsExternalAppHandler

Categories

(Core :: Networking, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: crowderbt, Assigned: crowderbt)

References

Details

Attachments

(1 file, 1 obsolete file)

A lot of the code in nsExternalAppHandler is code that still needs to be executed, even after the work of doing the actual download has been forwarded back to the parent process. By reorganizing the code in nsExternalAppHandler a bit and pumping OnStart/OnData/OnStop calls to we can reuse the code and fix a handful of bugs. One bug in particular is that currently, you cannot issue two download requests simultaneously from the same page, because they will remain in the same loadGroup on the child process, causing the original transfer to be cancelled when the second begins.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → crowderbt
Attachment #471216 - Flags: feedback?(dwitte)
Comment on attachment 471216 [details] [diff] [review] v1 >diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp >+ nsExternalAppHandler * handler = new nsExternalAppHandler(nsnull, This needs to be an nsRefPtr<>. (It's bad to go passing around objects with refcount 0 -- think about what happens if the function you pass it into wraps it in an nsCOMPtr or QI's it and then lets the COMPtr go out of scope!) r=dwitte.
Attachment #471216 - Flags: feedback?(dwitte) → feedback+
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b1+
Attached patch land thisSplinter Review
Attachment #471216 - Attachment is obsolete: true
Attachment #474755 - Flags: review+
Keywords: checkin-needed
Depends on: 596402
Status: NEW → RESOLVED
Closed: 15 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: