Commit Graph

817710 Commits

Author SHA1 Message Date
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
Emilio Cobos Álvarez
c64c8ca9c1 Bug 1798347 - Don't unconditionally override to AM if hour value is <12. r=niklas
Only do that if we don't have AM/PM set already.

Differential Revision: https://phabricator.services.mozilla.com/D161136
2022-11-03 14:43:53 +00:00
Alex Finder
d9f1a25427 Bug 1793823 disable p2 perf tests r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D159375
2022-11-03 14:42:39 +00:00
Mike Conley
61e5d4682f Bug 1798702 - Move Unified Extension strings into the default string set. r=NeilDeakin
This is to fix Fluent errors being thrown because the Unified Extension panel
isn't created dynamically anymore, and is part of the DOM (in a <template>).

Differential Revision: https://phabricator.services.mozilla.com/D161081
2022-11-03 14:23:41 +00:00
Doug Thayer
5fb5ca9039 Bug 1798365 - Fold MMegamorphicLoadSlotByValue where possible r=jandem
This was showing up in the constant symbol lookup in isConcatSpreadable in
matrix-react-bench.

Differential Revision: https://phabricator.services.mozilla.com/D160821
2022-11-03 14:21:19 +00:00
Chris H-C
84475c5806 Bug 1767055 - Support Glean metrics in Artifact Builds r=nalexander,janerik
If there's no `COMPILE_ENVIRONMENT`, generate jogfile.json during build.
It contains information about all the metrics and pings.

If we are both not MOZILLA_OFFICIAL _and_ mozilla::IsDevelopmentBuild,
we look for the jogfile on the first use of the Glean or GleanPings global.

If we find the jogfile, we load our metric and ping info from there,
making it available to JS.

JOG isn't instrumented as it only does anything when !MOZILLA_OFFICIAL,
which is exactly the condition for disabling ping upload (see rust feature
`glean_disable_upload`), so we wouldn't expect to ever hear anything.

Differential Revision: https://phabricator.services.mozilla.com/D160540
2022-11-03 14:08:27 +00:00
Emilio Cobos Álvarez
54807dbdad Bug 1798898 - Fix container query evaluation on unsupported axis. r=dshin
We were falling back to viewport size, which is not what the spec says.

Differential Revision: https://phabricator.services.mozilla.com/D161132
2022-11-03 14:07:02 +00:00
Alexandre Poirot
2a996e9bd8 Bug 1797274 - [devtools] Track source-map gecko API performance. r=perftest-reviewers,bomsy,jdescottes,sparky
We can't test source-map package performance yet as it isn't exposed
and only loaded within a webpack bundle.

But it would be nice to also cover the code on top of the source-map package,
the "source map loader".

Differential Revision: https://phabricator.services.mozilla.com/D160199
2022-11-03 14:05:44 +00:00
Marco Castelluccio
4653814bfe Bug 1492495 - Add flake8-isort plugin to sort Python includes, with support for autofixing through isort. r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D157320
2022-11-03 13:50:46 +00:00
Mark Banner
2e9d0e6771 Bug 1798727 - Extend the rejected-words linter to cover idl and webidl files as well. r=linter-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D161049
2022-11-03 13:46:09 +00:00
Mark Banner
faf7fb8a23 Bug 1798727 - Replace rejected words in nsIContentSecurityPolicy.idl. r=freddyb
These were originally replaced in the c++ code in bug 1642808.

Differential Revision: https://phabricator.services.mozilla.com/D161048
2022-11-03 13:46:09 +00:00
Stanca Serban
178dd1cba9 Backed out changeset cd6046d38441 (bug 1794784) for causing Spidermonkey builds bustages. CLOSED TREE 2022-11-03 15:45:32 +02:00
Christian Holler
460455700d Bug 1794784 - Add code for differential testing with Fuzzilli. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D159151
2022-11-03 13:06:07 +00:00
ffxbld
5d12c91e5f No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D161118
2022-11-03 12:01:53 +00:00
Sarah Clements
c0abdff70f Bug 1798692 - Fix timestamp used in Tab Pickup list r=sfoster
* Remove multiplication of lastUsed by 1000 due to changes in bug 1791851

Differential Revision: https://phabricator.services.mozilla.com/D161039
2022-11-03 11:28:27 +00:00