Bug 1731564: Use motivated SpinEventLoopUntil inside xpfe/*. r=smaug

Depends on D127237

Differential Revision: https://phabricator.services.mozilla.com/D127238
This commit is contained in:
Jens Stutte 2021-10-07 08:06:16 +00:00
parent 7700e81876
commit ea47ed0285

View File

@ -512,7 +512,8 @@ NS_IMETHODIMP AppWindow::ShowModal() {
{
AutoNoJSAPI nojsapi;
SpinEventLoopUntil([&]() { return !mContinueModalLoop; });
SpinEventLoopUntil("AppWindow::ShowModal"_ns,
[&]() { return !mContinueModalLoop; });
}
mContinueModalLoop = false;
@ -2339,7 +2340,8 @@ NS_IMETHODIMP AppWindow::CreateNewContentWindow(
{
AutoNoJSAPI nojsapi;
SpinEventLoopUntil([&]() { return !appWin->IsLocked(); });
SpinEventLoopUntil("AppWindow::CreateNewContentWindow"_ns,
[&]() { return !appWin->IsLocked(); });
}
NS_ENSURE_STATE(appWin->mPrimaryContentShell ||