Name Description Size
AboutNewTabService.jsm A service that allows for the overriding, at runtime, of the newtab page's url. There is tight coupling with browser/about/AboutRedirector.cpp. 1. Browser chrome access: When the user issues a command to open a new tab page, usually clicking a button in the browser chrome or using shortcut keys, the browser chrome code invokes the service to obtain the newtab URL. It then loads that URL in a new tab. When not overridden, the default URL emitted by the service is "about:newtab". When overridden, it returns the overriden URL. 2. Redirector Access: When the URL loaded is about:newtab, the default behavior, or when entered in the URL bar, the redirector is hit. The service is then called to return the appropriate activity stream url based on prefs. NOTE: "about:newtab" will always result in a default newtab page, and never an overridden URL. Access patterns: The behavior is different when accessing the service via browser chrome or via redirector largely to maintain compatibility with expectations of add-on developers. Loading a chrome resource, or an about: URL in the redirector with either the LOAD_NORMAL or LOAD_REPLACE flags yield unexpected behaviors, so a roundtrip to the redirector from browser chrome is avoided. 10895
bin 6
CODE_OF_CONDUCT.md 691
CODEOWNERS 64
common 4
components.conf 551
content-src 6
contributing.md 9058
css 3
data 1
docs 3
hooks 2
jar.mn 1878
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/UTEventReporting.jsm": { statements: 100, lines: 100, functions: 100, branches: 75, }, "lib/*.jsm": { statements: 100, lines: 100, functions: 100, branches: 84, }, "content-src/components/DiscoveryStreamComponents/* 6755
lib 46
LICENSE 16727
loaders 1
locales-src 3
mochitest.sh 1941
moz.build 730
nsIAboutNewTabService.idl Allows to override about:newtab to point to a different location than the one specified within AboutRedirector.cpp 1728
package-lock.json 472261
package.json ": "NB: This directory is *not* 'locales' to avoid mercurial hook for uplifts.", "**": "It contains the source default locale strings to be exported for localization", " 6735
prerendered 3
test 5
vendor 14
webpack.aboutlibrary.config.js 571
webpack.system-addon.config.js 2083
yamscripts.yml 3699
.eslintignore 20
.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": "* 6805
.mcignore 305
.nvmrc 5
.prettierrc 66
.sass-lint.yml 771
.taskcluster.yml 961
.travis.yml 780