To demonstrate the problem, edit mozilla/gfx/src/shared/gfxImageFrame.cpp and change line 90 from
const PRInt32 k64KLimit = 0x0000FFFF;to
const PRInt32 k64KLimit = 2100;
Alternatively, apply the patch from bug #321581 and set GECKO_MAX_IMAGE_WIDTH = 2100 in your environment.
Then rebuild your browser and view this page again. The green 2200-pixel-wide BMP, GIF, JPEG, and PNG images and the black 2200-pixel-wide XBM image should be rejected. On my platform, the BMP, JPEG, PNG, and XBM are each replaced with a 2200-pixel-wide broken-image icon, while the GIF is not (nothing is displayed where the GIF belongs).