fune/browser/components/newtab/content-src/asrouter
2019-10-19 00:41:03 +00:00
..
components Bug 1589389 - Add privacy menu, optional sync and bug fixes to New Tab Page r=Mardak 2019-10-17 16:37:12 +00:00
docs Bug 1588215 - Add modal-less welcome, send-tab recipes and bug fixes to New Tab Page r=Mardak,fluent-reviewers 2019-10-12 07:01:16 +00:00
schemas
templates Bug 1589802 - Add welcome experiments, pressed styles and bug fixes to New Tab Page r=pdahiya 2019-10-19 00:41:03 +00:00
asrouter-content.jsx Bug 1588215 - Add modal-less welcome, send-tab recipes and bug fixes to New Tab Page r=Mardak,fluent-reviewers 2019-10-12 07:01:16 +00:00
README.md Bug 1585434 - Add a pref to control ASRouter remote l10n r=Mardak 2019-10-11 21:01:20 +00:00
rich-text-strings.js
template-utils.js

Activity Stream Router

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

Name Used for Type Example value
whitelistHosts Whitelist 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