Closed
Bug 75576
Opened 23 years ago
Closed 23 years ago
imgRequestProxy doesn't need DummyChannel
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
People
(Reporter: waterson, Assigned: pavlov)
References
Details
(Whiteboard: [imagelib])
Attachments
(2 files)
7.42 KB,
patch
|
Details | Diff | Splinter Review | |
9.11 KB,
patch
|
Details | Diff | Splinter Review |
I think that the DummyChannel stuff it 1) not necessary and 2) not being managed properly, so would propose the following patch. N.B. that I had to fix some bad assumptions in the doc loader. This fixes several bugs that I've been fighting in the layout regression tests where the doc load finishes too early b/c the dummy channel had no load group. Attaching a patch.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
I think that this probably depended on darin's recent necko API changes, so it's not obvious that the code could've been written this way even a week ago.
Reporter | ||
Updated•23 years ago
|
Keywords: mozilla0.9
Reporter | ||
Comment 3•23 years ago
|
||
Reporter | ||
Comment 4•23 years ago
|
||
Hmm, one thing I'm noticing is that the chrome stuff (e.g., scrollbar thumb images) are now being added to the load group. Not sure if this is correct.
Assignee | ||
Comment 5•23 years ago
|
||
ah. yes... this is how i had done it originally, but since you couldn't add nsIRequest objects that weren't nsIChannel's to loadgroups (without things crashing), i had to change it back.
Assignee | ||
Comment 6•23 years ago
|
||
r=pavlov on the docloader changes... i've merged your patch into my tree. i had to remove/change: + NS_PRECONDITION(mLoadGroup, "recieved >1 OnStopRequest()"); + if (! mLoadGroup) + return NS_ERROR_UNEXPECTED; a) remove the precondition. it is legal for it to receive multiple onstops (multipart/x-mixed-replace) b) return NS_OK instead of error other than that it looks good. thanks
Assignee | ||
Comment 7•23 years ago
|
||
i'll land this stuff when i land the rest of the changes in my tree today i hope
Reporter | ||
Comment 9•23 years ago
|
||
nsDocLoader changes checked in.
Assignee | ||
Comment 10•23 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•