Bug 80203 - REGRESSION (r109022): Files dragged onto input controls cannot be read due to sandbox violation
Summary: REGRESSION (r109022): Files dragged onto input controls cannot be read due to...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Critical
Assignee: Nobody
URL:
Keywords: InRadar
: 80475 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-02 16:46 PST by Alexey Proskuryakov
Modified: 2012-03-14 13:33 PDT (History)
4 users (show)

See Also:


Attachments
test (12 bytes, text/plain)
2012-03-07 13:23 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 13:48 PST, Enrica Casucci
no flags Details
Test case (316 bytes, text/html)
2012-03-07 16:17 PST, Enrica Casucci
no flags Details
Test (12 bytes, text/plain)
2012-03-07 16:26 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 16:29 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 16:32 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 16:37 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 16:46 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-07 17:09 PST, Enrica Casucci
no flags Details
test (12 bytes, text/plain)
2012-03-08 10:06 PST, Enrica Casucci
no flags Details
Patch (2.31 KB, patch)
2012-03-08 17:03 PST, Enrica Casucci
ap: review+
Details | Formatted Diff | Diff
test file (6 bytes, text/plain)
2012-03-12 14:53 PDT, Tim Horton
no flags Details
test (12 bytes, text/plain)
2012-03-14 13:33 PDT, Enrica Casucci
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2012-03-02 16:46:58 PST
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.
Comment 1 Alexey Proskuryakov 2012-03-02 16:47:29 PST
<rdar://problem/10976643>
Comment 2 Enrica Casucci 2012-03-06 11:47:24 PST
I tried with r109827 and I cannot reproduce the problem.
The steps I'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 "Choose File" button and drop it.

Result
The file is attached as expected.

I don't see any Sandbox violation in the console.
Please let me know how to reproduce the problem.
Comment 3 Alexey Proskuryakov 2012-03-06 20:07:59 PST
*** Bug 80475 has been marked as a duplicate of this bug. ***
Comment 4 Enrica Casucci 2012-03-07 13:23:38 PST
Created attachment 130680 [details]
test
Comment 5 Enrica Casucci 2012-03-07 13:48:13 PST
Created attachment 130688 [details]
test
Comment 6 Enrica Casucci 2012-03-07 16:17:00 PST
Created attachment 130717 [details]
Test case
Comment 7 Enrica Casucci 2012-03-07 16:26:49 PST
Created attachment 130718 [details]
Test
Comment 8 Enrica Casucci 2012-03-07 16:29:31 PST
Created attachment 130719 [details]
test
Comment 9 Enrica Casucci 2012-03-07 16:32:55 PST
Created attachment 130722 [details]
test
Comment 10 Enrica Casucci 2012-03-07 16:37:08 PST
Created attachment 130723 [details]
test
Comment 11 Enrica Casucci 2012-03-07 16:46:03 PST
Created attachment 130725 [details]
test
Comment 12 Enrica Casucci 2012-03-07 17:09:22 PST
Created attachment 130730 [details]
test
Comment 13 Enrica Casucci 2012-03-08 10:06:39 PST
Created attachment 130837 [details]
test
Comment 14 Enrica Casucci 2012-03-08 17:03:41 PST
Created attachment 130939 [details]
Patch
Comment 15 Alexey Proskuryakov 2012-03-08 18:41:01 PST
Comment on attachment 130939 [details]
Patch

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

r=me as a quick&dirty fix.

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

I'd have added a bug link, as "the issue" may be ambiguous to some readers.
Comment 16 Enrica Casucci 2012-03-09 10:00:06 PST
http://trac.webkit.org/changeset/110303
Comment 17 Tim Horton 2012-03-12 14:53:39 PDT
Created attachment 131420 [details]
test file
Comment 18 Enrica Casucci 2012-03-14 13:33:24 PDT
Created attachment 131911 [details]
test