<?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>12870</bug_id>
          
          <creation_ts>2007-02-23 08:23:52 -0800</creation_ts>
          <short_desc>REGRESSION: Safari accepts and attempts to load any file dragged into it</short_desc>
          <delta_ts>2007-02-23 17:39:06 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lilek">dev+webkit</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21945</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-02-23 08:23:52 -0800</bug_when>
    <thetext>Safari now claims to accept (shows the cursor with the green + orb) and seems to try to load anything dragged into it - things like application bundles, folders or zip files.  The title is blanked and history functionality for that tab/window is dead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21867</commentid>
    <comment_count>1</comment_count>
      <attachid>13356</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-02-23 17:21:10 -0800</bug_when>
    <thetext>Created attachment 13356
instamatic fix

Okay, the problem is that the drag and drop code had an &quot;improvement&quot; that short circuited the evaluation of _web_best_URL if the dragging  Pasteboard contained any url.  _web_best_URL filters out insane URLs (eg. directories) so this was bad.  This fix stops directories from being accepted.

All other files are accepted, and will bring up the finder if the dropped file isn&apos;t viewable with webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21869</commentid>
    <comment_count>2</comment_count>
      <attachid>13356</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-02-23 17:29:17 -0800</bug_when>
    <thetext>Comment on attachment 13356
instamatic fix

+			Drag a file that WebKit doesn&apos;t recognise -- eg. a disk image, tarball, etc.&lt;p&gt;

   Would be better to either wrap this in a &lt;p&gt;&lt;/p&gt; pair, or use &lt;br&gt;

   r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21870</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-02-23 17:39:06 -0800</bug_when>
    <thetext>Landed in r19382 (ChangeLog corrected in r19833 *sigh*)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13356</attachid>
            <date>2007-02-23 17:21:10 -0800</date>
            <delta_ts>2007-02-23 17:29:17 -0800</delta_ts>
            <desc>instamatic fix</desc>
            <filename>directoryDrop.patch</filename>
            <type>text/plain</type>
            <size>2108</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE5ODMx
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDctMDIt
MjMgIE9saXZlciBIdW50ICA8b2xpdmVyQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBi
eSBOT0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G9pbmcgdGhlIGluaXRpYWwgW3R5
cGVzIGNvbnRhaW5zIFVSTF0gY2hlY2s/Ci0gICAgcmV0dXJuIFtbW21fcGxhdGZvcm1EcmFnRGF0
YSBkcmFnZ2luZ1Bhc3RlYm9hcmRdIHR5cGVzXSBjb250YWluc09iamVjdDpOU1VSTFBib2FyZFR5
cGVdIHx8ICFhc1VSTCgpLmlzRW1wdHkoKTsKKyAgICByZXR1cm4gIWFzVVJMKCkuaXNFbXB0eSgp
OwogfQogICAgIAogU3RyaW5nIERyYWdEYXRhOjphc1VSTChTdHJpbmcqIHRpdGxlKSBjb25zdAo=
</data>
<flag name="review"
          id="5246"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>