Changeset 76039 in webkit


Ignore:
Timestamp:
Jan 18, 2011 11:06:10 AM (13 years ago)
Author:
Martin Robinson
Message:

2011-01-18 Martin Robinson <mrobinson@igalia.com>

Reviewed by Eric Seidel.

[GTK] Filenames are converted to URLs during edit drags
https://bugs.webkit.org/show_bug.cgi?id=52096

  • platform/gtk/Skipped: Unskip passing test. Fix a misspelled drag and drop test on the list as well.

2011-01-18 Martin Robinson <mrobinson@igalia.com>

Reviewed by Eric Seidel.

[GTK] Filenames are converted to URLs during edit drags
https://bugs.webkit.org/show_bug.cgi?id=52096

  • platform/gtk/DragDataGtk.cpp: Only advertise and deliver filenames as URLs if the conversion policy allows it. (WebCore::DragData::containsURL): Ditto. (WebCore::DragData::asURL): Ditto.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r76038 r76039  
     12011-01-18  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] Filenames are converted to URLs during edit drags
     6        https://bugs.webkit.org/show_bug.cgi?id=52096
     7
     8        * platform/gtk/Skipped: Unskip passing test. Fix a misspelled
     9        drag and drop test on the list as well.
     10
    1112011-01-18  Jeremy Orlow  <jorlow@chromium.org>
    212
  • trunk/LayoutTests/platform/gtk/Skipped

    r76037 r76039  
    53395339http/tests/local/formdata/upload-events.html
    53405340fast/files/workers/worker-apply-blob-url-to-xhr.html
    5341 fast/files/apply-blob-url-to-xhr.htm
     5341fast/files/apply-blob-url-to-xhr.html
    53425342
    53435343# [Soup] ResourceHandleSoup does not handle encodedBlobData
     
    53515351# https://bugs.webkit.org/show_bug.cgi?id=52094
    53525352editing/pasteboard/files-during-page-drags.html
    5353 
    5354 # [GTK] Filenames are converted to URLs during edit drags
    5355 # https://bugs.webkit.org/show_bug.cgi?id=52096
    5356 editing/pasteboard/file-drag-to-editable.html
    53575353
    53585354# The feature was disabled due to a compatibility issue.
  • trunk/Source/WebCore/ChangeLog

    r76033 r76039  
     12011-01-18  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] Filenames are converted to URLs during edit drags
     6        https://bugs.webkit.org/show_bug.cgi?id=52096
     7
     8        * platform/gtk/DragDataGtk.cpp: Only advertise and deliver filenames as URLs if the
     9        conversion policy allows it.
     10        (WebCore::DragData::containsURL): Ditto.
     11        (WebCore::DragData::asURL): Ditto.
     12
    1132011-01-18  Helder Correia  <helder@sencha.com>
    214
  • trunk/Source/WebCore/platform/gtk/DragDataGtk.cpp

    r75523 r76039  
    6767}
    6868
    69 bool DragData::containsURL(Frame*, FilenameConversionPolicy filenamePolicy) const
     69bool DragData::containsURL(Frame* frame, FilenameConversionPolicy filenamePolicy) const
    7070{
    71     return m_platformDragData->hasURL();
     71    return !asURL(frame, filenamePolicy).isEmpty();
    7272}
    7373
    7474String DragData::asURL(Frame*, FilenameConversionPolicy filenamePolicy, String* title) const
    7575{
     76    if (!m_platformDragData->hasURL())
     77        return String();
     78    if (filenamePolicy != ConvertFilenames) {
     79        KURL url(KURL(), m_platformDragData->url());
     80        if (url.isLocalFile())
     81            return String();
     82    }
     83
    7684    String url(m_platformDragData->url());
    7785    if (title)
Note: See TracChangeset for help on using the changeset viewer.