RESOLVED FIXED 38227
[Chromium] Filter out URLs with a file scheme from text/uri-list when dragging.
https://bugs.webkit.org/show_bug.cgi?id=38227
Summary [Chromium] Filter out URLs with a file scheme from text/uri-list when dragging.
Daniel Cheng
Reported 2010-04-27 16:08:19 PDT
Original issue at https://bugs.webkit.org/show_bug.cgi?id=25882, which fixed duplicate file paths appearing in text/uri-list on a file drop. This issue covers removing the remaining file:// URL from event.dataTransfer on a drop.
Attachments
Filter file:// URLs from event.dataTransfer.getData (3.34 KB, patch)
2010-04-27 16:09 PDT, Daniel Cheng
no flags
Filter file:// URLs from event.dataTransfer.getData (3.32 KB, patch)
2010-04-27 16:21 PDT, Daniel Cheng
jianli: review-
Filter file URLs from event.dataTransfer.getData (3.74 KB, patch)
2010-04-27 17:50 PDT, Daniel Cheng
no flags
Daniel Cheng
Comment 1 2010-04-27 16:09:23 PDT
Created attachment 54468 [details] Filter file:// URLs from event.dataTransfer.getData
Daniel Cheng
Comment 2 2010-04-27 16:21:00 PDT
Created attachment 54470 [details] Filter file:// URLs from event.dataTransfer.getData Fix incorrect permissions on WebCore/ChangeLog
Jian Li
Comment 3 2010-04-27 16:25:00 PDT
Comment on attachment 54470 [details] Filter file:// URLs from event.dataTransfer.getData WebCore/ChangeLog:5 + [Chromium] Filter out URLs with file:// scheme from text/uri-list when dragging. Can you update the bug title in order to be consistent with the line above. Also, I think you could simply say "file scheme". WebCore/platform/chromium/ClipboardChromium.cpp:170 + if (protocolIs(uri, "file")) Could you please add a comment for doing this? WebCore/platform/chromium/ClipboardChromium.cpp:185 + if (!m_dataObject->url.isEmpty() && !m_dataObject->url.isLocalFile()) { ditto. WebCore/platform/chromium/ClipboardChromium.cpp:321 + if (m_dataObject->url.isValid() && !m_dataObject->url.isLocalFile()) { ditto.
Daniel Cheng
Comment 4 2010-04-27 17:50:18 PDT
Created attachment 54486 [details] Filter file URLs from event.dataTransfer.getData
Jian Li
Comment 5 2010-04-27 18:05:37 PDT
Comment on attachment 54486 [details] Filter file URLs from event.dataTransfer.getData r=me
WebKit Commit Bot
Comment 6 2010-04-27 22:21:41 PDT
Comment on attachment 54486 [details] Filter file URLs from event.dataTransfer.getData Clearing flags on attachment: 54486 Committed r58378: <http://trac.webkit.org/changeset/58378>
WebKit Commit Bot
Comment 7 2010-04-27 22:21:47 PDT
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.