Bug 1395141 - RequestInit dictionary must have AbortSignal as optional, r=bkelly

This commit is contained in:
Andrea Marchesini 2017-08-30 18:47:23 +02:00
parent 4c5ae9e764
commit 1df07a3979
4 changed files with 2 additions and 14 deletions

View File

@ -449,7 +449,7 @@ Request::Constructor(const GlobalObject& aGlobal,
}
if (aInit.mSignal.WasPassed()) {
signal = &aInit.mSignal.Value();
signal = aInit.mSignal.Value();
}
if (NS_IsMainThread()) {

View File

@ -53,7 +53,7 @@ dictionary RequestInit {
DOMString integrity;
[Func="AbortController::IsEnabledInFetch"]
AbortSignal signal;
AbortSignal? signal;
[Func="FetchObserver::IsEnabled"]
ObserverCallback observe;

View File

@ -1,8 +1,5 @@
[general-serviceworker.https.html]
type: testharness
[ServiceWorkerGlobalScope: Signal removed by setting to null]
expected: FAIL
[ServiceWorkerGlobalScope: Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL

View File

@ -1,27 +1,18 @@
[general.html]
type: testharness
expected: TIMEOUT
[Window: Signal removed by setting to null]
expected: FAIL
[Window: Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL
[Window: Readable stream synchronously cancels with AbortError if aborted before reading]
expected: FAIL
[DedicatedWorkerGlobalScope: Signal removed by setting to null]
expected: FAIL
[DedicatedWorkerGlobalScope: Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL
[DedicatedWorkerGlobalScope: Readable stream synchronously cancels with AbortError if aborted before reading]
expected: FAIL
[SharedWorkerGlobalScope: Signal removed by setting to null]
expected: FAIL
[SharedWorkerGlobalScope: Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL