diff --git a/xpfe/appshell/AppWindow.cpp b/xpfe/appshell/AppWindow.cpp index 6da60627646f..5795cce0256b 100644 --- a/xpfe/appshell/AppWindow.cpp +++ b/xpfe/appshell/AppWindow.cpp @@ -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 ||