Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeIO: Add Error Handling for file errors #25873

Closed
wants to merge 1 commit into from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 30, 2020

This CL adds a mechanism to report file errors, as reported by
base::File::Error, though DOMExceptions. Due to security and privacy
considerations, not all errors are exposed to the user. For those
operations performed by the browser process (open, rename), the exact
error type is not exposed to the renderer.

Errors that are not reported by base::File::Error are left unchanged and
will be addressed in a followup CL.

The design document for this change is
https://docs.google.com/document/d/1rvs615AU2s8kVsmUlukbmtQNvUWFny0yzAS_gsnYZEs/

Bug: 1095537
Change-Id: If047ddccb6464dd6efb2b06a5da262d049f1e9a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2436344
Commit-Queue: Richard Stotz <rstz@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829643}


Revert "NativeIO: Add Error Handling for file errors"

This reverts commit df72c8d567074d0a1c22fe963939f3c791f09991.

Reason for revert: external/wpt/native-io/rename_async_failure_handling.tentative.https.any.html
external/wpt/native-io/rename_async_failure_handling.tentative.https.any.serviceworker.html
external/wpt/native-io/rename_async_failure_handling.tentative.https.any.sharedworker.html
external/wpt/native-io/rename_async_failure_handling.tentative.https.any.worker.html failing on multiple bots: https://ci.chromium.org/p/chromium/builders/ci/WebKit%20Win10
https://ci.chromium.org/p/chromium/builders/ci/linux-bfcache-rel

TBR=pwnall@chromium.org,mkwst@chromium.org,krivoy@google.com,rstz@chromium.org

Change-Id: I1078ca3dd40685d711a9717b143f2974d62e084c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1095537
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2551842
Reviewed-by: Joshua Pawlicki waffles@chromium.org
Commit-Queue: Joshua Pawlicki waffles@chromium.org
Cr-Commit-Position: refs/heads/master@{#829673}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2436344 branch 3 times, most recently from 6093a23 to 91409c3 Compare October 6, 2020 15:20
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2436344 branch 7 times, most recently from 7eb9855 to d49ad13 Compare October 12, 2020 15:02
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2436344 branch 5 times, most recently from 3d51460 to d7be442 Compare November 16, 2020 14:16
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2436344 branch 3 times, most recently from b86ca05 to 76993e0 Compare November 20, 2020 10:36
This CL adds a mechanism to report file errors, as reported by
base::File::Error, though DOMExceptions. Due to security and privacy
considerations, not all errors are exposed to the user. For those
operations performed by the browser process (open, rename), the exact
error type is not exposed to the renderer.

Errors that are not reported by base::File::Error are left unchanged and
will be addressed in a followup CL.

The design document for this change is
https://docs.google.com/document/d/1rvs615AU2s8kVsmUlukbmtQNvUWFny0yzAS_gsnYZEs/

Bug: 1095537
Change-Id: If047ddccb6464dd6efb2b06a5da262d049f1e9a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2436344
Commit-Queue: Richard Stotz <rstz@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829643}
@stephenmcgruer
Copy link
Contributor

@stephenmcgruer stephenmcgruer deleted the chromium-export-cl-2436344 branch November 20, 2020 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants