DescriptionFixes FileSystemOperation::Cancel behavior
When a cancel is requested for in-flight Truncate operation,
we don't (can't) stop running the Truncate, let it run until
the end, but then return following values:
- ABORT error for Truncate (while it hasn't been really aborted)
- OK for the cancel operation (while the operation hasn't been really canceled)
This feels weird since the cancel wasn't actually processed.
Instead this CL changes the return values:
- The original status code for Truncate
- INVALID_OPERATION for the cancel operation unles the original status code is ABORT
I verified that this doesn't break existing JS behavior.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221443
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|