Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj

Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
This commit is contained in:
Jean-Yves Avenard
2020-06-23 05:05:36 +00:00
parent 1d05f87c1f
commit 05adafa9ef
144 changed files with 597 additions and 318 deletions

View File

@@ -7775,9 +7775,9 @@ RefPtr<GenericPromise> HTMLMediaElement::SetSrcMediaStreamSink(
}
RefPtr<GenericPromise> p =
GenericPromise::All(GetCurrentThreadSerialEventTarget(), promises)
GenericPromise::All(GetCurrentSerialEventTarget(), promises)
->Then(
GetCurrentThreadSerialEventTarget(), __func__,
GetCurrentSerialEventTarget(), __func__,
[](const nsTArray<bool>&) {
return GenericPromise::CreateAndResolve(true, __func__);
},