Bug 1917479 - FS: Add mapping for NS_ABORT_ERROR; r=dom-storage-reviewers,jari

Differential Revision: https://phabricator.services.mozilla.com/D219862
This commit is contained in:
Jan Varga 2024-09-18 04:34:18 +00:00
parent 3013240380
commit 347f22b7f3

View File

@ -304,6 +304,11 @@ struct BeginRequestFailureCallback {
: mPromise(std::move(aPromise)) {}
void operator()(nsresult aRv) const {
if (aRv == NS_ERROR_ABORT) {
mPromise->MaybeRejectWithAbortError(
"Abort error when calling GetDirectory");
return;
}
if (aRv == NS_ERROR_DOM_SECURITY_ERR) {
mPromise->MaybeRejectWithSecurityError(
"Security error when calling GetDirectory");