tor-browser

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

commit 22cafd9dbe182ac03c1158c3e02745358da4938e
parent bded0c98fcda0c32179a869d06c8a04027b1993f
Author: Rolf Rando <rrando@mozilla.com>
Date:   Thu,  4 Dec 2025 01:01:29 +0000

Bug 1983117 - Add content reload after personalization flag changed r=home-newtab-reviewers,nbarrett

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

Diffstat:
Mbrowser/extensions/newtab/lib/DiscoveryStreamFeed.sys.mjs | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/browser/extensions/newtab/lib/DiscoveryStreamFeed.sys.mjs b/browser/extensions/newtab/lib/DiscoveryStreamFeed.sys.mjs @@ -2490,8 +2490,12 @@ export class DiscoveryStreamFeed { // This is a config reset directly related to Discovery Stream pref. this.configReset(); break; - case PREF_CONTEXTUAL_ADS: case PREF_USER_INFERRED_PERSONALIZATION: + this.configReset(); + this._isContextualAds = undefined; + await this.resetContentCache(); + break; + case PREF_CONTEXTUAL_ADS: case PREF_SYSTEM_INFERRED_PERSONALIZATION: this._isContextualAds = undefined; this._doLocalInferredRerank = undefined;