Bug 132713 - Automatically zip document bundles used via File API
Summary: Automatically zip document bundles used via File API
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-05-08 16:31 PDT by Alexey Proskuryakov
Modified: 2015-12-09 11:17 PST (History)
7 users (show)

See Also:


Attachments
proposed patch (30.51 KB, patch)
2014-05-08 16:54 PDT, Alexey Proskuryakov
andersca: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (483.10 KB, application/zip)
2014-05-08 19:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 (490.55 KB, application/zip)
2014-05-08 20:23 PDT, Build Bot
no flags Details
patch for landing (30.62 KB, patch)
2014-05-08 20:58 PDT, Alexey Proskuryakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2014-05-08 16:31:48 PDT
In Safari, we automatically archive document bundles when submitted via forms. Let's do the same for File API.

We can pre-compute file type and name, but if a script asks for size, we'll need to synchronously archive at this point. If a script does not, we can do this lazily when uploading (e.g. the script could build a blob with file parts, and use Blob or FormData forms of XMLHttpRequest.send()).

<rdar://problem/13397892>
Comment 1 Alexey Proskuryakov 2014-05-08 16:54:44 PDT
Created attachment 231113 [details]
proposed patch
Comment 2 WebKit Commit Bot 2014-05-08 16:56:28 PDT
Attachment 231113 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/network/mac/BlobDataFileReferenceMac.mm:63:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebCore/platform/network/mac/BlobDataFileReferenceMac.mm:69:  Missing space before {  [whitespace/braces] [5]
Total errors found: 2 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Anders Carlsson 2014-05-08 16:59:55 PDT
Comment on attachment 231113 [details]
proposed patch

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

> Source/WebCore/FileMac.mm:1
> +/*

I don't think you meant to put this file here.
Comment 4 Build Bot 2014-05-08 19:28:43 PDT
Comment on attachment 231113 [details]
proposed patch

Attachment 231113 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5682755736174592

New failing tests:
http/tests/misc/empty-file-formdata.html
Comment 5 Build Bot 2014-05-08 19:28:46 PDT
Created attachment 231123 [details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 6 Build Bot 2014-05-08 20:23:04 PDT
Comment on attachment 231113 [details]
proposed patch

Attachment 231113 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4803655119142912

New failing tests:
svg/text/non-bmp-positioning-lists.svg
http/tests/misc/empty-file-formdata.html
Comment 7 Build Bot 2014-05-08 20:23:07 PDT
Created attachment 231125 [details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-15  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 8 Alexey Proskuryakov 2014-05-08 20:58:35 PDT
Created attachment 231127 [details]
patch for landing
Comment 9 WebKit Commit Bot 2014-05-08 21:37:57 PDT
Comment on attachment 231127 [details]
patch for landing

Clearing flags on attachment: 231127

Committed r168518: <http://trac.webkit.org/changeset/168518>
Comment 10 WebKit Commit Bot 2014-05-08 21:38:03 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Alexey Proskuryakov 2014-05-15 13:59:29 PDT
Forgot to land the tests. Landed them in <http://trac.webkit.org/r168908>.