Bug 1891982 - Part 1: Copy Top Sites Feed into the Top Sites component - r=dao,frontend-codestyle-reviewers,Standard8

Differential Revision: https://phabricator.services.mozilla.com/D207827
This commit is contained in:
James Teow 2024-04-23 18:32:30 +00:00
parent 6121b33709
commit 12397ac331
7 changed files with 5434 additions and 0 deletions

View file

@ -670,6 +670,7 @@ module.exports = {
"browser/components/tabpreview/tabpreview.mjs", "browser/components/tabpreview/tabpreview.mjs",
"browser/components/tests/browser/**", "browser/components/tests/browser/**",
"browser/components/textrecognition/**", "browser/components/textrecognition/**",
"browser/components/topsites/**",
"browser/components/touchbar/**", "browser/components/touchbar/**",
"browser/components/translations/**", "browser/components/translations/**",
"browser/components/uitour/**", "browser/components/uitour/**",

View file

@ -287,6 +287,9 @@ var allowlist = [
// Referenced programmatically // Referenced programmatically
{ file: "chrome://browser/content/backup/BackupManifest.1.schema.json" }, { file: "chrome://browser/content/backup/BackupManifest.1.schema.json" },
// Bug 1892002
{ file: "resource://app/modules/TopSites.sys.mjs" },
]; ];
if (AppConstants.NIGHTLY_BUILD) { if (AppConstants.NIGHTLY_BUILD) {

View file

@ -67,6 +67,7 @@ DIRS += [
"tabpreview", "tabpreview",
"tabunloader", "tabunloader",
"textrecognition", "textrecognition",
"topsites",
"translations", "translations",
"uitour", "uitour",
"urlbar", "urlbar",

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,12 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_JS_MODULES += ["TopSites.sys.mjs"]
XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.toml"]
with Files("**"):
BUG_COMPONENT = ("Firefox", "Top Sites")

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
[DEFAULT]
firefox-appdir = "browser"
["test_top_sites.js"]