The TestWebKitAPI test for an empty image frame (added in Bug 102689) incorrectly handles the reference counting aspects of the underlying BitmapImage object. This patch corrects a debug-build assertion that would trigger for the WinCairo port when running this test.
Note that even with this patch we cannot run this test under the Windows CG build because the implementation of ImageSourceCG asserts that its internal frameCount method is non-zero. Since we do not provide an underlying CG image source for this test, the assertion will always fire.
Created attachment 194303 [details] Patch
Landed in r146507.