Open Bug 261091 Opened 21 years ago Updated 3 years ago

put child docloader's loadgroups into parent loadgroup

Categories

(Firefox :: File Handling, defect)

defect

Tracking

()

People

(Reporter: Biesinger, Unassigned)

References

()

Details

nsDocLoaderImpl::Stop could be greatly simplified if its loadgroup would contain the loadgroup of its child loaders. Then, it could just do mLoadGroup->Cancel(NS_BINDING_ABORTED); and the child's groups would be automatically cancelled. care has to be taken not to o) assume all children implement nsIChannel o) only send state information to listeners if a channel gets added/removed, not a loadgroup (what about dummy layout/parser requests?) o) maybe other things...
in fact, maybe that method could be eliminated then, along with nsURILoader::Stop(nsISupports* loadCookie)
Summary: put child loader's loadgroups into parent loadgroup → put child docloader's loadgroups into parent loadgroup
Once this is fixed, I think the code I added for bug 299553 can be removed...
Blocks: 299553
Also once this is fixed the code I'm adding for bug 330089 can be greatly simplified...
Blocks: 330089
Assignee: file-handling → nobody
QA Contact: ian → file-handling
Preliminarily CC my self, I might need this for security UI.
Product: Core → Firefox
Version: Trunk → unspecified
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.