зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1569366 - Move the top sites API from toolkit to browser r=mixedpuppy
Bug 1547669 added some things to the top sites API, but it turned out to be not quite what we (the quantumbar team) needed (see bug 1568617). What we need is the list of top sites exactly as it appears on newtab. That list is determined by activity stream, which lives in browser. But the top sites API lives in toolkit. There was an earlier, now abandoned revision for that bug [1] where it was suggested that top sites be moved to browser. So we should do that. [1] https://phabricator.services.mozilla.com/D36200 Differential Revision: https://phabricator.services.mozilla.com/D39589 --HG-- rename : toolkit/components/extensions/parent/ext-topSites.js => browser/components/extensions/parent/ext-topSites.js rename : toolkit/components/extensions/schemas/top_sites.json => browser/components/extensions/schemas/top_sites.json rename : toolkit/components/extensions/test/xpcshell/test_ext_topSites.js => browser/components/extensions/test/xpcshell/test_ext_topSites.js extra : moz-landing-system : lando
This commit is contained in:
Родитель
7d9769c5e3
Коммит
912ec74678
|
@ -199,8 +199,8 @@
|
|||
]
|
||||
},
|
||||
"topSites": {
|
||||
"url": "chrome://extensions/content/parent/ext-topSites.js",
|
||||
"schema": "chrome://extensions/content/schemas/top_sites.json",
|
||||
"url": "chrome://browser/content/parent/ext-topSites.js",
|
||||
"schema": "chrome://browser/content/schemas/top_sites.json",
|
||||
"scopes": ["addon_parent"],
|
||||
"paths": [
|
||||
["topSites"]
|
||||
|
|
|
@ -34,6 +34,7 @@ browser.jar:
|
|||
content/browser/parent/ext-sessions.js (parent/ext-sessions.js)
|
||||
content/browser/parent/ext-sidebarAction.js (parent/ext-sidebarAction.js)
|
||||
content/browser/parent/ext-tabs.js (parent/ext-tabs.js)
|
||||
content/browser/parent/ext-topSites.js (parent/ext-topSites.js)
|
||||
content/browser/parent/ext-url-overrides.js (parent/ext-url-overrides.js)
|
||||
content/browser/parent/ext-urlbar.js (parent/ext-urlbar.js)
|
||||
content/browser/parent/ext-windows.js (parent/ext-windows.js)
|
||||
|
|
|
@ -24,6 +24,7 @@ browser.jar:
|
|||
content/browser/schemas/sessions.json
|
||||
content/browser/schemas/sidebar_action.json
|
||||
content/browser/schemas/tabs.json
|
||||
content/browser/schemas/top_sites.json
|
||||
content/browser/schemas/url_overrides.json
|
||||
content/browser/schemas/urlbar.json
|
||||
content/browser/schemas/windows.json
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
[test_ext_settings_overrides_search.js]
|
||||
[test_ext_settings_overrides_search_mozParam.js]
|
||||
[test_ext_settings_overrides_shutdown.js]
|
||||
[test_ext_topSites.js]
|
||||
[test_ext_url_overrides_newtab.js]
|
||||
[test_ext_url_overrides_newtab_update.js]
|
||||
[test_ext_urlbar.js]
|
||||
skip-if = os == "android"
|
||||
[test_ext_homepage_overrides_private.js]
|
||||
|
||||
|
|
|
@ -41,9 +41,6 @@ toolkit.jar:
|
|||
content/extensions/parent/ext-telemetry.js (parent/ext-telemetry.js)
|
||||
content/extensions/parent/ext-theme.js (parent/ext-theme.js)
|
||||
content/extensions/parent/ext-toolkit.js (parent/ext-toolkit.js)
|
||||
#ifndef ANDROID
|
||||
content/extensions/parent/ext-topSites.js (parent/ext-topSites.js)
|
||||
#endif
|
||||
content/extensions/parent/ext-userScripts.js (parent/ext-userScripts.js)
|
||||
content/extensions/parent/ext-webRequest.js (parent/ext-webRequest.js)
|
||||
content/extensions/parent/ext-webNavigation.js (parent/ext-webNavigation.js)
|
||||
|
|
|
@ -41,9 +41,6 @@ toolkit.jar:
|
|||
content/extensions/schemas/telemetry.json
|
||||
content/extensions/schemas/test.json
|
||||
content/extensions/schemas/theme.json
|
||||
#ifndef ANDROID
|
||||
content/extensions/schemas/top_sites.json
|
||||
#endif
|
||||
content/extensions/schemas/types.json
|
||||
content/extensions/schemas/user_scripts.json
|
||||
content/extensions/schemas/user_scripts_content.json
|
||||
|
|
|
@ -144,8 +144,6 @@ skip-if = os == "android" # checking for telemetry needs to be updated: 1384923
|
|||
skip-if = os == 'android' # Bug 1258975 on android.
|
||||
[test_ext_telemetry.js]
|
||||
[test_ext_trustworthy_origin.js]
|
||||
[test_ext_topSites.js]
|
||||
skip-if = os == "android"
|
||||
[test_ext_unlimitedStorage.js]
|
||||
[test_ext_unload_frame.js]
|
||||
skip-if = true # Too frequent intermittent failures
|
||||
|
|
Загрузка…
Ссылка в новой задаче