<?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>55200</bug_id>
          
          <creation_ts>2011-02-24 18:04:22 -0800</creation_ts>
          <short_desc>[chromium] Don&apos;t clear existing files if file chooser is canceled</short_desc>
          <delta_ts>2011-04-05 03:50:36 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sailesh Agrawal">sail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>brettw</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>tkent</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>357609</commentid>
    <comment_count>0</comment_count>
    <who name="Sailesh Agrawal">sail</who>
    <bug_when>2011-02-24 18:04:22 -0800</bug_when>
    <thetext>Don&apos;t clear existing files if file chooser is canceled</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>357611</commentid>
    <comment_count>1</comment_count>
      <attachid>83757</attachid>
    <who name="Sailesh Agrawal">sail</who>
    <bug_when>2011-02-24 18:05:34 -0800</bug_when>
    <thetext>Created attachment 83757
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358490</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-02-26 06:43:44 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Don&apos;t clear existing files if file chooser is canceled

Why? Without the current behavior, users can&apos;t clear the selected file.
Though the current behavior is not compatible with Safari, I think it&apos;s intentional.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>358680</commentid>
    <comment_count>3</comment_count>
    <who name="Sailesh Agrawal">sail</who>
    <bug_when>2011-02-27 08:28:12 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; Don&apos;t clear existing files if file chooser is canceled
&gt; 
&gt; Why? Without the current behavior, users can&apos;t clear the selected file.

This is a usability bug. Cancel should always abort the current operation. If we need a way to clear the selected file then we should add a separate way to do that.

&gt; Though the current behavior is not compatible with Safari, I think it&apos;s intentional.
It&apos;s not about being compatible with Safari. I just tried Firefox and it does the same thing as Safari too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379307</commentid>
    <comment_count>4</comment_count>
      <attachid>83757</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2011-04-04 21:20:11 -0700</bug_when>
    <thetext>Comment on attachment 83757
Patch

Agreed.  This seems like the right fix to me.  Cancelling a dialog should leave existing state unchanged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379379</commentid>
    <comment_count>5</comment_count>
      <attachid>83757</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 02:07:03 -0700</bug_when>
    <thetext>Comment on attachment 83757
Patch

Clearing flags on attachment: 83757

Committed r82914: &lt;http://trac.webkit.org/changeset/82914&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379381</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 02:07:08 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379427</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-04-05 03:50:36 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/82914 might have broken GTK Linux 32-bit Debug</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>83757</attachid>
            <date>2011-02-24 18:05:34 -0800</date>
            <delta_ts>2011-04-05 02:07:03 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-55200-20110224180533.patch</filename>
            <type>text/plain</type>
            <size>1352</size>
            <attacher name="Sailesh Agrawal">sail</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCShyZXZpc2lvbiA3OTY1MCkKKysrIFNvdXJj
ZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMg
QEAKKzIwMTEtMDItMjQgIFNhaWxlc2ggQWdyYXdhbCAgPHNhaWxAY2hyb21pdW0ub3JnPgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIERvbid0IGNsZWFy
IGV4aXN0aW5nIGZpbGVzIGlmIHRoZSB1c2VyIGNhbmNlbHMgdGhlIGZpbGUgY2hvb3NlciBkaWFs
b2cuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01NTIw
MAorCisgICAgICAgICogc3JjL1dlYkZpbGVDaG9vc2VyQ29tcGxldGlvbkltcGwu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AgICAgICAgIHBhdGhzLmFwcGVuZChmaWxlTmFtZXNbaV0pOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>