<?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>80203</bug_id>
          
          <creation_ts>2012-03-02 16:46:58 -0800</creation_ts>
          <short_desc>REGRESSION (r109022): Files dragged onto input controls cannot be read due to sandbox violation</short_desc>
          <delta_ts>2012-03-14 13:33:24 -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>WebKit Misc.</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>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>enrica</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>570040</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-02 16:46:58 -0800</bug_when>
    <thetext>Steps to reproduce: try to attach a file from desktop to this bug by dragging it onto a file upload control.

Results: submission will hang; there will be a sandbox violation in console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570041</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-02 16:47:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/10976643&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>572033</commentid>
    <comment_count>2</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-06 11:47:24 -0800</bug_when>
    <thetext>I tried with r109827 and I cannot reproduce the problem.
The steps I&apos;ve used are the following:
1. Open  https://bugs.webkit.org/show_bug.cgi?id=80203
2. Click on Add an attachment
3. Drag a file over the &quot;Choose File&quot; button and drop it.

Result
The file is attached as expected.

I don&apos;t see any Sandbox violation in the console.
Please let me know how to reproduce the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>572468</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-06 20:07:59 -0800</bug_when>
    <thetext>*** Bug 80475 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573167</commentid>
    <comment_count>4</comment_count>
      <attachid>130680</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 13:23:38 -0800</bug_when>
    <thetext>Created attachment 130680
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573202</commentid>
    <comment_count>5</comment_count>
      <attachid>130688</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 13:48:13 -0800</bug_when>
    <thetext>Created attachment 130688
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573343</commentid>
    <comment_count>6</comment_count>
      <attachid>130717</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:17:00 -0800</bug_when>
    <thetext>Created attachment 130717
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573346</commentid>
    <comment_count>7</comment_count>
      <attachid>130718</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:26:49 -0800</bug_when>
    <thetext>Created attachment 130718
Test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573348</commentid>
    <comment_count>8</comment_count>
      <attachid>130719</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:29:31 -0800</bug_when>
    <thetext>Created attachment 130719
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573354</commentid>
    <comment_count>9</comment_count>
      <attachid>130722</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:32:55 -0800</bug_when>
    <thetext>Created attachment 130722
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573357</commentid>
    <comment_count>10</comment_count>
      <attachid>130723</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:37:08 -0800</bug_when>
    <thetext>Created attachment 130723
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573361</commentid>
    <comment_count>11</comment_count>
      <attachid>130725</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 16:46:03 -0800</bug_when>
    <thetext>Created attachment 130725
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573384</commentid>
    <comment_count>12</comment_count>
      <attachid>130730</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-07 17:09:22 -0800</bug_when>
    <thetext>Created attachment 130730
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573899</commentid>
    <comment_count>13</comment_count>
      <attachid>130837</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-08 10:06:39 -0800</bug_when>
    <thetext>Created attachment 130837
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574395</commentid>
    <comment_count>14</comment_count>
      <attachid>130939</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-08 17:03:41 -0800</bug_when>
    <thetext>Created attachment 130939
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574476</commentid>
    <comment_count>15</comment_count>
      <attachid>130939</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-08 18:41:01 -0800</bug_when>
    <thetext>Comment on attachment 130939
Patch

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

r=me as a quick&amp;dirty fix.

&gt; Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:158
&gt; +    // FIXME: this needs to be replaced with the code below, once we resolve the sandboxing issue.

I&apos;d have added a bug link, as &quot;the issue&quot; may be ambiguous to some readers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574972</commentid>
    <comment_count>16</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-09 10:00:06 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/110303</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576569</commentid>
    <comment_count>17</comment_count>
      <attachid>131420</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-03-12 14:53:39 -0700</bug_when>
    <thetext>Created attachment 131420
test file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578717</commentid>
    <comment_count>18</comment_count>
      <attachid>131911</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-03-14 13:33:24 -0700</bug_when>
    <thetext>Created attachment 131911
test</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130680</attachid>
            <date>2012-03-07 13:23:38 -0800</date>
            <delta_ts>2012-03-07 13:48:13 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130688</attachid>
            <date>2012-03-07 13:48:13 -0800</date>
            <delta_ts>2012-03-07 16:17:00 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130717</attachid>
            <date>2012-03-07 16:17:00 -0800</date>
            <delta_ts>2012-03-07 16:26:49 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>316</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">PGhlYWQ+CjxzY3JpcHQ+CmZ1bmN0aW9uIHRlc3QoKSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50
QnlJZCgndGVzdCcpLmZvY3VzKCk7CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgiSW5zZXJ0SW1h
Z2UiLGZhbHNlKTsKICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJJbnNlcnRJbWFnZSIsZmFsc2Up
OwogICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoIkluZGVudCIpOwp9CiA8L3NjcmlwdD4KPC9oZWFk
Pgo8Ym9keSBvbmxvYWQ9J3Rlc3QoKTsnPgogICAgPGRpdj48c3BhbiBpZD0ndGVzdCcgY29udGVu
dGVkaXRhYmxlPjwvc3Bhbj48L2Rpdj4KPC9ib2R5Pg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130718</attachid>
            <date>2012-03-07 16:26:49 -0800</date>
            <delta_ts>2012-03-07 16:29:31 -0800</delta_ts>
            <desc>Test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130719</attachid>
            <date>2012-03-07 16:29:31 -0800</date>
            <delta_ts>2012-03-07 16:32:55 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130722</attachid>
            <date>2012-03-07 16:32:55 -0800</date>
            <delta_ts>2012-03-07 16:37:08 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130723</attachid>
            <date>2012-03-07 16:37:08 -0800</date>
            <delta_ts>2012-03-07 16:46:03 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130725</attachid>
            <date>2012-03-07 16:46:03 -0800</date>
            <delta_ts>2012-03-07 17:09:22 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130730</attachid>
            <date>2012-03-07 17:09:22 -0800</date>
            <delta_ts>2012-03-08 10:06:39 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>130837</attachid>
            <date>2012-03-08 10:06:39 -0800</date>
            <delta_ts>2012-03-08 17:03:41 -0800</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>130939</attachid>
            <date>2012-03-08 17:03:41 -0800</date>
            <delta_ts>2012-03-14 13:33:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>sandboxviolation.txt</filename>
            <type>text/plain</type>
            <size>2366</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDExMDIzMykKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE5IEBACisyMDEyLTAzLTA4ICBFbnJpY2Eg
Q2FzdWNjaSAgPGVucmljYUBhcHBsZS5jb20+CisKKyAgICAgICAgUkVHUkVTU0lPTiAocjEwOTAy
Mik6IEZpbGVzIGRyYWdnZWQgb250byBpbnB1dCBjb250cm9scyBjYW5ub3QgYmUgcmVhZCBkdWUg
dG8gc2FuZGJveCB2aW9sYXRpb24uCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD04MDIwMworICAgICAgICA8cmRhcjovL3Byb2JsZW0vMTA5NzY2NDM+CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVGhpcyBwYXRj
aCByZXZlcnRzIGEgc21hbGwgcGFydCBmbyByMTA5MDIyLCBsZWF2aW5nIGFjY2VzcyB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IDApOworICAg
IAorICAgIFBsYXRmb3JtUGFzdGVib2FyZChwYXN0ZWJvYXJkTmFtZSkuZ2V0UGF0aG5hbWVzRm9y
VHlwZShwYXRobmFtZXMsIHBhc3RlYm9hcmRUeXBlKTsKIH0KIAogU3RyaW5nIFdlYlBsYXRmb3Jt
U3RyYXRlZ2llczo6c3RyaW5nRm9yVHlwZShjb25zdCBTdHJpbmcmIHBhc3RlYm9hcmRUeXBlLCBj
b25zdCBTdHJpbmcmIHBhc3RlYm9hcmROYW1lKQo=
</data>
<flag name="review"
          id="134103"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>131420</attachid>
            <date>2012-03-12 14:53:39 -0700</date>
            <delta_ts>2012-03-14 13:33:24 -0700</delta_ts>
            <desc>test file</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>6</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">SGVsbG8K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>131911</attachid>
            <date>2012-03-14 13:33:24 -0700</date>
            <delta_ts>2012-03-14 13:33:24 -0700</delta_ts>
            <desc>test</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>12</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SGVsbG8gd29ybGQK
</data>

          </attachment>
      

    </bug>

</bugzilla>