WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
32428
[Qt] ImageDecoderQt fails to provide image file extensions
https://bugs.webkit.org/show_bug.cgi?id=32428
Summary
[Qt] ImageDecoderQt fails to provide image file extensions
Andreas Kling
Reported
2009-12-11 05:38:17 PST
QImageReader only allows retrieving the format() before having read the image. (See
http://doc.trolltech.com/4.6/qimagereader.html#format
for more information.) The most obvious symptom of this bug is a failing assertion when attempting to click-and-drag an image: ASSERTION FAILED: !image->filenameExtension().isEmpty() (../../../WebCore/page/DragController.cpp:675 bool WebCore::DragController::startDrag(WebCore::Frame*, WebCore::Clipboard*, WebCore::DragOperation, const WebCore::PlatformMouseEvent&, const WebCore::IntPoint&, bool))
Attachments
Retrieve the format immediately after creating the QImageReader
(1.50 KB, patch)
2009-12-11 06:11 PST
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2009-12-11 06:11:53 PST
Created
attachment 44680
[details]
Retrieve the format immediately after creating the QImageReader
WebKit Review Bot
Comment 2
2009-12-11 06:12:36 PST
style-queue ran check-webkit-style on
attachment 44680
[details]
without any errors.
Simon Hausmann
Comment 3
2009-12-11 06:28:26 PST
Comment on
attachment 44680
[details]
Retrieve the format immediately after creating the QImageReader r=me Holger, would be great if you could double-check it, too. But from all I can see this seems like a safe thing to do. Calling format() will only initialize the handler (which we need to do anyway), but otherwise retrieving the format doesn't trigger any of the expensive decoding work. We _could_ also do the initHandler() part on demand. But right now this patch seems safe and it fixes a failing assertion (crash) in the DragController when dragging images. (the assertion being that the format must be non-empty)
WebKit Commit Bot
Comment 4
2009-12-11 06:38:46 PST
Comment on
attachment 44680
[details]
Retrieve the format immediately after creating the QImageReader Clearing flags on attachment: 44680 Committed
r51983
: <
http://trac.webkit.org/changeset/51983
>
WebKit Commit Bot
Comment 5
2009-12-11 06:39:00 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug