[Webkit-unassigned] [Bug 49178] New: [Qt] ImageDecoderQt::internalDecodeSize() generate a failure when the size is empty

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 8 07:50:29 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49178

           Summary: [Qt] ImageDecoderQt::internalDecodeSize() generate a
                    failure when the size is empty
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: Qt
          Severity: Minor
          Priority: P3
         Component: Images
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: benjamin.poulain at nokia.com
                CC: benjamin.poulain at nokia.com


The commit 05f617b823b43e85e24f476a94869a6698692a70 introduced http://trac.webkit.org/changeset/49559 a change in the way the size of image is retrieved:

@@ -171,7 +161,12 @@ void ImageDecoderQt::internalDecodeSize()
 {
     ASSERT(m_reader);

+    // If we have a QSize() something failed
     QSize size = m_reader->size();
+    if (size.isEmpty())
+        return failRead();
+
+    m_format = m_reader->format();
     setSize(size.width(), size.height());
 }

With this change, custom plugins that do not report the size are not working anymore.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list