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

75867 Коммитов

Автор SHA1 Сообщение Дата
Bernard Igiri 1550a1050e Bug 1793889 - Re-enabled double click fullscreen on audio only video tags r=mconley
Renabled double click full screen on audio only video tags. This feature is now only disabled on audio tags.

Differential Revision: https://phabricator.services.mozilla.com/D159216
2022-10-17 16:08:00 +00:00
Max Christian Pohle 701569f1d4 Bug 1775522 - Add timestamps to updater logs, r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156311
2022-10-17 15:59:05 +00:00
Amy Churchwell a77a9ee90a Bug 1794369 - Change findbar “phrase not found” error message to text color. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D159224
2022-10-17 15:23:36 +00:00
nchevobbe d47286801e Bug 1795359 - Handle permissions for different origin attributes in SitePermsAddonProvider. r=rpl
In SitePermsAddonWrapper, we are keeping track of permission with a uniqueness on the permission type.
But for a given permission type and origin, multiple permissions can be set (for regular and private windows, ...).
This patch make it so we bookkeep all the permission that are passed, so we can then later properly
remove them when the addon gets uninstalled, or when individual permission are being revoked.

Differential Revision: https://phabricator.services.mozilla.com/D159420
2022-10-17 15:17:08 +00:00
Chris H-C e85a18c1f8 Bug 1794123 - Update the Glean SDK Update documentation r=perry.mcmanis,janerik DONTBUILD
While we're here, quote the gtest arg for shells that greedily glob.

Differential Revision: https://phabricator.services.mozilla.com/D159436
2022-10-17 15:04:40 +00:00
Butkovits Atila 86c65085e5 Backed out 6 changesets (bug 1445134) for causing xpcshell failures. CLOSED TREE
Backed out changeset 59f902b761b5 (bug 1445134)
Backed out changeset 2ec41e23c593 (bug 1445134)
Backed out changeset b0dc583fff47 (bug 1445134)
Backed out changeset a09ccaf19501 (bug 1445134)
Backed out changeset 2d736481d13d (bug 1445134)
Backed out changeset 57ec56757493 (bug 1445134)
2022-10-17 17:54:39 +03:00
Paul Adenot 4467a6f5b9 Bug 1793294 - Update cubeb-rs crates to 0.10.3. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D158954
2022-10-17 13:18:54 +00:00
Mark Banner d50a36b7e8 Bug 1445134 - Load policy engines from enterprise policies at search service startup. r=mkaply,mcheang
Rather than having the enterprise policy push engine information to the search service, this pulls it from the policies whilst initialisation is in progress. This will ensure the search service always has the correct information for policy engines even if the search settings file is modified.

Differential Revision: https://phabricator.services.mozilla.com/D156538
2022-10-17 12:56:07 +00:00
Mark Banner 241f0c594d Bug 1445134 - Remove now unnecessary tests for WebExtension legacy migration of search engines. r=mcheang
These were originally added as part of https://hg.mozilla.org/mozilla-central/rev/8ccb7b933d135be3a5e6afd1082a78742ea608fa
However, the explicit checks for the special search engines were removed in
https://hg.mozilla.org/mozilla-central/rev/dc132dc5bf40eec42b23ad796dfcca2abef9e721
without removing the tests.

Differential Revision: https://phabricator.services.mozilla.com/D159082
2022-10-17 12:56:06 +00:00
Mark Banner eb7d918413 Bug 1445134 - Migrate docshell xpcshell-tests away from using enterprise policies. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D159056
2022-10-17 12:56:06 +00:00
Mark Banner 0cdc18fab0 Bug 1445134 - Use the enterprise policy code to set up search test policy code. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D159033
2022-10-17 12:56:05 +00:00
Mark Banner a995039692 Bug 1445134 - Remove user/policy engine tests from test_webextensions_valid.js as they are already covered elsewhere. r=mcheang
These are covered by test_userEngine.js and test_policyEngine.js

Differential Revision: https://phabricator.services.mozilla.com/D159032
2022-10-17 12:56:04 +00:00
Butkovits Atila 2e5aa93a34 Backed out changeset 6f112c0942b0 (bug 1793925) for causing build bustages. CLOSED TREE 2022-10-17 16:04:08 +03:00
Tomislav Jovanovic 81d9251987 Bug 1795597 - MV2 extensions should never flag for attention, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D159476
2022-10-17 12:21:20 +00:00
Soheil 97f2722332 Bug 1794642 - Add keyboard shortcut label to listen button in reader view r=Gijs
Add the keyboard shortcut in parenthesis so the user can learn which key to press to start
listening.

Differential Revision: https://phabricator.services.mozilla.com/D159077
2022-10-17 12:05:11 +00:00
William Durand 8617fff90c Bug 1793925 - Warn about complex versioning formats used in manifest. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D158834
2022-10-17 11:19:00 +00:00
Itiel 9bbc0762a0 Bug 1169529 - Increase the likelihood of displaying more tabs to restore in about:sessionrestore r=desktop-theme-reviewers,dao
This will still depend on window size and zoom.

Differential Revision: https://phabricator.services.mozilla.com/D159094
2022-10-16 08:09:37 +00:00
Cristian Tuns b4150d1c6f Backed out changeset f8554e4080f2 (bug 1793629) for causing mochitest failures on browser_preferences_usage.js CLOSED TREE 2022-10-15 16:14:29 -04:00
Tomislav Jovanovic 670a479833 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-15 19:05:26 +00:00
Kagami Sascha Rosylight 232d5682ef Bug 1784840 - Convert all background tasks to ESM r=nalexander,application-update-reviewers,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156950
2022-10-15 18:24:37 +00:00
Kris Maglione 242c704d10 Bug 1795164: Replace Cu.generateXPCWrappedJS with Cu.getDebugName. r=mccr8
The only remaining user of this function uses it as an awkward way to get the
debug name of a timer callback function. We should just provide it with a
straightforward way to do that instead.

Differential Revision: https://phabricator.services.mozilla.com/D159335
2022-10-14 22:49:20 +00:00
Dan Mosedale 43d78fe9c3 Bug 1795349 - add first generic FxMS feature, r=barret
Differential Revision: https://phabricator.services.mozilla.com/D159447
2022-10-14 21:59:01 +00:00
Tim Huang 4c6fa176f2 Bug 1788225 - Part 4: Add tests for cookie banner domain preferences. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D157870
2022-10-14 19:59:44 +00:00
Tim Huang e564e077a7 Bug 1788225 - Part 3: Check the site preference of the top-level domain when getting the cookie rule and clicking rule. r=pbz
The site preference will take precedence over the pref setting when we
getting the cookie rule and the clicking rule. We will use the top-level
uri to check the site preference which aligns with the behavior of ETP
toggle.

Differential Revision: https://phabricator.services.mozilla.com/D157869
2022-10-14 19:59:44 +00:00
Tim Huang 142187f9dd Bug 1788225 - Part 2: Add functions to nsCookieBannerService to allow setting domain preference. r=pbz
This patches adds functions to nsCookieBannerService that allow
get, set and remove cookie banner domain preference.

Differential Revision: https://phabricator.services.mozilla.com/D157867
2022-10-14 19:59:44 +00:00
Tim Huang 0d144b3de3 Bug 1788225 - Part 1: Implementing CookieBannerDomainPrefService. r=pbz
This patch implements the CookieBannerDomainPrefService which manage
the per domain pref setting for cookie banner handling. The service uses
the nsIContentPrefService2 to store the per site pref value.

Differential Revision: https://phabricator.services.mozilla.com/D157866
2022-10-14 19:59:43 +00:00
Stephanie Cunnane a2abcf7ce6 Bug 1794463 - Refine telemetry to count insecure OpenSearch search engines (don't count localhost and .onion as insecure). r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D159211
2022-10-14 17:14:48 +00:00
nchevobbe b19310b506 Bug 1792993 - Log additional error message in console when Addonmanager.installSitePermsAddonFromWebPage throws. r=pbz.
This error message provides extra information to developers so they know why the access was denied
(e.g. for public etld, remote subframes, ...).

Differential Revision: https://phabricator.services.mozilla.com/D159246
2022-10-14 17:01:32 +00:00
Matthias Camenzind 8a4636621a Bug 1793605 - Flush layout in window.open calls with specified size. r=emilio
Without flushing the layout, new windows appear to the opener to
initially open at the size of the opener instead of the specified size.

We can flush the layout unconditionally when we have a specified size
where we otherwise would make sure that the frame loader has been
reflowed at least once.

Thanks to Emilio for providing the changes to avoid tokenizing the
window features twice.

Differential Revision: https://phabricator.services.mozilla.com/D158584
2022-10-14 16:35:49 +00:00
Eemeli Aro 442be91f5a Bug 1795292 - Avoid formatRange() and selectRange() outside Nightly. r=flod,aryx
Differential Revision: https://phabricator.services.mozilla.com/D159395
2022-10-14 15:02:57 +00:00
Nika Layzell 4a8b70385d Bug 1794657 - Part 2: Remove the main-thread-only host map from ExtensionPolicyService, r=kmag
We're still holding strong references to the WebExtensionPolicy objects through
the `mExtensions` map, so we don't need to worry about the policy instances
dying earlier after this change.

Differential Revision: https://phabricator.services.mozilla.com/D159087
2022-10-14 14:20:35 +00:00
Nika Layzell ef09e660f9 Bug 1794657 - Part 1: Use a StaticRWLock in the ExtensionPolicyService, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D159086
2022-10-14 14:20:35 +00:00
Paul Zuehlcke d586be7f75 Bug 1795270 - CookieBannerRule RemoteSettings schema updates. r=timhuang
* Expose filter_expression field via UI.
 * Removed default values to avoid them being added to JSON payload via RemoteSettings editor.

Differential Revision: https://phabricator.services.mozilla.com/D159380
2022-10-14 13:11:05 +00:00
Alexandre Poirot a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Cosmin Sabou 60728cbf2a Bug 1693271 - Fix for test_MatchPattern.js xpcshell failures. CLOSED TREE 2022-10-14 06:09:54 +03:00
Tomislav Jovanovic 28b6c5c09f Bug 1777343 - Implement simple origin controls attention indicator, r=willdurand,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D158476
2022-10-13 22:04:52 +00:00
Nika Layzell aecc6a1a6b Bug 1793995 - Part 8: Move WebAccessibleResources into the threadsafe core, r=kmag
This will be required in the future to make getting protocol flags for
moz-extension:// URIs threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D158886
2022-10-13 21:47:00 +00:00
Nika Layzell a8bb1292e2 Bug 1793995 - Part 7: Use threadsafe refcounting for WebAccessibleResource, r=kmag
Now that all fields and methods in WebAccessibleResource have been made
threadsafe, we can make the type itself be threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D158885
2022-10-13 21:47:00 +00:00
Nika Layzell a4606b1d02 Bug 1793995 - Part 6: Allow looking up a WebExtensionPolicyCore from any thread, r=kmag
In order to make WebAccessibleResource threadsafe, as well as other places, it
needs to be possible to look up a `WebExtensionPolicyCore` from any thread.
This is handled by using a static method on the ExtensionPolicyService for this
task, and keeping a seperate mutex-guarded static table under the hood.

Theoretically the table within `ExtensionPolicyService()` could also be
removed, however I held off on doing that in case it would have a negative
performance impact to take extra locks and follow extra pointers.

Differential Revision: https://phabricator.services.mozilla.com/D158884
2022-10-13 21:47:00 +00:00
Nika Layzell 233d36d3c4 Bug 1793995 - Part 5: Factor out the threadsafe core of MatchPattern and MatchPatternSet, r=kmag
Similar to MatchGlob, this is fairly straightforward, but is complicated
slightly by `MatchPatternSet`, which allows being destructured into the
contained `MatchPattern` instances in a `[Constant]` method. To handle this a
cache is added for the wrappers in the cycle-collected `MatchPatternSet`.

Differential Revision: https://phabricator.services.mozilla.com/D158883
2022-10-13 21:46:59 +00:00
Nika Layzell 5b65c52eed Bug 1793995 - Part 4: Split out the threadsafe core from MatchGlob, r=kmag
The outer cycle-collected wrapper type is unfortunately still required by
WebIDL in order to keep the JS API working.

Differential Revision: https://phabricator.services.mozilla.com/D158882
2022-10-13 21:46:59 +00:00
Nika Layzell dd507d734e Bug 1793995 - Part 3: Remove the unused includeGlobs and excludeGlobs getters, r=kmag
These getters are never called and will make making the core of MatchGlob
threadsafe more annoying.

Differential Revision: https://phabricator.services.mozilla.com/D158881
2022-10-13 21:46:58 +00:00
Nika Layzell 9a7e3807c5 Bug 1793995 - Part 2: Make AtomSet immutable and threadsafe, r=kmag
The mutator methods were never used, so were easy to remove, allowing the type
to be made threadsafe. The main potential for performance regression is that
the string based Contains method now uses `NS_Atomize` instead of
`NS_AtomizeMainThread`, however this is only called in once place
(WebExtensionPolicy::HasPermission). If it turns out to be an issue, we can
move the atomization into the caller to keep it using `NS_AtomizeMainThread`.

Differential Revision: https://phabricator.services.mozilla.com/D158880
2022-10-13 21:46:58 +00:00
Nika Layzell 88e501708c Bug 1793995 - Part 1: Move immutable parts of WebExtensionPolicy to a threadsafe core type, r=kmag
This threadsafe core type also acts as a weak reference to the main-thread
WebExtensionPolicy when needed. This will be used when information about a
WebExtension is needed to be accessible off-main-thread in the future.

Differential Revision: https://phabricator.services.mozilla.com/D158879
2022-10-13 21:46:58 +00:00
Nika Layzell 5388c4586e Bug 1693271 - Part 2: Fix test for slower first-run debug execution of RustRegex, r=kmag
In debug mode, the compile for some regular expressions is much slower with the
regex crate than it was with the JS engine, likely due to the regex's crate
heavy reliance on inlining and other llvm optimizations. Subsequent runs are
much faster, as they do not need to optimize and build the DFA.

Differential Revision: https://phabricator.services.mozilla.com/D158878
2022-10-13 21:46:57 +00:00
Nika Layzell a525f604ba Bug 1693271 - Part 1: Use RustRegex for MatchGlob, r=kmag
This also involves making MatchGlob operate on UTF8String instead of DOMString,
as the rust `regex` crate operates on utf-8 strings. This should have no
functional impact on callers.

Differential Revision: https://phabricator.services.mozilla.com/D158877
2022-10-13 21:46:57 +00:00
Nika Layzell 5af90d1cbe Bug 1794001 - Part 5: remove the regex-ffi crate, r=xpcom-reviewers,kmag
It is no longer necessary now that `rure` bindings are in use.

Differential Revision: https://phabricator.services.mozilla.com/D158876
2022-10-13 21:46:56 +00:00
Nika Layzell a002d278e9 Bug 1794001 - Part 4: Use RustRegex in FormAutofillNative instead of our regex-ffi crate, r=dimi
The `RustRegex` wrapper is built on the official `rure` ffi bindings for the
`regex` crate, which was added in previous parts. The `regex-ffi` crate will be
removed in the next part.

Differential Revision: https://phabricator.services.mozilla.com/D158875
2022-10-13 21:46:56 +00:00
Nika Layzell 93a9c67b35 Bug 1794001 - Part 1: Import the `rure` crate for rust regex ffi, r=xpcom-reviewers,supply-chain-reviewers,kmag
While we already have an in-tree `regex-ffi` crate which provides basic
access to regex functionality for use in FormAutofillNative, the `regex`
crate itself provides and maintains its own c api as the `rure` crate.
This patch vendors in `rure` to allow us to use the more-fully-featured
official ffi.

Differential Revision: https://phabricator.services.mozilla.com/D158873
2022-10-13 21:46:54 +00:00
hanna alemu 9b3275e199 Bug 1794592 - Investigate use of message property in Fx view messages/ remove if not used r=mviar
The "message" property of the pref "browser.firefox-view.feature-tour" seems to have no actual use, and only one value of "FIREFOX_VIEW_FEATURE_TOUR". We can remove it to reduce complexity.

Differential Revision: https://phabricator.services.mozilla.com/D159131
2022-10-13 19:41:01 +00:00