Closed Bug 75576 Opened 23 years ago Closed 23 years ago

imgRequestProxy doesn't need DummyChannel

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: waterson, Assigned: pavlov)

References

Details

(Whiteboard: [imagelib])

Attachments

(2 files)

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.
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.
Blocks: 62589
Keywords: mozilla0.9
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.
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.
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
i'll land this stuff when i land the rest of the changes in my tree today i hope
[imagelib] keyword added to status
Whiteboard: [imagelib]
nsDocLoader changes checked in.
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.

Attachment

General

Creator:
Created:
Updated:
Size: