diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index cda57f765844..8ac9c1718382 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1316,6 +1316,12 @@ pref("browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar", tru pref("browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar", false); #endif +#ifdef NIGHTLY_BUILD +pref("trailhead.firstrun.cohort", 1); +#else +pref("trailhead.firstrun.cohort", 0); +#endif + // Enable the DOM fullscreen API. pref("full-screen-api.enabled", true); diff --git a/browser/components/newtab/.eslintrc.jsx-a11y.js b/browser/components/newtab/.eslintrc.jsx-a11y.js new file mode 100644 index 000000000000..f178e8c037e2 --- /dev/null +++ b/browser/components/newtab/.eslintrc.jsx-a11y.js @@ -0,0 +1,17 @@ +module.exports = { + "plugins": [ + "jsx-a11y" // require("eslint-plugin-jsx-a11y") + ], + "extends": "plugin:jsx-a11y/recommended", + "overrides": [{ + // These files use fluent-dom to insert content + "files": [ + "content-src/asrouter/templates/OnboardingMessage/**", + "content-src/asrouter/templates/Trailhead/**", + ], + "rules": { + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/heading-has-content": 0, + } + }], +}; diff --git a/browser/components/newtab/bin/render-activity-stream-html.js b/browser/components/newtab/bin/render-activity-stream-html.js index fe5b748e68bd..c4a54c09b008 100644 --- a/browser/components/newtab/bin/render-activity-stream-html.js +++ b/browser/components/newtab/bin/render-activity-stream-html.js @@ -100,8 +100,9 @@ function templateHTML(options, html) {
+