зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 26304e65203f (bug 1773237) for causing wpt failures on response-error-from-stream.any.sharedworker.html CLOSED TREE
This commit is contained in:
Родитель
41e9f539fa
Коммит
fb8b4283ae
|
@ -147,16 +147,10 @@ void FetchStreamReader::CloseAndRelease(JSContext* aCx, nsresult aStatus) {
|
|||
// comments in ReadableStream::cancel() conveying the spec, step 2 of
|
||||
// 3.4.3 that specified ReadableStreamCancel is: If stream.[[state]] is
|
||||
// "closed", return a new promise resolved with undefined.
|
||||
RefPtr<Promise> cancelResultPromise =
|
||||
RefPtr<Promise> ignoredResultPromise =
|
||||
MOZ_KnownLive(mReader)->Cancel(aCx, errorValue, ignoredError);
|
||||
NS_WARNING_ASSERTION(!ignoredError.Failed(),
|
||||
"Failed to cancel stream during close and release");
|
||||
if (cancelResultPromise) {
|
||||
bool setHandled = cancelResultPromise->SetAnyPromiseIsHandled();
|
||||
NS_WARNING_ASSERTION(setHandled,
|
||||
"Failed to mark cancel promise as handled.");
|
||||
(void)setHandled;
|
||||
}
|
||||
}
|
||||
|
||||
// We don't want to propagate exceptions during the cleanup.
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
// This test fails if there is an unhandled promise rejection
|
||||
var stream = new ReadableStream({
|
||||
pull() {
|
||||
return Promise.reject("foobar");
|
||||
},
|
||||
});
|
||||
var response = new Response(stream);
|
||||
var text = response.text().then(
|
||||
() => {},
|
||||
e => {}
|
||||
);
|
|
@ -19,4 +19,3 @@ skip-if =
|
|||
tsan # Causes claim expired errors; see Bug 1770170.
|
||||
run-sequentially = very high failure rate in parallel
|
||||
[too-big-array-buffer.js]
|
||||
[bug-1773237.js]
|
||||
|
|
Загрузка…
Ссылка в новой задаче