Name Description Size
AboutNewTabService.jsm The nsIAboutNewTabService is accessed by the AboutRedirector anytime about:home, about:newtab or about:welcome are requested. The primary job of an nsIAboutNewTabService is to tell the AboutRedirector what resources to actually load for those requests. The nsIAboutNewTabService is not involved when the user has overridden the default about:home or about:newtab pages. There are two implementations of this service - one for the parent process, and one for content processes. Each one has some secondary responsibilties that are process-specific. The need for two implementations is an unfortunate consequence of how document loading and process redirection for about: pages currently works in Gecko. The commonalities between the two implementations has been put into an abstract base class. 12635
aboutwelcome 4
bin 3
common 3
components 1
components.conf 555
content-src 7
contributing.md 9058
css 3
data 1
docs 2
jar.mn 2486
karma.mc.config.js /*.js", // The base directory of all source files (used for path resolution in webpack importing) moduleResolveDirectory: __dirname, // a RegEx matching all Cu.import statements of local files resourcePathRegEx: /^resource:\/\/activity-stream\//, coverageReportingPath: "logs/coverage/", }; // When tweaking here, be sure to review the docs about the execution ordering // semantics of the preprocessors array, as they are somewhat odd. const preprocessors = {}; preprocessors[PATHS.testFilesPattern] = [ "webpack", // require("karma-webpack") "sourcemap", // require("karma-sourcemap-loader") ]; module.exports = function(config) { const isTDD = config.tdd; const browsers = isTDD ? ["Firefox"] : ["FirefoxHeadless"]; // require("karma-firefox-launcher") config.set({ singleRun: !isTDD, browsers, customLaunchers: { FirefoxHeadless: { base: "Firefox", flags: ["--headless"], }, }, frameworks: [ "chai", // require("chai") require("karma-chai") "mocha", // require("mocha") require("karma-mocha") "sinon", // require("sinon") require("karma-sinon") ], reporters: [ "coverage-istanbul", // require("karma-coverage") "mocha", // require("karma-mocha-reporter") // for bin/try-runner.js to parse the output easily "json", // require("karma-json-reporter") ], jsonReporter: { // So this doesn't get interleaved with other karma output stdout: false, outputFile: path.join("logs", "karma-run-results.json"), }, coverageIstanbulReporter: { reports: ["html", "text-summary"], dir: PATHS.coverageReportingPath, // This will make karma fail if coverage reporting is less than the minimums here thresholds: !isTDD && { each: { statements: 100, lines: 100, functions: 100, branches: 66, overrides: { "lib/ActivityStreamStorage.jsm": { statements: 100, lines: 100, functions: 100, branches: 83, }, "lib/PlacesFeed.jsm": { statements: 98, lines: 98, functions: 100, branches: 84, }, "lib/UTEventReporting.jsm": { statements: 100, lines: 100, functions: 100, branches: 75, }, "lib/TopSitesFeed.jsm": { statements: 94, lines: 94, functions: 97, branches: 84, }, "lib/Screenshots.jsm": { statements: 94, lines: 94, functions: 100, branches: 84, }, "lib/*.jsm": { statements: 100, lines: 100, functions: 100, branches: 84, }, "content-src/components/DiscoveryStreamComponents/* 7387
lib 48
loaders 1
moz.build 971
nsIAboutNewTabService.idl Allows to override about:newtab to point to a different location than the one specified within AboutRedirector.cpp 1261
package-lock.json 422048
package.json 4896
prerendered 3
test 5
vendor 15
webpack.aboutwelcome.config.js 832
webpack.system-addon.config.js 2042
yamscripts.yml 2595
.eslintrc.js ", "content-src/asrouter/templates/FirstRun/**", "content-src/asrouter/templates/Trailhead/**", "content-src/asrouter/templates/FullPageInterrupt/FullPageInterrupt.jsx", "content-src/asrouter/components/FxASignupForm/FxASignupForm.jsx", "content-src/components/TopSites/**", "content-src/components/MoreRecommendations/MoreRecommendations.jsx", "content-src/components/CollapsibleSection/CollapsibleSection.jsx", "content-src/components/DiscoveryStreamComponents/DSEmptyState/DSEmptyState.jsx", "content-src/components/DiscoveryStreamComponents/DSPrivacyModal/DSPrivacyModal.jsx", ], rules: { "jsx-a11y/anchor-has-content": 0, "jsx-a11y/heading-has-content": 0, }, }, { // Use a configuration that's more appropriate for JSMs files: "* 6846
.nvmrc 8
.sass-lint.yml 771