tor-browser

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

commit 4bef022c014c5618ad9291276114e37992a37d37
parent 734b90da5cd51a0b113abccb98c6da192ae4f05c
Author: Henry Wilkes <henry@torproject.org>
Date:   Mon, 26 Jan 2026 14:34:03 +0000

BB 44520: Disable Experiment API (Firefox Labs).

Diffstat:
Mtoolkit/components/nimbus/ExperimentAPI.sys.mjs | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/toolkit/components/nimbus/ExperimentAPI.sys.mjs b/toolkit/components/nimbus/ExperimentAPI.sys.mjs @@ -396,10 +396,19 @@ export const ExperimentAPI = new (class { } get enabled() { + if (AppConstants.BASE_BROWSER_VERSION) { + // Do not allow ExperimentsAPI (which covers either "labs", "studies" or + // "rollouts") in Base Browser. + return false; + } return this.studiesEnabled || this.labsEnabled; } get labsEnabled() { + if (AppConstants.BASE_BROWSER_VERSION) { + // Do not allow "Firefox Labs" in Base Browser. + return false; + } return Services.policies.isAllowed("FirefoxLabs"); }