Commit Graph

334 Commits

Author SHA1 Message Date
Andreea Pavel
5464b98d45 Bug 1776135 - disable test_ext_settings_overrides_defaults.js on condprof r=Standard8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D150563
2022-07-05 06:02:57 +00:00
mcheang
27d628ba02 Bug 1777278 - Change all references of originalEngine to appDefaultEngine in search. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D150599
2022-06-30 19:26:20 +00:00
Joel Maher
5d7fe68032 Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 16:47:06 +00:00
Bogdan Szekely
72726c29d0 Backed out changeset 7b707ff8a7d1 (bug 1769154) for causing xpcshell failures on test_system_upgrades.js 2022-06-22 17:17:10 +03:00
Joel Maher
c0af767fd4 Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 13:03:46 +00:00
Tooru Fujisawa
f947410342 Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 04:42:09 +00:00
Molnar Sandor
4c2b06df41 Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
b580e51d8f Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 02:49:13 +00:00
Shane Caraveo
8a1c261452 Bug 1739114 Enforce addon privilege during manifest parsing for access to privileged features from temporarily installed addons. r=robwu,mixedpuppy,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D145687
2022-05-30 18:41:37 +00:00
Luca Greco
b2565a2a3f Bug 1767550 - Make sure defaultSearch overrides levelOfControl is consistent with the default engine currently set before overriding the current default. r=mixedpuppy
For add-ons installed before the changes introduced by Bug 1757760 ExtensionSettingStorage.getLevelOfControl resolves to "controlled_by_this_extension"
even if the user did not opt-in when prompted (either by never answer the prompt, or by setting No).

The changes landed by Bug 1757760 did make sure that for a newly installed extensions ExtensionSettingsStorage.getLevelOfControl resolves to "controllable_by_this_extension"
until the user actually explicitly opt-in to the default search engine provided by the installed extension, by making sure to initially set as disabled
the defaultSearch setting for a newly installed extension (which will then be enabled if the user does explicitly opt-in).

Unfortunately, that change doesn't have any effect if the extension has been installed in a Firefox version that did not yet include Bug 1757760 changes,
in that case the setting listed in the pre-existing extension-settings.json file in the Firefox profile will still have the setting marked
as enabled even if the user did never opt-in.

This patch includes a new test task that is injecting into extension-settings.json the data needed to recreate the inconsistent state
(level of control set to "controlled_by_this_extension" while the related search engine isn't actually set as default).

In addition to the new test case, this patch is applying the following changes to `chrome_settings_overrides`:

- in the `setDefault` method: if ExtensionSettingsStorage.getLevelOfControl resolves to "controlled_by_this_extension"
  but the default search engine currently set is not the one associated to the extension, then explicitly disable the
  setting and recompute the level of control (which will resolve to "controllable_by_this_extension" as a side effect
  of explicitly disable the setting)

- in the `ensureSetting` method: remove the check on `item?.enabled`, because the result of ExtensionSettingsStorage.getSetting
  does actually never have an `enabled` property set, instead it is part of the content of the extension-settings.json file
  and it is used internally by ExtensionSettingsStorage without being returning in the format of the object returned by
  calling ExtensionSettingsStorage.getSetting
  (see https://searchfox.org/mozilla-central/rev/97c902e8f92b15dc63eb584bfc594ecb041242a4/toolkit/components/extensions/ExtensionSettingsStore.jsm#164-177)

Differential Revision: https://phabricator.services.mozilla.com/D146294
2022-05-25 18:46:12 +00:00
Mathieu Leplatre
d4a89f2c4b Bug 1702759 - Remove bucket name preference r=robwu
This introduces a breaking change: the buckets cannot be changed via preferences anymore.

Before landing this patch, we should have a released a new version of the Remote Settings DevTools that is compatible with this new API.

Differential Revision: https://phabricator.services.mozilla.com/D145455
2022-05-23 16:24:57 +00:00
William Durand
0b2f83c246 Bug 1766615 - Enable scripting APIs in MV2. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D145629
2022-05-10 14:30:24 +00:00
Mark Banner
c6d4f0d51f Bug 1725952 - Upgrade ESLint to v8.x. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144002
2022-04-22 11:23:30 +00:00
Rob Wu
aaac457a1d Bug 1723156 - Warn instead of fail for manifest version mismatches r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D143720
2022-04-17 16:43:49 +00:00
Shane Caraveo
8a81b8a988 Bug 1762394 menu startupCache persistence r=robwu
Add a StartupCache for menus so they are recreated when extensions use event pages.

Differential Revision: https://phabricator.services.mozilla.com/D139789
2022-04-07 22:26:19 +00:00
Rob Wu
86b2fcd91f Bug 1556427 - Add node.title to bookmarks.onRemoved event r=Standard8,willdurand,markh
The `bookmarks.onRemoved` event should have a `title` attribute
reflecting the title of the removed bookmark. This behavior is
documented in an example at:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/onRemoved

That documented example was reportedly broken: https://github.com/mdn/content/issues/13052

Differential Revision: https://phabricator.services.mozilla.com/D139293
2022-03-30 12:57:28 +00:00
Shane Caraveo
63f69f4bac Bug 1748555 support persistent listeners in history api r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D140896
2022-03-23 15:03:32 +00:00
Shane Caraveo
8820da156b Bug 1748549 support persistent listeners in bookmarks api r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D140900
2022-03-22 14:26:57 +00:00
Shane Caraveo
2530614cac Bug 1757760 retain correct search default setting after addon update r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D141294
2022-03-18 19:43:43 +00:00
Luca Greco
7cff6e4c3c Bug 1759162 - Fix pkcs11.isModuleInstalled regressions triggered on non-windows builds. r=barret,willdurand
PathUtils.filename throws if the path is not an absolute path, which was likely
not the case with the OS.Path.basename call used previously.

This internal change of behavior shouldn't be triggering any issue on Windows,
where the hostInfo.manifest.path seems to be always normalized into an absolute
path (by computing it as relative to the hostInfo.manifest if it wasn't already
an absolute path), but it makes browser.pkcs11.isModuleInstalled to regress
on Linux (and maybe also on MacOS if the pkcs11 manifest files include only
the library name and not its full path, as it seems to be the case for
the Belgium eID pkcs11 manifest packaged for Linux).

The result of PathUtils.filename is expected to only include the basename of
the file (without the full dir path and the file extension) and so to fix
the regression being triggered on non-windows platform we could use a fake
absolute url to get the expected result using PathUtils.filename as is.

Differential Revision: https://phabricator.services.mozilla.com/D141097
2022-03-15 20:13:16 +00:00
Shane Caraveo
1c30b7cc0a Bug 1759073 move eventpage test functions into ExtensionTestCommon r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D140783
2022-03-15 17:48:36 +00:00
Rob Wu
62d7f3b4a3 Bug 1756663 - Add test for id option of history.onTitleChanged r=willdurand
In bug 1678611, the id property was added to this event, without unit
tests. The existing test didn't pick up the change because it checked
for a specific property. This patch adds a check of the whole event
object to get coverage for the id property AND to avoid this kind of
issue in the future.

Differential Revision: https://phabricator.services.mozilla.com/D139408
2022-02-24 18:15:09 +00:00
Shane Caraveo
e38cc78870 Bug 1753308 fix extension startup in tests, remove delayed startup pref r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D137699
2022-02-19 15:52:26 +00:00
Shane Caraveo
afbca3636b Bug 1748524 sleep/waken functionality for background, restartable via persistent events r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135812
2022-01-25 20:49:15 +00:00
Barret Rennie
c7144b841e Bug 1745352 - Remove osfile.jsm from browser/components/extensions r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D133843
2022-01-25 12:16:17 +00:00
Marian-Vasile Laza
9447e468f8 Backed out changeset 2f4c63b2e472 (bug 1748524) for causing xpcshell failures on test_ext_alarms.js. CLOSED TREE 2022-01-25 01:26:30 +02:00
Shane Caraveo
64d3fc1694 Bug 1748524 sleep/waken functionality for background, restartable via persistent events r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135812
2022-01-24 21:18:28 +00:00
Csoregi Natalia
705ffd58b4 Backed out 2 changesets (bug 1745352) for failures on test_ext_pkcs11_management.js. CLOSED TREE
Backed out changeset 0975c59084aa (bug 1745352)
Backed out changeset ba57b662bb72 (bug 1745352)
2022-01-19 06:16:46 +02:00
Barret Rennie
8df77245f5 Bug 1745352 - Remove osfile.jsm from browser/components/extensions r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D133843
2022-01-19 01:17:46 +00:00
Dana Keeler
c80332b1ff Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,glandium,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Depends on D130820

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-18 01:30:24 +00:00
Cosmin Sabou
cda3042731 Backed out 2 changesets (bug 1712837) for causing an increase in crashes (bug 1735798). a=backout
Backed out changeset 51773d1ab7b5 (bug 1712837)
Backed out changeset 97b0a77e4ce7 (bug 1712837)
2021-12-15 12:24:03 +02:00
Dana Keeler
a03ae7ed1f Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-13 23:59:08 +00:00
Cristian Tuns
401fef52eb Backed out changeset 5396b58ddae7 (bug 1712837) for causing Android ARMv7 build bustages. a=backout 2021-12-10 09:35:39 -05:00
Dana Keeler
aa200d9a1e Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-10 00:24:49 +00:00
Andreea Pavel
58063719cd Backed out 2 changesets (bug 1712837) for win build bustages on a CLOSED TREE
Backed out changeset e754af875d57 (bug 1712837)
Backed out changeset 020eaab241a8 (bug 1712837)
2021-12-07 02:21:09 +02:00
Dana Keeler
8aceb5730c Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-06 23:43:32 +00:00
Csoregi Natalia
2ea031c8ba Backed out 2 changesets (bug 1712837) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset e3ed61b61357 (bug 1712837)
Backed out changeset 19b9dfd60749 (bug 1712837)
2021-12-01 22:36:35 +02:00
Dana Keeler
a13bccff29 Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika,jschanck
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-12-01 18:10:34 +00:00
William Durand
db8bf03e26 Bug 1740601 - Initial implementation of scripting.executeScript(). r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128339
2021-11-17 15:11:00 +00:00
Norisz Fay
6e984d9ba0 Backed out changeset 69dee748c290 (bug 1740601) for causing mochitest plain leaks CLOSED TREE 2021-11-16 20:58:39 +02:00
William Durand
f516726cab Bug 1740601 - Initial implementation of scripting.executeScript(). r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128339
2021-11-16 17:29:16 +00:00
Marian-Vasile Laza
fcac4f0656 Backed out 2 changesets (bug 1712837) for causing mochitest and marionette test failures. CLOSED TREE
Backed out changeset ecfd23a7ef69 (bug 1712837)
Backed out changeset 51529cb4682e (bug 1712837)
2021-11-11 01:52:57 +02:00
Dana Keeler
48d475aa56 Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-11-10 21:48:47 +00:00
Mathew Hodson
19fb7d0c8f Bug 1531368 - Use ChromeUtils.import with one parameter in extensions code. r=robwu
Simplify some instances where modules were lazy loaded.

Differential Revision: https://phabricator.services.mozilla.com/D118569
2021-10-25 14:42:59 +00:00
Andrei Oprea
b23ab630d2 Bug 1731796 - Add ability to support extraParams via search Nimbus Feature r=k88hudson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D127580
2021-10-19 15:40:54 +00:00
criss
956c31b69f Backed out changeset 6353bdbe1604 (bug 1731796) for causing failures on browser_search_nimbus_reload.js. CLOSED TREE 2021-10-19 16:49:45 +03:00
Andrei Oprea
acb9bc5ff2 Bug 1731796 - Add ability to support extraParams via search Nimbus Feature r=k88hudson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D127580
2021-10-19 12:57:32 +00:00
Daisuke Akatsuka
48273c63f4 Bug 1678624: Apply bookmark-url-changed event. r=mak
Depends on D103883

Differential Revision: https://phabricator.services.mozilla.com/D103884
2021-10-05 00:53:45 +00:00
Daisuke Akatsuka
d879fcb087 Bug 1678623: Apply bookmark-title-changed event. r=mak
Depends on D103147

Differential Revision: https://phabricator.services.mozilla.com/D103148
2021-10-01 12:01:29 +00:00
Geoff Brown
a00c449c2d Bug 1730213 - Explicitly skip tests under browser/ on android; r=ahal
These tests are excluded from android test runs in moz.build. Including
an explicit annotation in each manifest avoids scheduling confusion.
browser-chrome and plain-chrome tests in browser/ are of no concern,
since those test types are never scheduled on android.

Differential Revision: https://phabricator.services.mozilla.com/D125266
2021-09-13 15:22:27 +00:00