<?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>135079</bug_id>
          
          <creation_ts>2014-07-18 17:27:53 -0700</creation_ts>
          <short_desc>We don&apos;t provide an extension to the temp file used for uploads</short_desc>
          <delta_ts>2014-07-21 10:34:14 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1023403</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-07-18 17:27:53 -0700</bug_when>
    <thetext>We don&apos;t provide an extension to the temp file used for uploads</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023404</commentid>
    <comment_count>1</comment_count>
      <attachid>235158</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-07-18 17:29:19 -0700</bug_when>
    <thetext>Created attachment 235158
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023468</commentid>
    <comment_count>2</comment_count>
      <attachid>235158</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-19 10:33:37 -0700</bug_when>
    <thetext>Comment on attachment 235158
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235158&amp;action=review

&gt; Source/WebKit2/UIProcess/WebPageProxy.cpp:3780
&gt; +    // FIXME: The sandbox extensions should be sent with the DidChooseFilesForOpenPanel message. This
&gt; +    // is gated on a way of passing SandboxExtension::Handles in a Vector.

We have that, SandboxExtension::HandleArray.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023469</commentid>
    <comment_count>3</comment_count>
      <attachid>235158</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-19 10:34:23 -0700</bug_when>
    <thetext>Comment on attachment 235158
Patch

I think that we should use the HandleArray.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023475</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-07-19 13:17:03 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 235158 [details])
&gt; I think that we should use the HandleArray.

This is a duplicate of the same code path that is used for DidChooseFilesForOpenPanel, this function is simply IOS specific. The core bug here is that both messages don&apos;t pass the extensions explicitly, and that should be fixed separately</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023483</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-19 14:35:00 -0700</bug_when>
    <thetext>Why should it be fixed separately? The fix should be straightforward, even simpler than the workaround that you are suggesting here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023512</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-07-20 00:09:26 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Why should it be fixed separately? The fix should be straightforward, even simpler than the workaround that you are suggesting here.

This code is a duplicate of the code below it, which is already well tested.  The only difference is that this &quot;new&quot; code is in an iOS only code path that does not have this piece of logic.

The &quot;simpler&quot; implementation requires changing the idl, and multiple methods to do a new and untested thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023690</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-07-21 10:09:39 -0700</bug_when>
    <thetext>Committed r171257: &lt;http://trac.webkit.org/changeset/171257&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023703</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-21 10:30:54 -0700</bug_when>
    <thetext>Seriously, committed an r-&apos;ed patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023706</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-07-21 10:34:14 -0700</bug_when>
    <thetext>Oliver pointed out that this was committed before r-; it&apos;s just the comment that was posted now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235158</attachid>
            <date>2014-07-18 17:29:19 -0700</date>
            <delta_ts>2014-07-19 10:34:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-135079-20140718172903.patch</filename>
            <type>text/plain</type>
            <size>2118</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTcxMjI2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggNGQxMjliOWVhMmYwNzNm
YWU3MmVjZWE4NGVjZWI2YjkxZmRkYWQ0NS4uZjliYjY3ZDgyZTUxZDk1M2I5NTBhZWFhNWJiNDY1
OWJlYjc5ZTVhMSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsx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tX3BhZ2VJRCk7CisgICAgfQorI2VuZGlmCisK
ICAgICBtX3Byb2Nlc3MtPnNlbmQoTWVzc2FnZXM6OldlYlBhZ2U6OkRpZENob29zZUZpbGVzRm9y
T3BlblBhbmVsV2l0aERpc3BsYXlTdHJpbmdBbmRJY29uKGZpbGVVUkxzLCBkaXNwbGF5U3RyaW5n
LCBpY29uRGF0YSA/IGljb25EYXRhLT5kYXRhUmVmZXJlbmNlKCkgOiBJUEM6OkRhdGFSZWZlcmVu
Y2UoKSksIG1fcGFnZUlEKTsKIAogICAgIG1fb3BlblBhbmVsUmVzdWx0TGlzdGVuZXItPmludmFs
aWRhdGUoKTsK
</data>
<flag name="review"
          id="259711"
          type_id="1"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>