mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
7700e81876
commit
ea47ed0285
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user