Граф коммитов

1280 Коммитов

Автор SHA1 Сообщение Дата
Bryce Seager van Dyk 5797605523 Bug 1733670 - Allow 'addons.productaddons' log to have level set by pref. r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D127309
2021-10-04 18:02:24 +00:00
Shane Caraveo 88b33eaf69 Bug 1712024 refetch addon metadata when language changes r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D116919
2021-10-01 16:08:18 +00:00
Mark Banner aec46f6b9d Bug 1733485 - Lazy load modules in GMPUtils.jsm, UpdateUtils.jsm, GMPProvider.jsm to avoid loading earlier than necessary. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D127171
2021-10-01 08:18:04 +00:00
Harry Twyford 39aa1499f4 Bug 1731652 - Localize theme variant names. r=fluent-reviewers,flod,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D126833
2021-09-30 20:32:41 +00:00
Harry Twyford 2ff58e94f7 Bug 1732797 - Rename "System theme" to "System theme — auto". r=fluent-reviewers,mixedpuppy,flod
Differential Revision: https://phabricator.services.mozilla.com/D126972
2021-09-30 20:32:40 +00:00
Csoregi Natalia eecd2dd4ba Backed out changeset 538c138a40dd (bug 1732797) for failures on browser_ext_management_themes.js. CLOSED TREE 2021-09-30 21:40:43 +03:00
Harry Twyford cc24cea507 Bug 1732797 - Rename "System theme" to "System theme — auto". r=fluent-reviewers,mixedpuppy,flod
Differential Revision: https://phabricator.services.mozilla.com/D126972
2021-09-30 17:43:46 +00:00
Harry Twyford 8b8efc8503 Bug 1731146 - Manage built-in themes from BuiltInThemes.jsm and use it to defer installing colorway themes. r=dao,mixedpuppy
This creates a centralized place to manage built in themes. The main motivation for this is that we want to defer intalling built-in themes until after UI startup, but we need to ensure those themes are installed when about:addons is visited. This module is called from both BrowserGlue (for installation) and aboutaddons.js (to ensure installation). Also, built in themes handing is all over the place right now, and this centralizes it, which is nice.

This also creates a more-permanent pref for colorway themes. The rationale is that I could see Product wanting a ripcord on this project and I want to build that in from the start.

This approach has serious performance improvements over the baseline. Here is perfherder for the current approach of installing before UI startup: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=82baacf0b728add88c7e262ecb68d3fbcd1bda5e&newProject=try&newRevision=169edd7e48e5a051e5d3cbfbd6caaab4c496cd98&framework=1&page=1&showOnlyImportant=1 and again for an early version of the approach in this patch (installation after UI startup, but before I moved things to LightweightThemeConsumer): https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=82baacf0b728add88c7e262ecb68d3fbcd1bda5e&newProject=try&newRevision=6c200f35430a6af87401bd21c8db95e28a568964&framework=1&page=1&showOnlyImportant=1.

Differential Revision: https://phabricator.services.mozilla.com/D126549
2021-09-29 23:08:45 +00:00
Katherine Patenio 883e800510 Bug 1729738 - Migrate extension.(.*)@mozilla.org.* from properties to Fluent. r=mtigley,fluent-reviewers,robwu,flod
Differential Revision: https://phabricator.services.mozilla.com/D126445
2021-09-29 22:04:18 +00:00
Mike Kaply 0bb7a057b2 Bug 1726214 - For MSIX, install the addons in the corresponding language directory. r=mixedpuppy,nalexander,platform-i18n-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D123673
2021-09-20 22:55:35 +00:00
Marian-Vasile Laza 63be5b559f Backed out changeset 846edaaa86a9 (bug 1712024) for causing xpcshell failures on test_AddonRepository_cache_locale.js. 2021-09-18 01:09:04 +03:00
Shane Caraveo 1fb918261c Bug 1712024 refetch addon metadata when language changes r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D116919
2021-09-17 19:31:10 +00:00
Mark Banner 14aedbb785 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00
Noemi Erli e0f4b9b5fe Backed out 2 changesets (bug 1729460) for causing newtab failures CLOSED TREE
Backed out changeset 5617839462be (bug 1729460)
Backed out changeset 6d52fde3ee0e (bug 1729460)
2021-09-10 13:14:12 +03:00
Mark Banner 3cfdb5c41a Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 09:38:42 +00:00
Greg Tatum a507717f7c Bug 1723602 - Migrate users away from old themes that have been removed; r=mixedpuppy
In Bug 1722087 I removed some old files that I did not take into account
that users who set that theme would still reference those files.

These were:

browser/base/content/defaultthemes/1.header.jpg
browser/base/content/defaultthemes/1.icon.jpg
browser/base/content/defaultthemes/1.preview.jpg
browser/base/content/defaultthemes/2.header.jpg
browser/base/content/defaultthemes/2.icon.jpg
browser/base/content/defaultthemes/2.preview.jpg
browser/base/content/defaultthemes/3.header.png
browser/base/content/defaultthemes/3.icon.png
browser/base/content/defaultthemes/3.preview.png
browser/base/content/defaultthemes/4.header.png
browser/base/content/defaultthemes/4.icon.png
browser/base/content/defaultthemes/4.preview.png
browser/base/content/defaultthemes/5.header.png
browser/base/content/defaultthemes/5.icon.jpg
browser/base/content/defaultthemes/5.preview.jpg

This patch migrates those users and ensures they do not have breakage.

Differential Revision: https://phabricator.services.mozilla.com/D121568
2021-08-31 15:19:44 +00:00
Zibi Braniecki ded73fe965 Bug 1660392 - [l10nregistry] part5: Move tests to use Rust L10nRegistry. r=platform-i18n-reviewers,gregtatum
Depends on D105583

Differential Revision: https://phabricator.services.mozilla.com/D102372
2021-07-30 16:47:48 +00:00
Kris Maglione b3c34d273e Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika
They were originally written for the extension framework, but have been used
more and more widely ever since.

Differential Revision: https://phabricator.services.mozilla.com/D114898
2021-06-15 04:40:10 +00:00
Sonia Singla c2ffd0413b Bug 1661517 - Removed extensions.allowPrivateBrowsingByDefault preference. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97094
2021-06-02 21:48:05 +00:00
Luca Greco 665f72549b Bug 1710917 - Introduced internal:svgContextPropertiesAllowed webextension permission. r=dholbert,mixedpuppy
This patch does change the extension-related special case in SVGContextPaint::IsAllowedForImageFromURI
to check the "internal:svgContextPropertiesAllowed" extension permission, and move the existing
criteria in the Extension class (which takes care of adding the internal permission when those
criteria as met).

This patch does not contain yet a new explicit test case for the new internal permission (which is
part of the patch build on top of this one and attached to the same bugzilla issue), but it does
pass the existing mochitest-chrome (test_chrome_ext_svg_context_fill.html).

Differential Revision: https://phabricator.services.mozilla.com/D115835
2021-06-01 14:46:03 +00:00
Rob Wu bdd7ad55e3 Bug 1662857 - Report blocklist.addonBlockChange to telemetry r=rpl,Gijs
Report to telemetry when add-on is blocked by the blocklist, or when an
updated/installation resutls in the unblocking of an add-on.

Differential Revision: https://phabricator.services.mozilla.com/D114820
2021-05-24 13:07:12 +00:00
Rob Wu a4780e1253 Bug 1662857 - Avoid intermittent failures by AddonTestUtils.promiseCompleteInstall r=rpl
Tests that rely on `AddonTestUtils.promiseCompleteInstall` to await the
completion of an update may encounter intermittent test failures,
because the test helper relies on `onInstallEnded`, which is sent before
all cleanup has run (removing temp xpi, removing staged directory).

The `install()` method returns a promise that is resolved right after
the cleanup of those temporary files. So await that.

Also fixed an intermittent issue in test_system_upgrades.js that became
a permafail as the result of this patch.



fix test_system_upgrades.js / promiseCompleteAllInstalls

Differential Revision: https://phabricator.services.mozilla.com/D114819
2021-05-24 13:07:12 +00:00
Rob Wu 7afe827e79 Bug 1662857 - Put version check in getNewestCompatibleUpdate r=mixedpuppy
AddonUpdateChecker.getNewestCompatibleUpdate has only one non-test
consumer in XPIInstall.jsm. That consumer filters out older versions
after finding an update.

In order to correctly report whether an update is blocked by the
blocklist, the version comparison has been moved inside the
getNewestCompatibleUpdate method, with no other changes.

Differential Revision: https://phabricator.services.mozilla.com/D114818
2021-05-24 13:07:12 +00:00
Barret Rennie 299ea8706a Bug 1649606 - Migrate XPIDatabase.jsm from OSFile to IOUtils r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D110506
2021-04-28 21:45:04 +00:00
Barret Rennie f92e4e58be Bug 1702116 - Fix races in AddonManager & XPIDatabase r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D110363
2021-04-22 01:15:54 +00:00
Csoregi Natalia d280cc2623 Backed out changeset db03ed818599 (bug 1702116) for failures on browser_1007336_lwthemes_in_customize_mode.js. CLOSED TREE 2021-04-20 21:18:39 +03:00
Barret Rennie ccc7987f4e Bug 1702116 - Fix races in AddonManager & XPIDatabase r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D110363
2021-04-20 16:09:25 +00:00
Luca Greco 3b0fc57c56 Bug 1705069 - Make sure telemetryInfo are associated to the system addons installed through Balrog. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D112028
2021-04-14 17:44:48 +00:00
Jared Wein 7062a3faa0 Bug 1695963 - Rename 'Default' theme to 'System setting'. r=flod,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D111759
2021-04-13 16:55:27 +00:00
Csoregi Natalia fee5a53f53 Backed out changeset 86f0423265b7 (bug 1695963) for failures on browser_ext_management_themes.js. CLOSED TREE 2021-04-13 18:24:32 +03:00
Jared Wein 57cb29b40f Bug 1695963 - Rename 'Default' theme to 'System setting'. r=flod,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D111759
2021-04-13 14:42:36 +00:00
Shane Caraveo eaa5799976 Bug 1698619 fix updating homepage setting on updates and for localization r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D110717
2021-04-12 18:58:27 +00:00
Cosmin Sabou 5e2e54579b Backed out changeset 6c93b2419ee5 (bug 1649606) for causing xpcshell failures on test_corrupt.js. CLOSED TREE 2021-04-07 03:50:00 +03:00
Barret Rennie a5ace569c4 Bug 1649606 - Migrate XPIDatabase.jsm from OSFile to IOUtils r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D110506
2021-04-07 00:16:04 +00:00
David Parks f9ec6d93f2 Bug 1682030 - Remove MIME type table from about:plugins r=Gijs,mixedpuppy
As part of removing all NPAPI plugin support, plugin MIME type is no longer relevant (it does not apply to GMP plugins) so we remove the table from about:plugins.

Differential Revision: https://phabricator.services.mozilla.com/D107156
2021-04-06 19:28:18 +00:00
David Parks c303331063 Bug 1682030 - Remove CTP option from about:addons r=mixedpuppy
As part of removing all NPAPI plugin support, CTP is no longer relevant (it does not apply to GMP plugins) so we remove the option from about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D107154
2021-04-06 19:28:17 +00:00
David Parks 271e591cdf Bug 1682030 - Remove NPAPI blocklisting r=Gijs,jmathies,mixedpuppy
Removes the PluginProvider and NPAPI plugin blocklist handling as part of removing all NPAPI support.  This allows us to remove nsIPluginHost.

Differential Revision: https://phabricator.services.mozilla.com/D107148
2021-04-06 19:28:14 +00:00
David Parks 2b32f597cb Bug 1682030 - Remove NPAPI from tests outside of dom/plugins. r=Gijs,cmartin
Removes NPAPI plugin features from tests outside of dom/plugins.  Some tests are updated to avoid NPAPI behavior and others are deleted if they no longer offer anthing useful.

Differential Revision: https://phabricator.services.mozilla.com/D107134
2021-04-06 19:28:09 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks 3104162e83 Bug 1682030 - Remove MIME type table from about:plugins r=Gijs,mixedpuppy
As part of removing all NPAPI plugin support, plugin MIME type is no longer relevant (it does not apply to GMP plugins) so we remove the table from about:plugins.

Differential Revision: https://phabricator.services.mozilla.com/D107156
2021-04-05 23:48:41 +00:00
David Parks c98afdb2a8 Bug 1682030 - Remove CTP option from about:addons r=mixedpuppy
As part of removing all NPAPI plugin support, CTP is no longer relevant (it does not apply to GMP plugins) so we remove the option from about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D107154
2021-04-05 23:48:40 +00:00
David Parks 0e34d4d48b Bug 1682030 - Remove NPAPI blocklisting r=Gijs,jmathies,mixedpuppy
Removes the PluginProvider and NPAPI plugin blocklist handling as part of removing all NPAPI support.  This allows us to remove nsIPluginHost.

Differential Revision: https://phabricator.services.mozilla.com/D107148
2021-04-05 23:48:38 +00:00
David Parks 3f9712f20f Bug 1682030 - Remove NPAPI from tests outside of dom/plugins. r=Gijs,cmartin
Removes NPAPI plugin features from tests outside of dom/plugins.  Some tests are updated to avoid NPAPI behavior and others are deleted if they no longer offer anthing useful.

Differential Revision: https://phabricator.services.mozilla.com/D107134
2021-04-05 23:48:32 +00:00
Mike Kaply 3855aa8aec Bug 1679826 - Allow disabling updates for addons installed by policy. r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D103381
2021-03-26 15:30:13 +00:00
Jens Stutte 05581ddca4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Cosmin Sabou b2eb620ed0 Backed out changeset 03cae7800b41 (bug 1678330) for mochitest plain failures on test_window_open_discarded_bc.html. CLOSED TREE 2021-03-02 20:18:21 +02:00
Jens Stutte a0af9ea0a4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 15:15:20 +00:00
Shane Caraveo f4ebf61baf Bug 1695820 remove AddonTestUtils.awaitPromise event loop spinner r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D106865
2021-03-02 15:00:05 +00:00
Michael Goossens 0747b8564f Bug 1649590 - Convert XPIProvider.jsm to use IOUtils r=emalysz,mixedpuppy,barret,gcp
Differential Revision: https://phabricator.services.mozilla.com/D97354
2021-02-10 02:46:04 +00:00
Csoregi Natalia cc417af149 Backed out changeset ee49da8ea890 (bug 1649590) for failures on browser_content_sandbox_fs.js. CLOSED TREE 2021-02-05 04:21:45 +02:00