tor-browser

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

commit 22046bf5f7b8f988c474fa5923c499f4ba01762a
parent 7b432130356031087fdb6340016083c316122c59
Author: Matthew Gaudet <mgaudet@mozilla.com>
Date:   Mon,  1 Dec 2025 17:44:32 +0000

Bug 2003083 - Run JS Microtasks even if the stack can't be unwrapped r=arai

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

Diffstat:
Mxpcom/base/CycleCollectedJSContext.cpp | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp @@ -1025,10 +1025,8 @@ static void MOZ_CAN_RUN_SCRIPT RunMicroTask( return; } - // Don't run if we fail to unwrap the stack. - if (!aMicroTask.get().MaybeGetAllocationSiteFromJSMicroTask(&allocStack)) { - return; - } + // We do however still need to run if we can't unwrap the stack + (void)aMicroTask.get().MaybeGetAllocationSiteFromJSMicroTask(&allocStack); nsIGlobalObject* incumbentGlobal = nullptr;