Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Issue 100023005: Make cloning of File objects more useful. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), jamesr, kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, kinuko, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make cloning of File objects more useful. Make the structured cloning of File objects complete, extending their wire format to also include: * name * relative path * size * last modification date. As this changes the format, bump the serialization version number up to 4. The deserializer is backwards compatible, including for File objects; verify this to be so through tests. Files constructed via the File constructor weren't correctly cloned as-was; added a Worker test to have some coverage. R=dslomov@chromium.org,jochen@chromium.org BUG=171905 TEST=fast/storage/serialized-script-value TEST=fast/files/workers/worker-read-file-constructor-async Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163956

Patch Set 1 #

Patch Set 2 : Reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -100 lines) Patch
A LayoutTests/fast/files/workers/resources/worker-read-file-constructor-async.js View 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/files/workers/worker-read-file-constructor-async.html View 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/files/workers/worker-read-file-constructor-async-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/fast/storage/resources/serialized-script-value.js View 3 chunks +52 lines, -1 line 0 comments Download
M LayoutTests/fast/storage/serialized-script-value.html View 4 chunks +85 lines, -81 lines 0 comments Download
M LayoutTests/fast/storage/serialized-script-value-expected.txt View 8 chunks +245 lines, -0 lines 0 comments Download
M Source/bindings/v8/SerializedScriptValue.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/v8/SerializedScriptValue.cpp View 2 chunks +34 lines, -2 lines 0 comments Download
M Source/core/fileapi/File.h View 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/fileapi/File.cpp View 1 chunk +6 lines, -8 lines 0 comments Download
M public/web/WebSerializedScriptValueVersion.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
sof
Please take a look when you next have a spare moment. Bumping version of the ...
7 years ago (2013-12-15 21:39:42 UTC) #1
Dmitry Lomov (no reviews)
On 2013/12/15 21:39:42, sof wrote: > Please take a look when you next have a ...
7 years ago (2013-12-16 09:28:55 UTC) #2
sof
On 2013/12/16 09:28:55, Dmitry Lomov (chromium) wrote: > On 2013/12/15 21:39:42, sof wrote: > > ...
7 years ago (2013-12-16 10:48:18 UTC) #3
Dmitry Lomov (no reviews)
lgtm Thanks for the fix! On 2013/12/16 10:48:18, sof wrote: > On 2013/12/16 09:28:55, Dmitry ...
7 years ago (2013-12-16 10:52:50 UTC) #4
jochen (gone - plz use gerrit)
rubberstamp lgtm
7 years ago (2013-12-16 10:55:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/100023005/20001
7 years ago (2013-12-16 11:54:24 UTC) #6
commit-bot: I haz the power
7 years ago (2013-12-16 13:40:39 UTC) #7
Message was sent while issue was closed.
Change committed as 163956

Powered by Google App Engine
This is Rietveld 408576698