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

Issue 2680603002: FileReader.abort() should not fire an error event. (Closed)

Created:
3 years, 10 months ago by Marijn Kruisselbrink
Modified:
3 years, 10 months ago
Reviewers:
kinuko
CC:
blink-reviews, chromium-reviews, kinuko+fileapi, nhiroki, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FileReader.abort() should not fire an error event. The 'error', 'abort' and 'load' events are mutually exclusive. Each read operation should only result in one of these events. So stop the error event from being fired by the abort method, to align our behavior with at least firefox and edge. (at the time our implementation was written, the spec did still require an error event as well for this case, but that was changed fairly soon after in the spec) Test landed upstream in https://github.com/w3c/web-platform-tests/pull/4747 BUG=689208 Review-Url: https://codereview.chromium.org/2680603002 Cr-Commit-Position: refs/heads/master@{#448714} Committed: https://chromium.googlesource.com/chromium/src/+/c78653065fa6d8fb524e48a5d7232f3ab5eab4ab

Patch Set 1 #

Patch Set 2 : fix test expectation #

Patch Set 3 : fix file system provider tests #

Patch Set 4 : Remove fixed wpt test expectation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -10 lines) Patch
M chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/FileAPI/reading-data-section/filereader_abort-expected.txt View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/files/file-reader-abort-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fileapi/FileReader.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (20 generated)
Marijn Kruisselbrink
3 years, 10 months ago (2017-02-07 01:11:06 UTC) #10
kinuko
Looks like it broke tests? (The code change itself lgtm)
3 years, 10 months ago (2017-02-07 04:45:49 UTC) #13
Marijn Kruisselbrink
On 2017/02/07 at 04:45:49, kinuko wrote: > Looks like it broke tests? Ah yes, seems ...
3 years, 10 months ago (2017-02-07 19:36:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2680603002/60001
3 years, 10 months ago (2017-02-07 19:39:52 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 20:14:44 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c78653065fa6d8fb524e48a5d723...

Powered by Google App Engine
This is Rietveld 408576698