tor-browser

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

commit e0a049677e878643cf7bd6ff909fc408639dae9e
parent c128aa2f2fe7abe3d44addc2c89b938dbc218ad2
Author: Tooru Fujisawa <arai_a@mac.com>
Date:   Tue, 21 Oct 2025 15:14:03 +0000

Bug 1992878 - Override the scheduling state even if the callback has no associated state. r=mgaudet

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

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

diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp @@ -1063,7 +1063,7 @@ RunMicroTask(JSContext* aCx, JS::MutableHandle<JS::MicroTask> task) { } } - if (incumbentGlobal && schedulingState) { + if (incumbentGlobal) { // https://wicg.github.io/scheduling-apis/#sec-patches-html-hostcalljobcallback // 2. Set event loop’s current scheduling state to // callback.[[HostDefined]].[[SchedulingState]]. @@ -1087,7 +1087,7 @@ RunMicroTask(JSContext* aCx, JS::MutableHandle<JS::MicroTask> task) { // (The step after step 7): Set event loop’s current scheduling // state to null - if (incumbentGlobal && schedulingState) { + if (incumbentGlobal) { incumbentGlobal->SetWebTaskSchedulingState(nullptr); }