зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1731564: Use motivated SpinEventLoopUntil inside widget/*. r=smaug
Depends on D127235 Differential Revision: https://phabricator.services.mozilla.com/D127236
This commit is contained in:
Родитель
8928410e6c
Коммит
48ee87e67c
|
@ -160,7 +160,8 @@ NS_IMETHODIMP nsDataObj::CStream::OnStopRequest(nsIRequest* aRequest,
|
|||
// and cancel the operation.
|
||||
nsresult nsDataObj::CStream::WaitForCompletion() {
|
||||
// We are guaranteed OnStopRequest will get called, so this should be ok.
|
||||
SpinEventLoopUntil([&]() { return mChannelRead; });
|
||||
SpinEventLoopUntil("widget:nsDataObj::CStream::WaitForCompletion"_ns,
|
||||
[&]() { return mChannelRead; });
|
||||
|
||||
if (!mChannelData.Length()) mChannelResult = NS_ERROR_FAILURE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче