mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
3013240380
commit
347f22b7f3
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user