tor-browser

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

commit 3407a05c9341a2dd39c9118e4683a0e7ca6ba80d
parent 1fef0a17ee4569b740b83000f62f9cc928ec78e5
Author: scottdowne <sdowne@mozilla.com>
Date:   Wed,  3 Dec 2025 01:14:03 +0000

Bug 2003679 - Newtab fixing _linksWithDefaults length check r=reemhamz

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

Diffstat:
Mbrowser/extensions/newtab/lib/TopSitesFeed.sys.mjs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/browser/extensions/newtab/lib/TopSitesFeed.sys.mjs b/browser/extensions/newtab/lib/TopSitesFeed.sys.mjs @@ -1402,7 +1402,7 @@ export class TopSitesFeed { * @returns {Array} An array of sponsored tile objects. */ async fetchFrecencyBoostedSpocs() { - if (!this._contile.sovEnabled() || this._linksWithDefaults.length === 0) { + if (!this._contile.sovEnabled() || !this._linksWithDefaults?.length) { return []; } const domainData = {};