Bug 1016560. Remove the footgun of rejecting promises with arbitrary objects. r=khuey

This commit is contained in:
Boris Zbarsky
2014-06-03 11:38:38 -04:00
parent 3a7649c686
commit b58b6f641e
10 changed files with 36 additions and 14 deletions

View File

@@ -287,7 +287,7 @@ CreateFileTask::HandlerCallback()
if (HasError()) {
nsRefPtr<DOMError> domError = new DOMError(mFileSystem->GetWindow(),
mErrorValue);
mPromise->MaybeReject(domError);
mPromise->MaybeRejectBrokenly(domError);
mPromise = nullptr;
return;
}