Commit Graph

817725 Commits

Author SHA1 Message Date
Nick Alexander
e5289052b2 Bug 1792258 - Post: Make it easier to test (Android) multi-locale packages. r=geckoview-reviewers,m_kato
This commit updates the outdated documentation for producing multi-locale
packages, and also arranges for Android multi-locale packages to produce a
GeckoViewExample binary that has `libs` and `assets/omni.ja`.  Together, these
greatly ease multi-locale testing.

Differential Revision: https://phabricator.services.mozilla.com/D160705
2022-11-03 21:36:26 +00:00
Nick Alexander
b5e9cea02a Bug 1792258 - Package mobile/android/aboutConfig.ftl. r=geckoview-reviewers,m_kato
This commit does two things.  First, it fixes a packaging error caused
by various `relativesrcdir` directives impacting the `**/*.ftl` block
by lifting that block earlier; second, it patches the target JAR in
later blocks.

Differential Revision: https://phabricator.services.mozilla.com/D160704
2022-11-03 21:36:25 +00:00
Hanna Jones
c394f01c31 Bug 1795306 - create a reusable fx-toggle component r=mstriemer
This patch adds an `fx-toggle` widget along with associated stories and some basic tests.

Some random thoughts/notes:

* Some of the colors are a bit off from the figma specs since we're still using in-content variables for now
* The tests are pretty basic, and possibly a little redundant
* As a follow up I'm going to experiment with creating an `fx-label` element and will see if it's possible to use `ElementInternals` to keep the association between the input and the label
* As another follow up I'm going to try to expand on how we handle documentation of components in Storybook (i.e. can we pull in JSDoc annotations or add markdown support)

Depends on D157937

Differential Revision: https://phabricator.services.mozilla.com/D160264
2022-11-03 21:32:35 +00:00
Mark Striemer
02523cc40a Bug 1792237 - ./mach addwidget to scaffold a shared front-end component r=hjones
Depends on D161141

Differential Revision: https://phabricator.services.mozilla.com/D157937
2022-11-03 21:32:34 +00:00
Mark Striemer
6064b195e4 Bug 1798911 - Setup lit for development of toolkit widgets r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D161141
2022-11-03 21:32:34 +00:00
Butkovits Atila
8564e9f846 Merge mozilla-central to autoland. CLOSED TREE 2022-11-04 00:37:55 +02:00
Ben Visness
889ed39c67 Bug 1798405 - Read WASM alignment args as U32. r=rhunt
The WASM spec prescribes that memarg alignments are variable-length U32, but we were reading just a single byte.

Differential Revision: https://phabricator.services.mozilla.com/D161090
2022-11-03 21:21:55 +00:00
ahochheiden
92ff7d8acc Bug 1798587 - Make condprof linux64-firefox command use venv instead of virtualenv (just like the macosx64-firefox command) r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D160979
2022-11-03 21:12:14 +00:00
Andrew Halberstadt
600e27df8e Bug 1759030 - [gecko_taskgraph] Use 'generator.py' from upstream Taskgraph, r=releng-reviewers,jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D161057
2022-11-03 20:51:15 +00:00
Andrew Halberstadt
e12e2150b9 Bug 1759030 - Use 'verifications' from upstream taskgraph module, r=releng-reviewers,gbrown
This is the last place that in `gecko_taskgraph/generator.py` that calls into
`gecko_taskgraph` code. By removing it, the two generator.py files will be
identical and the `gecko_taskgraph` copy can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D161080
2022-11-03 20:51:15 +00:00
ahochheiden
dc6274620c Bug 1759030 - Vendor taskcluster-taskgraph at 3.5.1, r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D161056
2022-11-03 20:51:14 +00:00
Greg Mierzwinski
49933a9b54 Bug 1754823 - Add tests for the perf selector. r=ahal
This patch adds two parametrized tests (totalling 18 tests) for the perf selector. The first set of 15 tests are for testing the category expansions under different configurations. The last 3 tests are for testing the run methods in the three configurations that we offer: standard, dry runs, and uncategorized test selection (or --show-all).

Depends on D160418

Differential Revision: https://phabricator.services.mozilla.com/D160419
2022-11-03 20:32:49 +00:00
Greg Mierzwinski
09e3c10025 Bug 1754823 - Add the run methods to the perf selector. r=ahal
This patch adds the run methods for the perf selector as well as the entry point for the mach command. It also produces the Perfherder URL at the end.

Depends on D160417

Differential Revision: https://phabricator.services.mozilla.com/D160418
2022-11-03 20:32:48 +00:00
Greg Mierzwinski
752452c92e Bug 1754823 - Add a push-to-try method to the perf selector. r=perftest-reviewers,AlexandruIonescu
This patch adds a method that allows us to push to try. It performs two pushes similar to the compare selector, except in this case we're also capturing the logs in all cases so that we can provide a Perfherder URL afterwards. At the same time, this patch adds a LogProcessor that can capture these logs and parse them for the revisions.

Depends on D160416

Differential Revision: https://phabricator.services.mozilla.com/D160417
2022-11-03 20:32:48 +00:00
Greg Mierzwinski
6033625a33 Bug 1754823 - Refactor the CompareParser for the perf selector. r=AlexandruIonescu
Depends on D160415

Differential Revision: https://phabricator.services.mozilla.com/D160416
2022-11-03 20:32:48 +00:00
Greg Mierzwinski
481f75f7ee Bug 1754823 - Add methods for getting tasks for the perf selector. r=perftest-reviewers,AlexandruIonescu
This patch adds two methods for getting/selecting tasks. The first one (get_tasks) is used to either query fzf directly, or to use interactively for user selections. The second (get_perf_tasks) makes use of the first to query for categories (through the user) and then query for the selected tasks. It also performs all the necesary intersections/unions for the queries.

These two are separated because we need a simple way to allow the user to look and select the raw tasks instead of categories if needed. This way the user can still get a comparison link at the end instead of going to `mcah try fuzzy`. See the next patches.

Depends on D160414

Differential Revision: https://phabricator.services.mozilla.com/D160415
2022-11-03 20:32:47 +00:00
Greg Mierzwinski
701d837573 Bug 1754823 - Add a method for expanding the perf categories. r=perftest-reviewers,AlexandruIonescu
This patch adds a method for expanding the categories. This method takes all the configuration details from the PerfParser (variants, apps, platforms, etc.) and combines them to create the categories that people will be seeing and selecting from. It creates the queries, and checks for any restrictions among them to provide selections that work. See the method for more details on all of this.

Depends on D160413

Differential Revision: https://phabricator.services.mozilla.com/D160414
2022-11-03 20:32:47 +00:00
Greg Mierzwinski
f69b2746c8 Bug 1754823 - Add a new perf selector skeleton file. r=perftest-reviewers,AlexandruIonescu
This patch adds the basics for the perf selector: file, categorizations, selector configuration, and CLI arguments.

Depends on D155980

Differential Revision: https://phabricator.services.mozilla.com/D160413
2022-11-03 20:32:46 +00:00
Greg Mierzwinski
35261aea3a Bug 1754823 - Add a flag to allow capturing the push-to-try logs. r=ahal,AlexandruIonescu
This patch adds a `capture_log` flag that will allow a user to capture the logs produced when running the `push_to_try` methods. Currently, we use `subprocess.check_call` which causes hg to hang when we attempt to redirect and gather stdout. Using `subprocess.run` is better as it lets us capture the logs, but the log output is very slow and can easily lead people to believe that hg is hanging when it's not. This results in corrupted repos. Using Popen, the logs are output slower than `check_call`, but faster than `run` so you know something is happening. The speed at which these logs are printed is also why I have this log capturing behind a flag.

This functionality will be used in the `./mach try perf` selector to capture the child revisions produced for the try task config file changes and allow us to produce a PerfCompare link to provide the user.

Differential Revision: https://phabricator.services.mozilla.com/D155980
2022-11-03 20:32:46 +00:00
negin
6cbabd8524 Bug 1797837 - Support adding center position as a modal in MR Onboarding r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D161047
2022-11-03 20:17:46 +00:00
Julian Seward
1da8446858 Bug 1784276 - Part 2: implement br_on_cast_fail for wasm baseline. r=rhunt.
This patch implements br_on_cast_fail for wasm baseline, in a way which shares
some code with the existing br_on_cast. Main changes:

* BaseCompiler::emitBrOnCast: renamed to ::emitBrOnCastCommon, which handles
  both the on-cast-success and on-cast-failure cases.

* OpIter<Policy>::checkCastedBranchValueAndPush has been removed and then
  reinstated as ::readBrOnCast and ::readBrOnCastFail. Removal of this means
  the validation logic and associated comments are located in only one place
  rather than two.

* OpIter<Policy>::readBrOnCast and ::readBrOnCastFail: add comments to explain
  the types involved, and the validation and run-time checks required. These
  are then implemented.

* new test case tests/wasm/gc/br-on-cast-fail.js

Differential Revision: https://phabricator.services.mozilla.com/D158493
2022-11-03 19:50:14 +00:00
Paul Zuehlcke
75f91fddf2 Bug 1796397 - Remove privacy_segmentation.status telemetry. r=bvandersloot,settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D161131
2022-11-03 19:45:13 +00:00
Luca Greco
16ae1e1904 Bug 1786919 - Disallow to MV3 webRequest listener changes to existing security headers. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D161052
2022-11-03 19:43:01 +00:00
Stephen A Pohl
177c2181ca Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159723
2022-11-03 19:32:27 +00:00
Nathan LaPre
8c8a637b75 Bug 1748585: Remove img elements with alt="" from the a11y tree, r=Jamie
This revision changes the logic for creation and updating of accessibles
corresponding to img elements such that alt="" (without click listeners or any
other aria attribute that forces an accessible) will effectively remove that
img's accessible from the accessibility tree. Next, this revision removes the
concept of eNoNameOnPurpose from accessible name handling, since it's now
unnecessary now that alt="" means "don't create an accessible" in most cases.
This revision also adds tests to verify the functionality and updates existing tests.

Differential Revision: https://phabricator.services.mozilla.com/D160706
2022-11-03 19:28:49 +00:00
Tom Ritter
d6ac30f83e Bug 1796196: Do not sanitize preferences destined for Privileged About Processes r=nika,KrisWright
- Do not allow preallocated processed to turn into Privileged
  About Content Processes
- Separate ShouldSanitizePreference into a more logical
  'ShouldSanitizePreference' to use when sending a process to
  a subprocess, and a separate IsPreferenceSanitized to be used
  when accessing a preference
- Remove several now-redundant parts of conditionals like
  - gContentProcessPrefsAreInited (now inside IsPreferenceSanitized)
  - !XRE_IsParentProcess() (now inherent in the check)
- Remove the aIsDestinationWebContentProcess argument - it's not
  needed in IsPreferenceSanitized, and can be checked outside
  ShouldSanitizePreference

  The original (partial) preference omitting code was done for
  performance, and stuck around partially in the sanitization code -
  preferences explicitly blocklisted were omitted from all
  sub-processes. But those preferences changed from large preferences
  to privacy-sensitive ones and with this change we no longer omit
  any preferences from all sub-processes, we only sanitize some
  preferences for web content processes.

  We could bring back this performance behavior though, and tailor
  it specifically for performance and not privacy.

Differential Revision: https://phabricator.services.mozilla.com/D159940
2022-11-03 18:55:11 +00:00
Daniel Holbert
0f6f5cf3ae Bug 1798953 part 2: Annotate gfxSkipCharsIterator as MOZ_STACK_CLASS. r=jfkthame
In practice, it's only instantiated on the stack; and that's kinda important,
to reduce the likelihood that it somehow outlives the 'gfxSkipChars' instance
that it maintains a raw pointer to and is iterating over.

Differential Revision: https://phabricator.services.mozilla.com/D159922
2022-11-03 18:03:59 +00:00
Daniel Holbert
6d7a2bc895 Bug 1798953 part 1: Initialize ClusterIterator::mIterator in the init list. r=jfkthame
Before this patch, we implicitly invoke the default constructor for this
member-var, and then immediately stomp on the results with a reassignment.

This patch avoids that unnecessary usage of the default constructor, saving
ourslves a bit of work and getting this member-var more directly into a
fully-initialized/valid state.

Differential Revision: https://phabricator.services.mozilla.com/D159903
2022-11-03 18:03:59 +00:00
Randell Jesup
0269f62d2b Bug 1544127: Diagnostics r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D160595
2022-11-03 17:59:06 +00:00
Morgan Rae Reschenberg
9c9939a496 Bug 1798781: Add awaits for select events on mac r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D161085
2022-11-03 17:00:59 +00:00
Shane Caraveo
d3e7b16fa3 Bug 1705044 r=freddyb,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D154919
2022-11-03 17:00:40 +00:00
Richard Marti
66b80c7e7f Bug 1796619 - Make the tree better work with the modern flexbox emulation. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161165
2022-11-03 17:15:07 +00:00
serge-sans-paille
a03166123a Bug 1797277 - Remove Python2 from update-verify image r=releng-reviewers,jcristau,jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D160200
2022-11-03 16:24:05 +00:00
serge-sans-paille
4839444482 Bug 1797606 - Cleanup task expiration-policy handling r=taskgraph-reviewers,ahal
Make all expiration date comparison from the same time reference, making
the comparison pedantically valid, and also avoiding repeated implicit
calls to `datetime.datetime.utcnow()`

Use `dict.setdefault` and `dict.get` to decrease the number of control path
in the code, hopefully making it easier to read.

As a bonus, this yields a modest 4% runtime improvement on my setup when
comparing the runtime of

    ./mach taskgraph tasks --fast --no-optimize -q -o /dev/null

Differential Revision: https://phabricator.services.mozilla.com/D160404
2022-11-03 16:23:32 +00:00
serge-sans-paille
33b96a22ec Bug 1797698 - Minor gecko_taskgraph/transforms/task.py cleanup r=taskgraph-reviewers,ahal
Avoid long lines by using appropriate temporary variables.
Use dict.pop instead of dict.get + del.
Move loop invariant outside of loops.

Differential Revision: https://phabricator.services.mozilla.com/D160467
2022-11-03 16:23:07 +00:00
William Durand
560aa1a276 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +00:00
serge-sans-paille
f0f87acd20 Bug 1798930 - Support .tgz extension in fetch-content r=taskgraph-reviewers,jmaher
Many project use .tgz as a shortcut to .tar.gz. Support that pattern.

Differential Revision: https://phabricator.services.mozilla.com/D161147
2022-11-03 16:22:26 +00:00
Narcis Beleuzu
533f673e9e Backed out 4 changesets (bug 1697421) for e.g. breaking Tampermonkey userscripts (bug 1798149). CLOSED TREE
Backed out changeset 0ec0d4234b77 (bug 1697421)
Backed out changeset b1c8d75d49ef (bug 1697421)
Backed out changeset ca500b60941e (bug 1697421)
Backed out changeset 5979ac92fa24 (bug 1697421)
2022-11-03 17:15:23 +02:00
Mozilla Releng Treescript
1c2587b960 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 86b5712fe0015f599654796b0ef969589aae879b
de -> fb942c205bc4336183763c10ed7d1be376f44099
es-AR -> 3e0c9b40b23de7dabb791cc42b60ff9b396794a8
fa -> 0438bb6225b86d94e1350c969713349ae325a111
fr -> 79fa29b9aeba74f1bc01e9504005edd838b22c07
fy-NL -> 5dd94914b8920a3b2fd40fbfdf4a200bdc711277
nl -> 1bd3e41cfd8132cde91212b59a89e4ee12dfc284
rm -> b295ac76b8322ea371d998908552167690f91027
ro -> b09a7e119cde6bd4e3c7ccf64d10f80f2da6fe60
tg -> e75b8b885323daf68483301b4a01342323fa4992
uk -> c4261d9ada440b8ac7ab012e2a4957b6c707ae9b
zh-CN -> 9ae3bda600b99f82e73ee6f554a1b426d5a28b51
zh-TW -> 42e28a2ab27c65197c90beead42159b0e501823c
2022-11-03 19:06:36 +00:00
Butkovits Atila
441e6ad24d Backed out changeset 1840f6c848d9 (bug 1762078) for causing linting failures. CLOSED TREE 2022-11-03 20:39:02 +02:00
Butkovits Atila
445a633e89 Backed out 3 changesets (bug 1774827) for causing SM bustages.
Backed out changeset 129877d9c8c8 (bug 1774827)
Backed out changeset 1977aeb86c32 (bug 1774827)
Backed out changeset e1c6eb1e9f4f (bug 1774827)
2022-11-03 20:37:48 +02:00
Iain Ireland
90d73ef2c2 Bug 1798795: Explain where the fifth bit went r=mgaudet DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D161091
2022-11-03 16:16:39 +00:00
Luca Greco
823a39ad8d Bug 1798908 - SitePermsAddonProvider.shutdown should not call Services.obs.removeObserver if this._initPromise is not set. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D161137
2022-11-03 16:13:53 +00:00
yozhangmozilla
954e070cf1 Bug 1790133 Adjust Feature Callout Container vertical positioning depending on target's height r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D158170
2022-11-03 16:08:40 +00:00
Joshua Marshall
09d7f44734 Bug 1762078 - Ensure service workers don't intercept crossorigin media requests r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D159315
2022-11-03 15:48:44 +00:00
Paul Adenot
9750677b72 Bug 1633421 - Teach 'about:networking' about opening the directory that contains logs. r=valentin,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D72667
2022-11-03 15:41:58 +00:00
Natalia Kulatova
c101e3d2ac Bug 1795087 - land NSS NSS_3_85_BETA1 UPGRADE_NSS_RELEASE, r=nss-reviewers,djackson DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D161145
2022-11-03 15:38:32 +00:00
Ryan Hunt
569c9d6616 Bug 1774827 - wasm: Use TypeDef for runtime casting and remove remnants of rtt.sub. r=yury
RttValue used to contain parents/children for rtt.sub and this was used
for runtime casting. We have all this information in TypeDef. This commit
basically turns RttValue into a thin wrapper around a *TypeDef. It may make
sense to remove RttValue and replace it with *TypeDef eventually.

Differential Revision: https://phabricator.services.mozilla.com/D159775
2022-11-03 15:07:48 +00:00
Ryan Hunt
2c50bb2538 Bug 1774827 - wasm: Implement declared subtyping. r=yury
This commit implements the declared subtyping from the GC proposal.

With this, in the following example:
  0: (type (struct))
  1: (sub 0 (type (struct (field i32))))
  2: (type (struct (field i32)))
Type 1 is a sub type of type 0, while type 2 is not a sub type of type 0. They
do not canonicalize to the same type either.

A super type field is added to TypeDef which stores the declared relationship.
The subtyping algorithm is split to two phases:
  1. Can types be in a subtype relationship
  2. Are the types in a declared subtyping relationship

The new algorithms don't require any allocation, and so the TypeCache is
removed. The subtyping methods now have no reason to live on TypeContext
as well, so they are moved to ValType, RefType, and TypeDef.

Differential Revision: https://phabricator.services.mozilla.com/D159058
2022-11-03 15:07:47 +00:00
Ryan Hunt
d51758f675 Bug 1774827 - wasm: Add RecGroup and implement canonicalization of all types. r=yury
This commit adds explicit recursion groups and implements type equality using
canonicalization as specified in the GC proposal.

For the following example:
  0: (struct)
  (rec
  1:  (struct (ref 0))
  2:  (struct (ref 1))
  )
  (rec
  3:  (struct (ref 0))
  4:  (struct (ref 3))
  )

Type equality is done primarily on a recursion group basis.
The first and second explicit rec's are equal, causing the types within them
to be pairwise equal.

Equality is given by the following transformation of the recs to have 'back edges'
to their local recursion group made explicit. The rest of the equality can be
done in a bottom up (inductive) manner.

  (rec
  1:  (struct (ref nonrecursive 0))
  2:  (struct (ref recursive 0))
  )
  (rec
  3:  (struct (ref nonrecursive 0))
  4:  (struct (ref recursive 0))
  )

With this example, you can see that transforming the 'local' edges to a normalized
format allows equality to done by simple comparison.

The biggest change in this commit is to how we store and create type definitions:
  1. TypeDef is now stored inline in a containing RecGroup class
  2. TypeContext now has a 'startRecGroup' and 'endRecGroup' method for building
     rec groups.

There are several other changes required too:
  1. Serialization/deserialization now operates on recursion groups, not type defs
  2. (oom handling fix) Serialization/deserialization initializes refptr's at the correct type
  3. Canonicalization of function types (which existed already for MVP) is now generalized to
     to support canonicalization of all types.

Differential Revision: https://phabricator.services.mozilla.com/D159057
2022-11-03 15:07:47 +00:00