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:
@@ -512,7 +512,8 @@ NS_IMETHODIMP AppWindow::ShowModal() {
|
|||||||
|
|
||||||
{
|
{
|
||||||
AutoNoJSAPI nojsapi;
|
AutoNoJSAPI nojsapi;
|
||||||
SpinEventLoopUntil([&]() { return !mContinueModalLoop; });
|
SpinEventLoopUntil("AppWindow::ShowModal"_ns,
|
||||||
|
[&]() { return !mContinueModalLoop; });
|
||||||
}
|
}
|
||||||
|
|
||||||
mContinueModalLoop = false;
|
mContinueModalLoop = false;
|
||||||
@@ -2339,7 +2340,8 @@ NS_IMETHODIMP AppWindow::CreateNewContentWindow(
|
|||||||
|
|
||||||
{
|
{
|
||||||
AutoNoJSAPI nojsapi;
|
AutoNoJSAPI nojsapi;
|
||||||
SpinEventLoopUntil([&]() { return !appWin->IsLocked(); });
|
SpinEventLoopUntil("AppWindow::CreateNewContentWindow"_ns,
|
||||||
|
[&]() { return !appWin->IsLocked(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_ENSURE_STATE(appWin->mPrimaryContentShell ||
|
NS_ENSURE_STATE(appWin->mPrimaryContentShell ||
|
||||||
|
|||||||
Reference in New Issue
Block a user