tor-browser

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

commit 89828b8d4cab7863eaabe8b2cd24f3e6efd363e0
parent 109489f1e1fb65693a6899ad555064649725f241
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Fri, 17 Oct 2025 11:11:03 +0000

Bug 1994964 - Remove unused view usage in nsJSEnvironment. r=tnikkel,layout-reviewers

It seems in bug 1377131 this used to call
nsViewManager::GetLastUserEventTime.

Bug 1727972 changed that but likely forgot to remove the early returns.

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

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

diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp @@ -1380,16 +1380,6 @@ 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();