summaryrefslogtreecommitdiffstats
path: root/browser/components/asrouter/modules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:53:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:53:14 +0000
commit7300995d7647085f97dc32643f1eefd0c33c6050 (patch)
tree2b891915a578113eb0f08fa04125fa2844c94c12 /browser/components/asrouter/modules
parentAdding upstream version 125.0.2. (diff)
downloadfirefox-7300995d7647085f97dc32643f1eefd0c33c6050.tar.xz
firefox-7300995d7647085f97dc32643f1eefd0c33c6050.zip
Adding upstream version 125.0.3.upstream/125.0.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/asrouter/modules')
-rw-r--r--browser/components/asrouter/modules/FeatureCallout.sys.mjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/browser/components/asrouter/modules/FeatureCallout.sys.mjs b/browser/components/asrouter/modules/FeatureCallout.sys.mjs
index 01998662f6..5f0e266a4e 100644
--- a/browser/components/asrouter/modules/FeatureCallout.sys.mjs
+++ b/browser/components/asrouter/modules/FeatureCallout.sys.mjs
@@ -1834,6 +1834,14 @@ export class FeatureCallout {
"simulateContent",
!!this.theme.simulateContent
);
+ this._container.classList.toggle(
+ "lwtNewtab",
+ !!(
+ this.theme.lwtNewtab !== false &&
+ this.theme.simulateContent &&
+ ["themed-content", "newtab"].includes(this.theme.preset)
+ )
+ );
for (const type of ["light", "dark", "hcm"]) {
const scheme = this.theme[type];
for (const name of FeatureCallout.themePropNames) {