tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3ca670655367342124f1f1e9134cbd57205cd155
parent f078c3f2cd6cb6760f74b6ba48d8b0d14b5eb695
Author: Matthew Gaudet <mgaudet@mozilla.com>
Date:   Wed, 29 Oct 2025 17:24:28 +0000

Bug 1996963 - Decrement debugger recursion depth when restoring microtask queue in both implementations r=smaug

This oversight caused devtools failures.

Differential Revision: https://phabricator.services.mozilla.com/D270547

Diffstat:
Mxpcom/base/CycleCollectedJSContext.cpp | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp @@ -524,7 +524,6 @@ class CycleCollectedJSContext::SavedMicroTaskQueue } MOZ_RELEASE_ASSERT(ccjs->mPendingMicroTaskRunnables.empty()); - ccjs->mDebuggerRecursionDepth--; ccjs->mPendingMicroTaskRunnables.swap(mQueue); // Re-enqueue the suppressed task now that we've put the original @@ -533,6 +532,8 @@ class CycleCollectedJSContext::SavedMicroTaskQueue ccjs->mPendingMicroTaskRunnables.push_back(maybeSuppressedTasks); } } + + ccjs->mDebuggerRecursionDepth--; } private: