gecko-dev/browser/components/newtab/content-src/asrouter
Bernard Igiri b0e4b5abdc Bug 1705855 - Fix newtab padding r=thecount
Modified padding on newtab eliminate unnecessary scrollbars and only apply snippet specific padding when snippets are present.

Differential Revision: https://phabricator.services.mozilla.com/D114530
2021-05-21 00:27:42 +00:00
..
components
docs Bug 1677226 - Targeting.jsm should use the same source for channel as browserSettings.update.channel r=k88hudson 2021-04-28 10:52:19 +00:00
schemas
templates Bug 1708681 - Remove assets associated with the addon recommendation CFRs r=desktop-theme-reviewers,dao 2021-05-10 17:24:52 +00:00
asrouter-content.jsx Bug 1705855 - Fix newtab padding r=thecount 2021-05-21 00:27:42 +00:00
asrouter-utils.js
README.md
rich-text-strings.js
template-utils.js

Activity Stream Router

Preferences browser.newtab.activity-stream.asrouter.*

Name Used for Type Example value
allowHosts Allow a host in order to fetch messages from its endpoint [String] ["gist.github.com", "gist.githubusercontent.com", "localhost:8000"]
providers.snippets Message provider options for snippets Object see below
providers.cfr Message provider options for cfr Object see below
providers.onboarding Message provider options for onboarding Object see below
useRemoteL10n Controls whether to use the remote Fluent files for l10n, default as true Boolean `[true

Message providers examples

{
  "id" : "snippets",
  "type" : "remote",
  "enabled": true,
  "url" : "https://snippets.cdn.mozilla.net/us-west/bundles/bundle_d6d90fb9098ce8b45e60acf601bcb91b68322309.json",
  "updateCycleInMs" : 14400000
}
{
  "id" : "onboarding",
  "enabled": true,
  "type" : "local",
  "localProvider" : "OnboardingMessageProvider"
}

Snippet message format documentation