<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25909</bug_id>
          
          <creation_ts>2009-05-20 22:38:09 -0700</creation_ts>
          <short_desc>eventSender.beginDragWithFiles drags with wrong paths from http tests</short_desc>
          <delta_ts>2009-06-05 10:56:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>25852</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrowe</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122253</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-20 22:38:09 -0700</bug_when>
    <thetext>eventSender.beginDragWithFiles drags with wrong paths from http tests

The new eventSender.beginDragWithFiles takes relative paths.
These are resolved against the loaded document.
When you run an http test, the path passed to DumpRenderTree is a URL pointing to localhost, so the to-be-dragged files are also urls pointing to local host.  We can&apos;t stat non-file urls, so the stat fails and File.fileSize returns 0.

The only way I can think to fix this is if we pass some sort of absolute path to DumpRenderTree in addition to the http://localhost test url, so that DRT can know how to resolve these paths to on-disk files for dragging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122256</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-20 22:59:39 -0700</bug_when>
    <thetext>This support was added in bug 25852.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124553</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-06-05 10:56:23 -0700</bug_when>
    <thetext>We can work around this limitation for the moment using http/local tests.  http/local tests are loaded as normal on-disk tests, but the http server is running.  So we can have them load remote iframes off of localhost/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>