mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Issue #1587 Part 12 (followup 2): Allow clearing of signal by setting to null.
This commit is contained in:
parent
1ae6431766
commit
70bf74e9d3
3 changed files with 7 additions and 2 deletions
|
|
@ -499,6 +499,11 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest,
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mChannel) {
|
||||||
|
MOZ_ASSERT(!mObserver);
|
||||||
|
return NS_BINDING_ABORTED;
|
||||||
|
}
|
||||||
|
|
||||||
// We should only get to the following code once.
|
// We should only get to the following code once.
|
||||||
MOZ_ASSERT(!mPipeOutputStream);
|
MOZ_ASSERT(!mPipeOutputStream);
|
||||||
MOZ_ASSERT(mObserver);
|
MOZ_ASSERT(mObserver);
|
||||||
|
|
|
||||||
|
|
@ -425,7 +425,7 @@ Request::Constructor(const GlobalObject& aGlobal,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aInit.mSignal.WasPassed()) {
|
if (aInit.mSignal.WasPassed()) {
|
||||||
signal = &aInit.mSignal.Value();
|
signal = aInit.mSignal.Value();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NS_IsMainThread()) {
|
if (NS_IsMainThread()) {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ dictionary RequestInit {
|
||||||
DOMString integrity;
|
DOMString integrity;
|
||||||
|
|
||||||
[Func="AbortController::IsEnabled"]
|
[Func="AbortController::IsEnabled"]
|
||||||
AbortSignal signal;
|
AbortSignal? signal;
|
||||||
|
|
||||||
[Func="FetchObserver::IsEnabled"]
|
[Func="FetchObserver::IsEnabled"]
|
||||||
ObserverCallback observe;
|
ObserverCallback observe;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue