tor-browser

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

commit 9fd8c6518f1e04c95308a0688e510240ac4a8704
parent e3efe1488ded894a6e3f6827b2aff0dc7b6a4066
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();