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

Issue 184473002: Sync Blob.close() behavior wrt updated spec. (Closed)

Created:
6 years, 9 months ago by sof
Modified:
6 years, 9 months ago
CC:
blink-reviews, arv+blink, tzik, eae+blinkwatch, nhiroki, kinuko, dglazkov+blink, adamk+blink_chromium.org, rwlbuis, watchdog-blink-watchlist_google.com, Inactive, haraken
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Sync Blob.close() behavior wrt updated spec. The File API now defines Blobs as having a readability state of opened/closed, http://dev.w3.org/2006/webapi/FileAPI/#readabilityState With close() naturally making the Blob enter the 'closed' state, http://dev.w3.org/2006/webapi/FileAPI/#close-method Like the FileReader operations, Blob methods will now throw InvalidStateError when passed a Blob in such a 'closed' state. Update the implementation to follow the spec. R=kinuko@chromium.org BUG=344820 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168567

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -49 lines) Patch
M LayoutTests/fast/files/blob-close.html View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/files/blob-close-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/files/blob-close-revoke.html View 1 chunk +3 lines, -8 lines 0 comments Download
M LayoutTests/fast/files/blob-close-revoke-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/DOMURL.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DOMURL.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/dom/URL.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/Blob.h View 1 2 chunks +18 lines, -2 lines 0 comments Download
M Source/core/fileapi/Blob.cpp View 1 3 chunks +26 lines, -16 lines 0 comments Download
M Source/core/fileapi/Blob.idl View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/fileapi/File.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/fileapi/File.cpp View 1 3 chunks +23 lines, -13 lines 0 comments Download
M Source/modules/filesystem/InspectorFileSystemAgent.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sof
When you have a moment, please take a look.
6 years, 9 months ago (2014-02-28 13:11:01 UTC) #1
kinuko
lgtm https://codereview.chromium.org/184473002/diff/1/Source/core/fileapi/Blob.h File Source/core/fileapi/Blob.h (right): https://codereview.chromium.org/184473002/diff/1/Source/core/fileapi/Blob.h#newcode76 Source/core/fileapi/Blob.h:76: } Oops... sad, is this the common way ...
6 years, 9 months ago (2014-03-03 05:18:45 UTC) #2
sof
nbarth: when you have some time, could you clarify if there are no IDL encoding ...
6 years, 9 months ago (2014-03-03 09:36:52 UTC) #3
sof
On 2014/03/03 09:36:52, sof wrote: > nbarth: when you have some time, could you clarify ...
6 years, 9 months ago (2014-03-03 11:47:43 UTC) #4
Nils Barth (inactive)
On 2014/03/03 11:47:43, sof wrote: > On 2014/03/03 09:36:52, sof wrote: > > (Relatedly, I'm ...
6 years, 9 months ago (2014-03-04 00:50:28 UTC) #5
Nils Barth (inactive)
+haraken: WDYT? Agreed that optional handling is ugly (doesn't play well with [RaisesException]). Two complementary ...
6 years, 9 months ago (2014-03-04 01:11:54 UTC) #6
michaeln
There remain some other points of integration around Blobs that aren't directly specified the the ...
6 years, 9 months ago (2014-03-04 02:20:05 UTC) #7
sof
On 2014/03/04 02:20:05, michaeln wrote: > There remain some other points of integration around Blobs ...
6 years, 9 months ago (2014-03-04 07:25:27 UTC) #8
sof
https://codereview.chromium.org/184473002/diff/1/Source/core/fileapi/Blob.h File Source/core/fileapi/Blob.h (right): https://codereview.chromium.org/184473002/diff/1/Source/core/fileapi/Blob.h#newcode76 Source/core/fileapi/Blob.h:76: } On 2014/03/04 01:11:54, Nils Barth wrote: > On ...
6 years, 9 months ago (2014-03-04 08:52:55 UTC) #9
Nils Barth (inactive)
On 2014/03/04 08:52:55, sof wrote: > > Refs: > > // LLONG_MAX = 9223372036854775807 > ...
6 years, 9 months ago (2014-03-04 08:54:58 UTC) #10
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 9 months ago (2014-03-05 13:48:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/184473002/20001
6 years, 9 months ago (2014-03-05 13:48:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/184473002/20001
6 years, 9 months ago (2014-03-05 20:58:45 UTC) #13
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 04:10:41 UTC) #14
Message was sent while issue was closed.
Change committed as 168567

Powered by Google App Engine
This is Rietveld 408576698