tor-browser

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

commit fa287dbc793c4a05bf97c39b10cb2a770eadbbf9
parent 3d31165c1d8375f668b5aa91bb01a5241e38915e
Author: Atila Butkovits <abutkovits@mozilla.com>
Date:   Fri, 17 Oct 2025 18:24:09 +0300

Revert "Bug 1994964 - Remove unused view usage in nsJSEnvironment. r=tnikkel,layout-reviewers" for causing failures complaining about document node.

This reverts commit 9fd8c6518f1e04c95308a0688e510240ac4a8704.

Diffstat:
Mdom/base/nsJSEnvironment.cpp | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp @@ -1380,6 +1380,16 @@ void nsJSContext::MaybeRunNextCollectorSlice(nsIDocShell* aDocShell, return; } + PresShell* presShell = rootDocument->GetPresShell(); + if (!presShell) { + return; + } + + nsViewManager* vm = presShell->GetViewManager(); + if (!vm) { + return; + } + if (!sScheduler->IsUserActive() && (sScheduler->InIncrementalGC() || sScheduler->IsCollectingCycles())) { Maybe<TimeStamp> next = nsRefreshDriver::GetNextTickHint();