RESOLVED FIXED Bug 90756
Fix a potential bug of BitmapImage::frameCount().
https://bugs.webkit.org/show_bug.cgi?id=90756
Summary Fix a potential bug of BitmapImage::frameCount().
Dongseong Hwang
Reported 2012-07-08 23:57:58 PDT
If an ImageDecoder is not yet initialized, m_source.frameCount() returns 0. This does not mean that the frame count is actually 0. So we must set m_haveFrameCount to true only when m_frameCount is not 0. The current code is okay because BitmapImage::frameCount() is never called before the decoder is initialized. However, this no longer holds true once we introduce parallel image decoders.
Attachments
Patch (1.95 KB, patch)
2012-07-09 01:10 PDT, Dongseong Hwang
simon.fraser: review+
webkit.review.bot: commit-queue-
Archive of layout-test-results from gce-cr-linux-02 (342.01 KB, application/zip)
2012-07-09 01:44 PDT, WebKit Review Bot
no flags
Dongseong Hwang
Comment 1 2012-07-09 01:10:17 PDT
WebKit Review Bot
Comment 2 2012-07-09 01:43:59 PDT
Comment on attachment 151206 [details] Patch Attachment 151206 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13165201 New failing tests: http/tests/security/mixedContent/filesystem-url-in-iframe.html
WebKit Review Bot
Comment 3 2012-07-09 01:44:02 PDT
Created attachment 151216 [details] Archive of layout-test-results from gce-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Dongseong Hwang
Comment 4 2012-07-09 02:27:28 PDT
It seems the failed layout test is not relevant to my patch.
Dongseong Hwang
Comment 5 2012-07-09 04:15:49 PDT
(In reply to comment #4) > It seems the failed layout test is not relevant to my patch. In my computer, the test is passed in chromium port.
Kwang Yul Seo
Comment 6 2012-07-10 04:39:21 PDT
I wonder if the patch needs to be uploaded again if the layout tests failed due to flakyness.
Kwang Yul Seo
Comment 7 2012-07-10 15:12:05 PDT
Note You need to log in before you can comment on or make changes to this bug.