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

769100 Коммитов

Автор SHA1 Сообщение Дата
Kris Wright b860b327ea Bug 1576515 - Enable PHC on Mac r=glandium
Note that we don't appear to support 32-bit on mac so it'd be redundant to check for it.

Differential Revision: https://phabricator.services.mozilla.com/D124919
2021-09-10 01:08:53 +00:00
Mike Hommey 9c0f04e547 Bug 1730030 - Replace some assembly with corresponding compiler builtins. r=gerald
This has the side-effect of adding the missing arm64 mac support for PHC.

Differential Revision: https://phabricator.services.mozilla.com/D125139
2021-09-10 00:58:34 +00:00
Kashav Madan 9632e084b7 Bug 1724370 - Ensure shutdown is blocked on all window flushes, r=farre
We currently only block shutdown on flushes for windows that appear in the
BrowserWindowTracker.orderedWindows list, which may or may not include the most
recent window (this appears to depend on _how_ the window was closed). Including
windows for which we saw "domwindowclosed" means that we'll also wait on flushes
for the most recent window.

This also ensures that we're queuing a SessionStoreUpdate from TabListener on
STATE_START/STATE_STOP (as ContentSessionStore.jsm does), and fixes a bug where
we were trying to remove an observer with the `deferred.reject` callback,
instead of the actual observer.

Differential Revision: https://phabricator.services.mozilla.com/D124403
2021-09-09 23:44:18 +00:00
Hiroyuki Ikezoe c7296ae56d Bug 1726261 - Replace GetCrossDocParentFrame in GetNearestScrollableFrameForDirection with GetCrossDocParentFrameInProcess. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D122910
2021-09-09 23:21:41 +00:00
Marian-Vasile Laza 9ae7ce258e Backed out changeset a6d7f0da2513 (bug 1729061) for causing bustages on DocAccessibleChildBase.cpp. CLOSED TREE 2021-09-10 03:47:09 +03:00
Marian-Vasile Laza 11a8d20a02 Backed out 2 changesets (bug 1576515) for causing build bustages.
Backed out changeset f5b0cc430e66 (bug 1576515)
Backed out changeset 7f3162bc43b8 (bug 1576515)
2021-09-10 03:45:58 +03:00
Robert Mader ccca4a019d Bug 1729464 - Update runtime to org.freedesktop.Platform 21.08,
It contains a more recent version of GTK, fixing some Wayland issues
that are still present in the 20.08 version (notably degraded
performance due to missing opaque region API in GTK).

Further more it ships more recent Mesa, which should also have
a positive effect on some hardware.

Differential Revision: https://phabricator.services.mozilla.com/D124801
2021-09-09 23:11:39 +00:00
Tetsuharu Ohzeki 71e238968a Bug 1729960 - Remove mozilla::layers::Diagnostics. r=gfx-reviewers,mattwoodrow
This also remove `FPSCounter`, `TimedMetric`, and these prefs:

- layers.acceleration.draw-fps.print-histogram
- layers.acceleration.draw-fps.write-to-file

Differential Revision: https://phabricator.services.mozilla.com/D125110
2021-09-09 23:05:23 +00:00
Tetsuharu Ohzeki feb7b63b68 Bug 1729954 - Remove gfx.logging.painted-pixel-count.enabled. r=gfx-reviewers,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D125104
2021-09-09 23:04:35 +00:00
Eitan Isaacson 9cd3deba73 Bug 1729061 - Introduce cache verification logging. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D124486
2021-09-09 22:25:58 +00:00
Masatoshi Kimura 4815d7d469 Bug 1729742 - Send normal mouse events when cursor is over a maximize button on Windows. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D125041
2021-09-09 22:25:20 +00:00
Glenn Watson 0ea2e3ab33 Bug 1729241 - Pt 3 - Make spatial node indices an opaque type r=gfx-reviewers,kvark
Since spatial node indices will become opaque handles in future,
remove the last part of code outside `spatial_tree` that relies
on the index. In this case, switch the hit-testing code to use
the spatial node indices as a hash key. This is unlikely to have
any noticeable performance impact since hit-tests are relatively
rare, and generally only access a small number of spatial nodes.

Differential Revision: https://phabricator.services.mozilla.com/D124706
2021-09-09 22:04:17 +00:00
Glenn Watson 54261f3c11 Bug 1729241 - Pt 2 - Refactor spatial tree accessors and update r=gfx-reviewers,kvark
Previously, the GPU transform palette always stored the local ->
world transform for each spatial node with O(1) access time.

This won't be feasible in future when spatial nodes are retained
and stored with opaque handles.

Although this was previously a small optimization, it's no longer
important. With picture caching and raster roots, querying the
local -> world transform should be relatively rare (and even rarer
once all surfaces establish raster roots).

We still retain the optimization that querying an identity transform
(where the from == to spatial node) avoids a hash lookup and always
resolves to the first transform in the palette, since this is quite
common.

Differential Revision: https://phabricator.services.mozilla.com/D124595
2021-09-09 22:04:17 +00:00
Mike Hommey 2f75037f7a Bug 1727470 - Update builders to rustc 1.55. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D124735
2021-09-09 21:02:28 +00:00
Julian Descottes 52eb0ef956 Bug 1694143 - [remote] Add wdspec tests for log.entryAdded r=webdriver-reviewers,whimboo
Depends on D124834

Differential Revision: https://phabricator.services.mozilla.com/D122529
2021-09-09 20:38:00 +00:00
James Graham 4c89478a70 Bug 1694143 - [remote] Ensure that asyncio event loop outlives webdriver connection r=webdriver-reviewers,whimboo
Depends on D122577

When using the BiDiSession class we need the event loop to live at
least as long as a specific connection, but not necessarily as long as
the BiDISession object itself. Therefore we move the loop parameter
into the start() method, to associate a loop with a specific connection.

In addition, in the tests we make the event loop a global so that it
lives as long as a session; the fixture is updated to reuse the
existing loop where possible. This has the tradeoff that we're more
likely to share a loop between tests, so there is some additional
hidden shared state.

Differential Revision: https://phabricator.services.mozilla.com/D124834
2021-09-09 20:37:59 +00:00
Julian Descottes 5f4903ba53 Bug 1694143 - [remote] Return remove_listener function from wdspec bidi client BiDiSession::add_event_listener r=webdriver-reviewers,whimboo
Depends on D122109

Differential Revision: https://phabricator.services.mozilla.com/D122577
2021-09-09 20:37:59 +00:00
Julian Descottes b362f6f0db Bug 1694143 - [remote] Add log module and support log.entryAdded event r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D122109
2021-09-09 20:37:58 +00:00
Florian Quèze 33aef3e03c Bug 1728866 - Remove the word 'thread' from TaskController thread names, r=bas.
Differential Revision: https://phabricator.services.mozilla.com/D124389
2021-09-09 20:21:45 +00:00
Nicklas Boman 5f03e76d19 Bug 1308103 - Replace PL_strcmp/PL_strncmp with strcmp/strncmp in extensions/pref/autoconfig r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D123880
2021-09-09 19:36:11 +00:00
Nicklas Boman e07e317034 Bug 1308103 - Replace PL_strcmp/PL_strncmp with strcmp/strncmp in xpcom/ and parser/htmlparser/ r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D123879
2021-09-09 19:36:10 +00:00
Nicklas Boman cf71c9bb46 Bug 1308103 - Replace PL_strcmp/PL_strncmp with strcmp/strncmp in dom/events/KeyEventHandler.cpp r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D123878
2021-09-09 19:36:10 +00:00
Nicklas Boman ad454095ed Bug 1308103 - Replace PL_strcmp/PL_strncmp with strcmp/strncmp in netwerk/ r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D123877
2021-09-09 19:36:10 +00:00
Masatoshi Kimura 1b5cf56a3b Bug 1729749 - Handle WM_NCLBUTTONDOWN on the maximize button only if the system title bar is hidden. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D125016
2021-09-09 18:42:43 +00:00
Tetsuharu Ohzeki b04ca01a19 Bug 1729955 - Remove layout.paint_rects_separately. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125105
2021-09-09 18:29:37 +00:00
Mitchell Hentges 7c3b1ef2cb Bug 1725708: `./mach vendor python` should populate from a clean state r=ahal
Rather than deleting the expected target directory of each package
that's being vendored, clear the whole `third_party/python` directory
and re-populate it from scratch.

As part of this, there's an "exclusion" list for packages that can't
be vendored from PyPI.

This has some benefits:
* It'll be harder to forget scraps of files and directories and leave
  them in `third_party/python`.
* The exclusion list makes it more clear which packages are managed
  manually, and the friction it adds to the workflow will guide
  developers to use "requirements.in" instead.

The `test_up_to_date_vendor` test will verify that the vendor directory
is always clean.

Differential Revision: https://phabricator.services.mozilla.com/D123124
2021-09-09 18:18:52 +00:00
Mitchell Hentges a1ee478054 Bug 1725708: Move all possible vendored deps to centralized system r=ahal
Note that, as part of adding this packages to the automated vendoring
system, some dependencies were automatically added - most notably,
dependencies of `taskcluster` that become visible with Python 3.6+.

Also, adds `**/.git` to the exclusions because:
* `.git` is part of our `.hgignore`, but
* `.git` is part of the `aiohttp` `tar.gz` file.

Since the file isn't needed for `pip install`-ing `aiohttp`,
and since we want `./mach vendor python` to be a no-op when there's
no requirement changes, we exclude it.

Differential Revision: https://phabricator.services.mozilla.com/D123122
2021-09-09 18:18:51 +00:00
Mitchell Hentges 7ea956d47f Bug 1724465: Upgrade `virtualenv` to 20.7.2 r=ahal
Note that this patch makes modifications to the vendored
`virtualenv` package by removing the modern `setuptools`
packages, replacing them with `51.2.0`. This is because
`51.3.0` somehow causes xpcshell failures with the following
Python bug: https://bugs.python.org/issue37380

This upgrades:
* `pip` 20.3.1 => 21.2.3
* `setuptools` 51.0.0 => 51.2.0
* `wheel` 0.36.1 => 0.37.0

Differential Revision: https://phabricator.services.mozilla.com/D123120
2021-09-09 18:18:46 +00:00
Mitchell Hentges da7ec2035a Bug 1725708: Remove unused "pep487" vendored package r=ahal
There's no usages of the `pep487` module.

Differential Revision: https://phabricator.services.mozilla.com/D123121
2021-09-09 18:18:45 +00:00
Mitchell Hentges 648d810e4b Bug 1712151: Vendor pystache automatically r=ahal
Add pystache to vendor `requirements.in` so that it's vendored according
to `./mach vendor python` "ignore" rules.
This ensures that sufficient files are vendored such that installing the
package from it's `setup.py` file is possible.

Differential Revision: https://phabricator.services.mozilla.com/D122898
2021-09-09 18:18:45 +00:00
Mitchell Hentges a16f941f30 Bug 1712151: Use compatible version of pyasn1-modules r=ahal
The existing version of `pyasn1-modules` (`0.1.5`) is incompatible with
our version of `pyasn1` (`0.4.8`).

By bumping `pyasn1-modules` to `0.2.8`, we now meet its compatibility
requirements.

Differential Revision: https://phabricator.services.mozilla.com/D122897
2021-09-09 18:18:44 +00:00
Andreea Pavel 3307ea0a87 Bug 1576515 - remove PHC on arm r=bustage-fix on a CLOSED TREE 2021-09-09 22:27:27 +03:00
Doug Thayer ef2740f793 Bug 1728653 - Allow a silent start mode r=bytesized,nalexander,application-update-reviewers,mossop
This will allow starting Firefox in the background, and on Windows will allow
closing the last browser window without killing the main process. There is no
plan for actually using this by default in Firefox proper, but it's needed for
some explorations.

There's more to this work that we'll need - this is just the first step. For
instance, we'll need a real way to actually kill firefox on Windows other than
through the task manager (we'll be putting something in the system tray to
allow this.)

The patch wasn't particularly large, so I didn't split out the rename of
MOZ_APP_SILENT_START to MOZ_APP_SILENT_RESTART - let me know if you'd like me
to do that though and I can.

Differential Revision: https://phabricator.services.mozilla.com/D124249
2021-09-09 18:09:25 +00:00
Andrew Halberstadt 6e0d14a9c9 Bug 1697066 - [ci] Run ccov tasks with fission enabled, r=releng-reviewers,jmaher
Here's the task diff for mozilla-central:
+test-linux1804-64-ccov-qr/opt-mochitest-browser-chrome-swr-fis-e10s
-test-linux1804-64-ccov-qr/opt-mochitest-devtools-chrome-e10s
+test-linux1804-64-ccov-qr/opt-mochitest-devtools-chrome-fis-e10s
-test-linux1804-64-ccov-qr/opt-mochitest-plain-e10s
+test-linux1804-64-ccov-qr/opt-mochitest-plain-fis-e10s
+test-linux1804-64-ccov-qr/opt-mochitest-plain-fis-xorig-e10s
-test-linux1804-64-ccov-qr/opt-web-platform-tests-e10s
+test-linux1804-64-ccov-qr/opt-web-platform-tests-fis-e10s

Note we weren't previously running any ccov browser-chrome tasks on Linux so
that's why no task was removed on that configuration.

Differential Revision: https://phabricator.services.mozilla.com/D124400
2021-09-09 17:29:17 +00:00
Nico Grunbaum ae592e3193 Bug 1729797 - Enable Searchfox indexing of Elm;r=asuth DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124988
2021-09-09 17:14:57 +00:00
Byron Campen f48b2388ae Bug 1683417: Remove tsan suppression and fix race. r=ng,decoder
Also add a thread assertion.

Differential Revision: https://phabricator.services.mozilla.com/D124993
2021-09-09 17:13:36 +00:00
Tim Giles cabe439f32 Bug 1688609 - Add 'titulaire' to cc-name heuristic regex. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D124948
2021-09-09 17:12:23 +00:00
Julian Seward 3294afd2f5 Bug 1725587 - SpiderMonkey `IONFLAGS=codegen` printing: hierarchical created-by markers. r=nbp.
This is an `#ifdef DEBUG` only patch and has no space or time effect on
non-debug builds.  It makes it easier to figure out which part of the SM suite
of code generators, stub generators, etc, created each instruction shown in
the `IONFLAGS=codegen` output.

In the base class of all assemblers, `js::jit::AssemblerShared`, there is a
new field `Vector<const char*> creators_`.  This is a small stack of arbitrary
strings.  Every time a string is pushed onto or popped off the stack, the
stack is printed in the `IONFLAGS=codegen` output.  Crucially, it is
debug-asserted that the stack is non-empty at emission of (almost) every
instruction.  Hence each instruction in the log output is bracketed within at
least one level of text-label.  By suitable choice of the labels, it is
possible to find which part of SM created an instruction with little
difficulty.

Pushing and popping the stack directly is strongly discouraged.  Instead, an
RAII `class AutoCreatedBy` is provided to manage the stack.  Adding
C++-scope-level annotations is then simply a matter of adding lines of the
form `AutoCreatedBy acb(masm, "my tag text");`.

The stacks resulting from the current annotation set have at most three
entries, for example:

  BaselineInterpreterGenerator::generate/interpreter loop/op=Uint24

The patch looks large but is really very simple.  There are the following
logical components, unfortunately interleaved in the patch:

* A large set of `AutoCreatedBy` annotations.  This gives complete coverage
  for code generation on x86, x64, arm, arm64 and mips64, as far as I can
  tell.  This is the vast majority of the patch.

* In `class AssemblerShared` (Assembler-shared.h), new field `creators_` and
  methods `{push,pop,has}Creator` to operate on it.

* Also in Assembler-shared.h, `class MOZ_RAII AutoCreatedBy`, to manage the
  stack.

* The assertions to ensure that the stack is not empty at emission of any
  instruction.

  - for arm64, this is done in `MozBaseAssembler::Emit` (two functions)

  - for arm, this is done in `Assembler::writeInst`

  - for mips64, this is done in `AssemblerMIPSShared::writeInst`

  - for x86 and x64 I failed to find any single place to put such an
    assertion, that also has convenient access to the required
    `AssemblerShared` base class.  Instead these have a best-effort solution:
    assertions have been added to around 20 methods in `AssemblerX86Shared`.
    These cover the most common instructions (loads, stores, reg-reg moves,
    pushes, pops, returns, immediate data, alignment directives).  Although
    this is not complete coverage, in practice it's good enough because it's
    almost impossible to create any piece of code without using at least one
    insn in that group.

Almost all of the implementation is guarded `#ifdef DEBUG`.  The one exception
is constructor `AutoCreatedBy::AutoCreatedBy`.  I did not want to uglify
dozens of places in SM with guards at all its use points.  So instead a dummy
release-build version has been provided:

  inline AutoCreatedBy(AssemblerShared& ash, const char* who) {}

on the basis that an optimising compiler will inline it away completely.

`AssemblerShared::pushCreator` ignores OOM conditions when pushing on the
stack.  This is assumed to be OK since this is a debug-build-only activity.

Differential Revision: https://phabricator.services.mozilla.com/D123854
2021-09-09 17:11:35 +00:00
Tetsuharu Ohzeki c35fc5e1a3 Bug 1729935 - Remove unused layout.smaller-painted-layers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D125091
2021-09-09 17:06:33 +00:00
Yury Delendik 946659ce68 Bug 1672343 - Ignore one of the SIMD shuffle operands if it is not used. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D124382
2021-09-09 16:40:44 +00:00
Yury Delendik 341290c253 Bug 1672343 - Move shuffle analysis to the MIR. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D124245
2021-09-09 16:40:44 +00:00
Molly Howell cbafe2ba39 Bug 1727916 - Convert several customizable toolbar item names to sentence case. r=fluent-reviewers,flod,emalysz
This required migrating several strings to Fluent, and the bulk of this patch
is those migrations. The rest of the items matched up with an entry in the app
menu, so those items were switched over to use the app menu strings, and one
had to be copied in order to avoid adding a tooltip to the app menu item.

Differential Revision: https://phabricator.services.mozilla.com/D124270
2021-09-09 16:39:37 +00:00
Emilio Cobos Álvarez 90420e5429 Bug 1729813 - Update rayon to pick up a newer crossbeam version in style/webrender. r=nical
It was downgraded to investigate some windows crashes which ended up
being a crossbeam issue. So update it again to get fixes to some
crossbeam races.

Differential Revision: https://phabricator.services.mozilla.com/D125051
2021-09-09 16:37:04 +00:00
Marco Bonardo 0e517f8cee Bug 1727261 - Timeout Sqlite transaction async functions to properly roll back and interrupt the transaction. r=asuth
If the passed-in async function never resolves the transaction could stay alive forever, this timeouts after
TRANSACTIONS_QUEUE_TIMEOUT_MS (5 minutes as of now) and roll backs the transaction.
A telemetry keyed scalar is added to track callers causing these timeouts and optimize them in the future.

Differential Revision: https://phabricator.services.mozilla.com/D124187
2021-09-09 16:22:50 +00:00
Marco Bonardo f89d5a431e Bug 1727261 - Replace OS.* usage with IOUtils in test_sqlite.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D124186
2021-09-09 16:22:49 +00:00
Marco Bonardo 8afff2dd62 Bug 1727261 - Allow to control Sqlite.jsm logging through a pref. r=asuth,Standard8
Add a pref to manage Sqlite.jsm logging, default to reporting Errors.
Change some of the logging to more coherently report warnings, errors and debug info.
Reuse the same logger for all the objects, just change the prefix.

Depends on D124184

Differential Revision: https://phabricator.services.mozilla.com/D124916
2021-09-09 16:22:49 +00:00
Marco Bonardo 871a118f19 Bug 1727261 - Rename Sqlite.jsm::_hasInProgressTransaction to _initiatedTransaction. r=asuth
initiatedTransaction seems less confusing about the fact Sqlite.jsm initiated this
transaction, rather than something else (that may happen with wrapped connections).

Differential Revision: https://phabricator.services.mozilla.com/D124184
2021-09-09 16:22:48 +00:00
Ryan Hunt 81a19d221d Bug 1721686 - Add test for exposed interfaces on WebAssembly namespace. r=smaug
This commit modifies test_interfaces.js to also test the exposed interfaces
in the WebAssembly namespace. We have conditional features that we'd like
to have confidence that we're not accidentally exposing to web content.

Currently there are:
  * WebAssembly exceptions, enabled only in nightly with a default-off pref
  * mozIntGemm accelerator function, available only in system or addon principals

Depends on D120731

Differential Revision: https://phabricator.services.mozilla.com/D120732
2021-09-09 16:20:07 +00:00
Asumu Takikawa 23fa492341 Bug 1728897 - Update Wasm try-delegate semantics to match spec r=rhunt
The semantics of the try-delegate Wasm exception handling instruction
was recently changed in this spec discussion:

  https://github.com/WebAssembly/exception-handling/issues/176

This patch adjusts compilation and validation to match the new
semantics, which allows delegate to target any block.

Differential Revision: https://phabricator.services.mozilla.com/D124424
2021-09-09 16:19:03 +00:00
Steve Fink 5854963fb3 Bug 1726619 - Replace MOZ_LOW_PARALLELISM_BUILD with automated heuristic parallelism based on memory usage, and use for hazard builds r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D123147
2021-09-09 16:15:11 +00:00