Open Bug 516063 Opened 15 years ago Updated 2 years ago

imgIContainer should demand a non-null observer

Categories

(Core :: Graphics: ImageLib, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: bholley, Unassigned)

References

Details

This would let us get rid of a bunch of if (mObserver) checks in the decoders. The only place where we have a null observer at the moment is imgTools, but that code could just instantiate an nsStubImageDecoderObserver and pass it in.
Is this something we're still interested in doing?
(In reply to Ali Juma [:ajuma] from comment #1) > Is this something we're still interested in doing? Yes, unless joe disagrees here.
I'm pretty sure we have other examples of this too, but I totally agree that we should just make it impossible.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.