[Webkit-unassigned] [Bug 24887] Wrong filename when dragging an image to the Desktop.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 12:06:38 PDT 2009


------- Comment #1 from mad at chromium.org  2009-03-27 12:06 PDT -------
Although the behavior is the same for Chromium and Safari 4 on windows (though
not on Safari 4 on the Mac, which does the right thing), there is actually two
different pieces of code having the same wrong behavior, so these are separate

The problem on the chromium side comes from a file under
WebCore\platform\chromium\ClipboardChromium.cpp, and the same problem is also
in the WebCore\platform\win\ClipboardWin.cpp file. Here's a snippet of that

The ClipboardWin::declareAndWriteDragImage() method calls the static
writeImageToDataObject which has the following code:

HGLOBAL imageFileDescriptor = createGlobalImageFileDescriptor(url.string(),
element->getAttribute(altAttr), cachedImage);

which wrongly uses the altAttr for the base file name, when it should use the
file name from the url. I think...

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

More information about the webkit-unassigned mailing list