Commit Graph

724480 Commits

Author SHA1 Message Date
Kai Engert
c6ee293115 Bug 1660371 - Uplift initial NSPR 4.29 beta snapshot. r=glandium UPGRADE_NSPR_RELEASE
Differential Revision: https://phabricator.services.mozilla.com/D88589
2020-08-28 21:31:02 +00:00
James Teh
2f11033294 Bug 1660359 part 2: Allow a11y focus on a remote print preview OuterDocAccessible. r=jwatt,yzen
Print preview documents don't get DocAccessibles because this currently causes crashes and doesn't provide much value.
However, we still want to tell a11y clients something useful when a print preview document gets focus, rather than a11y focus just going nowhere.
Therefore, we allow a11y focus to land on the OuterDocAccessible (browser element) in this case.

Differential Revision: https://phabricator.services.mozilla.com/D87997
2020-08-27 06:12:25 +00:00
Matthew Gaudet
08293afb21 Bug 1659595 - Avoid creating atoms for BigInts when parsing r=jorendorff,tcampbell,jandem
This parses BigInt property names as if they were computed, which means we don't end up neeeding to atomize
them.

This does mean that BigInt property names take a slower path on construction, meaning that it is possible
to measure a slowdown on executing the construction of a huge literal with thousands of BigInt properties.

This patch adds one bit to ParseNode.h, but does not change the overall size of parse nodes, as it fits
into padding around pre-existing bitfields.

Differential Revision: https://phabricator.services.mozilla.com/D87627
2020-08-28 20:56:12 +00:00
Ricky Stewart
32252b6aa5 Bug 1660353 - Remove subprocessing into global Python 3 in symbols_archive.py r=mhentges,froydnj
This was always a temporary hack because getting `zstandard` installed into the `objdir` `virtualenv`s was impossible. With the changes made in bug 1656993, this is possible now, so we can remove all this.

Differential Revision: https://phabricator.services.mozilla.com/D87809
2020-08-21 15:04:24 +00:00
Ricky Stewart
408991e871 Bug 1660351 - Tweak inherit-from-parent-environment implementation in virtualenv.py r=ahal
The intended behavior of `inherit-from-parent-environment` is that the packages from the parent Python environment are available to the sub-`virtualenv`. The implementation of that behavior thus far has been around "site directories", the idea being that custom (non-stdlib) packages are likely to be installed in the "site directory". The limitation of this approach is that there's no one location, in practice, where packages are installed, and it's hard to enumerate a static list of all those possible locations across all platforms.

This patch circumvents the issue by ignoring the "site directory" question entirely and just looking at `sys.path`. If we're inheriting from the parent environment when creating a `virtualenv`, we just ask the parent Python what its `sys.path` is and configure the `virtualenv`'s `sys.path` on startup.

Differential Revision: https://phabricator.services.mozilla.com/D87808
2020-08-27 21:48:06 +00:00
Ricky Stewart
1f935a2867 Bug 1660548 - Don't globally install Python packages for linting r=ahal
`flake8`, `black`, and `pylint` are all installed in `virtualenv`s when running `mach lint`, so installing these packages globally on image setup isn't necessary.

Differential Revision: https://phabricator.services.mozilla.com/D87904
2020-08-21 21:03:28 +00:00
Nika Layzell
88e2d58a31 Bug 1661786 - Part 2: Correct statement about JSWindowActorChild lifetime, r=neha
Differential Revision: https://phabricator.services.mozilla.com/D88656
2020-08-28 20:50:18 +00:00
Nika Layzell
3a53a0e881 Bug 1661786 - Part 1: Move JS actor documentation into it's own folder, r=neha
Differential Revision: https://phabricator.services.mozilla.com/D88655
2020-08-28 21:06:12 +00:00
Kartikaya Gupta
cc022528e0 Bug 1661755 - Don't store a NotSpecified value, use the equivalent None value instead. r=tnikkel
This should not have any functional effects, but it maintains a useful invariant
that the stored field is never NotSpecified. NotSpecified should only be used
as a default value for function parameters, and converted to some other origin
when "at rest" in the field.

Differential Revision: https://phabricator.services.mozilla.com/D88665
2020-08-28 20:34:41 +00:00
Kartikaya Gupta
819129d5a5 Bug 1661755 - Update logging. r=tnikkel
This looks like a holdover from when we added ScrollMetadata as a superobject
of FrameMetrics.

Depends on D88648

Differential Revision: https://phabricator.services.mozilla.com/D88649
2020-08-28 20:43:50 +00:00
Kartikaya Gupta
8223de6eea Bug 1661755 - Flip the ref and test setups for scroll-behavior-6.html. r=tnikkel
For all the other scroll-behavior-* tests, the "complex" behaviour is the "test"
and the "let's scroll these things to their intended destination" behaviour is
the "ref", as one would expect. Except for some reason in scroll-behavior-6, the
"ref" branch is the one doing all the tricky scrolling things and the other
branch has the simple intended outcomes. This patch inverts the branches so
that the test behaves more as expected.

Differential Revision: https://phabricator.services.mozilla.com/D88648
2020-08-28 20:43:47 +00:00
Joel Maher
bcb3e6fc6e Bug 1660625 - fix wpt expectations for windows 10 on hardware to pass on ccov. r=bc
fix wpt expectations for windows 10 on hardware to pass on ccov.

Differential Revision: https://phabricator.services.mozilla.com/D88662
2020-08-28 20:33:58 +00:00
Ricky Stewart
8ae4bd16ba Bug 1661762 - strengthen recognize_repo_paths checks in files.py and hg.py r=mhentges,froydnj
We `normpath()` the `_root` path when we save it, but the input `path` to `get()` is not necessarily also normalized. Normalizing it prevents unnecessary test failures.

Differential Revision: https://phabricator.services.mozilla.com/D88635
2020-08-28 19:19:56 +00:00
Noemi Erli
a7ded3ce73 Backed out 2 changesets (bug 1661786) for causing lint failure in jsactors.rst CLOSED TREE
Backed out changeset efa00a72e576 (bug 1661786)
Backed out changeset acd7c88d4fb9 (bug 1661786)
2020-08-28 23:40:35 +03:00
Narcis Beleuzu
f81ec36d9c Backed out 3 changesets (bug 1660340, bug 1641674, bug 1660896) for causing Btime failures on Android 7.0 . CLOSED TREE
Backed out changeset d445d03a6ca0 (bug 1660340)
Backed out changeset 94c19736f73e (bug 1660896)
Backed out changeset 0ba092f930cc (bug 1641674)
2020-08-28 23:31:52 +03:00
Agi Sferro
672892c504 Bug 1661480 - Restore scrolling position and form data. r=droeh
When migrating RestoreState to actors we didn't consider that the child actor
gets recreated at every navigation, as its lifetime is tied to the inner
window.

This means that restoring state in one step is not possible, as restoring the
history will trigger a navigation from `about:blank` to the restored page.

To achieve this, we split restoring in two steps and we keep the state on the
parent actor instead of the child.

We move the restoring logic to a newly added GeckoViewContent parent actor,
which is more readibly accessible from both geckoview.js and
GeckoViewContent.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D88637
2020-08-28 20:19:44 +00:00
Kartikaya Gupta
49c359630a Bug 1661798 - Have the LinkedList destructor emit the buggy template specialization. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88663
2020-08-28 20:07:26 +00:00
Aki Sasaki
172cef5128 Bug 1661637 - upload image_builder:5.0.0 r=releng-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D88660
2020-08-28 19:34:14 +00:00
Bob Owen
f571086162 Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith
Differential Revision: https://phabricator.services.mozilla.com/D88302
2020-08-28 19:31:07 +00:00
Nika Layzell
7fc8ed0179 Bug 1661786 - Part 2: Correct statement about JSWindowActorChild lifetime, r=neha
Differential Revision: https://phabricator.services.mozilla.com/D88656
2020-08-28 19:12:59 +00:00
Nika Layzell
2a72dfc514 Bug 1661786 - Part 1: Move JS actor documentation into it's own folder, r=neha
Differential Revision: https://phabricator.services.mozilla.com/D88655
2020-08-28 19:12:57 +00:00
Bob Owen
c17154d7f3 Bug 1661731: Fix use of nsAutoPrinter in nsPrinterWin::DefaultSettings. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D88621
2020-08-28 18:44:12 +00:00
Emily McDonough
08abe47ebf Bug 1661785 - Check for both CUPS_PRINT_COLOR_MODE_COLOR and CUPS_PRINT_COLOR_MODE_AUTO for CUPS color printing support. r=nordzilla
This may fix bug 1660658. It's pretty harmless if it turns out to be redundant
to make this check.

Differential Revision: https://phabricator.services.mozilla.com/D88654
2020-08-28 19:15:21 +00:00
Micah Tigley
b6fba802e1 Bug 1660060 - Add a keypress listener to the percentScale element. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D88446
2020-08-28 18:58:24 +00:00
Ricky Stewart
89acae267e Bug 1661783 - Disable test_rst.py on Linux r=ahal
This test begins to fail due to a `pip` installation issue after bug 1660351. It's already disabled on macOS (also due to what the comment says is a `pip` installation issue), so it's very possible the custom `requirements.txt` that this test installs is deficient in some way that surfaces in certain `virtualenv`s under certain circumstances. I can't diagnose the failure, but what I have seen is that bug 1659539 will fix that problem entirely with no extra intervention required, so we should be able to re-enable this for Linux (and maybe macOS as well?) when that patch lands.

Differential Revision: https://phabricator.services.mozilla.com/D88653
2020-08-28 18:57:20 +00:00
Adam Vandolder
833163a200 Bug 1658318 - Add Reflect[@@toStringTag]. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D87874
2020-08-28 16:33:02 +00:00
Narcis Beleuzu
3361c24c23 Backed out 7 changesets (bug 1651705) for mochitest failures on test_resizers_resizing_elements.html . CLOSED TREE
Backed out changeset 7fd32a3fb6e7 (bug 1651705)
Backed out changeset de4edbcb15c1 (bug 1651705)
Backed out changeset 531e71369f68 (bug 1651705)
Backed out changeset 84590e96de88 (bug 1651705)
Backed out changeset 7d9d2d44b2ee (bug 1651705)
Backed out changeset 9ffca762753c (bug 1651705)
Backed out changeset 2d79f4348b36 (bug 1651705)
2020-08-28 23:06:39 +03:00
Luca Greco
bf5f2935f7 Bug 1568597 - RemoteWorkerManager::SelectTargetActorForSharedWorker should select an actor that is kept alive. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D88412
2020-08-28 18:11:22 +00:00
Luca Greco
4190f9f233 Bug 1568597 - Defer RemoteWorkerService init to ContentChild::RecvRemoteType. r=asuth,nika
I did notice this issue while investigating a test failure on
browser/components/contextualidentity/test/browser/browser_serviceworkers.js

The issue seems to be triggered when we are using a preallocated child process
for a call to RemoteWorkerManager::LaunchNewContentProcess, when that happens
we do expect that the new process is going to call RemoteWorkerManager::RegisterActor
once its RemoteWorkerService is being initialized in the new child process,
but when we are reusing a preallocated child process the RemoteWorkerService
was already initialized and RegisterActor was already called while the
remoteType for the child process was still "prealloc".

This patch fix the failure by deferring initializing RemoteWorkerService in
child processes to when we do receive a non "prealloc" remoteType in
ContentChild::RecvRemoteType.

Differential Revision: https://phabricator.services.mozilla.com/D86590
2020-08-28 17:59:15 +00:00
Luca Greco
6d677ee9c2 Bug 1568597 - Make RemoteWorkerManager::GetRemoteType/MatchRemoteType fission-aware. r=asuth,nika
Differential Revision: https://phabricator.services.mozilla.com/D81373
2020-08-28 17:58:58 +00:00
Luca Greco
5422f2e135 Bug 1568597 - Allow extension principal workers to run in the main process if remote extensions are disabled by pref. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D86710
2020-08-28 17:58:37 +00:00
Andrew Halberstadt
3c28444d2d Bug 1660506 - Move backstop determination to the decision task and store it in a parameter, r=marco,taskgraph-reviewers,jmaher
We want to be able to retroactively tell whether a push was a backstop or not.
This patch stores whether or not a push was a "backstop" directly in the
parameters. The optimization strategy now simply returns 'not
params["backstop"]'.

For simplicity, I'm not counting the 'optimized-backstop' as a backstop. It's
unclear if we'll want to be able to detect these types of the pushes in the
future or not, but we can cross that bridge when we get there.

Differential Revision: https://phabricator.services.mozilla.com/D88151
2020-08-26 21:56:05 +00:00
Andrew Halberstadt
0def0cc961 Bug 1660506 - Drop the 'remove_on_projects' feature from the Backstop optimization, r=marco
In the past, the 'backstop' optimization was applied to tasks by default across
all projects, even though it only really made sense on autoland. To choose what
would happen on non-autoland branches, we invented this 'remove_on_projects'
concept.

These days, we only apply the backstop optimization in the first place for
autoland. So 'remove_on_projects' is no longer necessary.

Depends on D88149

Differential Revision: https://phabricator.services.mozilla.com/D88150
2020-08-26 19:11:22 +00:00
Andrew Halberstadt
81eecf7f8c Bug 1660506 - Simplify the backstop optimizations, r=marco
This patch cleans up some of the backstop strategy names. Specifically:

1. Rename 'full-backstop' -> 'backstop'. The old 'backstop' algorithm was
unused anyway, so there is no conflict. It is also just defined directly in
the decorator rather than using 'Alias'.

So now rather than 'full-backstop' and 'optimized-backstop', it's just
'backstop' and 'optimized-backstop'.


2. Remove 'backstop-X-hours-Y-minutes' strategies, and replace them with
the corresponding 'push-interval-X' strategy.

This means we lose the time component in the 'optimized-backstop'. But it isn't
a problem, because we shouldn't be using a time component there at all anyway
(we should just use it with the 'backstop').

Differential Revision: https://phabricator.services.mozilla.com/D88149
2020-08-26 21:40:05 +00:00
Keefer Rourke
b046b1150d Bug 1660835: Add LZ4 compression options to IOUtils read and write methods r=barret,Gijs
NB: This change breaks the IOUtils.read API, requiring that an options
dictionary is passed as the optional second argument, rather than a number
indicating the max bytes to read. This option is not used out of tests however.

Differential Revision: https://phabricator.services.mozilla.com/D88177
2020-08-28 15:57:44 +00:00
Keefer Rourke
9502c4fa57 Bug 1660328: Implement IOUtils::getChildren method r=barret,Gijs
This change introduces a `getChildren` method to the IOUtils interface, which
returns an array of absolute paths pointing to the immediate children of a
directory.

This method should provide equivalent (though not the same) functionality to
iterating directory entries using a new `OS.File.DirectoryIterator`.

Differential Revision: https://phabricator.services.mozilla.com/D87875
2020-08-28 15:49:58 +00:00
Kartikaya Gupta
3fe67ce9e6 Bug 1661492 - Auto-advance migration in the absence of further action. r=jaws,botond
This advances the migration by 25% each release, starting in release 83 and
completing in 86. The migration code can be removed in the 86 nightly cycle
(or anytime after that).

Differential Revision: https://phabricator.services.mozilla.com/D88453
2020-08-28 18:01:33 +00:00
Eitan Isaacson
b07025169e Bug 1661579 - Use previous frame when searching backwards at start of frame. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D88489
2020-08-28 17:55:04 +00:00
Jonathan Watt
9eda8c7403 Bug 1661730. Allow std::function to be specified as a native type in XPIDL. r=nika
std::function requires parenthesis to be supported in the type.

Differential Revision: https://phabricator.services.mozilla.com/D88636
2020-08-28 17:51:36 +00:00
Iain Ireland
91d7a5c7cc Bug 1661530: Attach FunApply and FunCall before scripted calls r=jandem
Despite looking directly at this code while adding the assertion in bug 1660553, I somehow missed that scripted calls were being attached too early. It's not a problem for Ion, because we only inline `FunCall`/`FunApply` if we're calling the jsnative, but it matters for Warp.

Differential Revision: https://phabricator.services.mozilla.com/D88463
2020-08-28 07:53:09 +00:00
Tom Tung
b5b7c7cac5 Bug 1659053 - Have a test to verify the fix; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D88026
2020-08-28 15:32:58 +00:00
Tom Tung
29ea2d7f88 Bug 1659053 - Restore or remove the origin directory if its directory name is inconsistent with the origin in the directory metadta file; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D88025
2020-08-28 17:38:35 +00:00
Anny Gakhokidze
6d995898a0 Bug 1589102 - Part 17: Don't set chrome context in Marionette reftest unit tests r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D88518
2020-08-28 17:32:16 +00:00
Anny Gakhokidze
652e7457ff Bug 1589102 - Part 16: Fix devtools/sharedbrowser_saveHeapSnapshot_e10s_01.js to wait for the browser to load, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D88232
2020-08-28 17:21:31 +00:00
Anny Gakhokidze
836a19584f Bug 1589102 - Part 15: Make test_continuous_wheel_events.html wait for load event, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D88229
2020-08-28 17:21:29 +00:00
Anny Gakhokidze
af962e7815 Bug 1589102 - Part 14: Unskip test test_window_cross_origin_props.html and mark as failing, r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D88228
2020-08-28 17:21:19 +00:00
Anny Gakhokidze
7e764895d7 Bug 1589102 - Part 13: Fix a race in process switching code due to reftest.js forcing a process switch, r=kmag
The race occurs when the parent changes the owner process for a BC, but the
child does not know about it and proceeds to call SetCurrentInnerWindowId on a
BC it no longer owns. To fix this, in child process, whenever we call
SetCurrentInnerWindowId on a BC, check that the BC is in process and that the
docshell has not been notified about an upcoming process change.

Differential Revision: https://phabricator.services.mozilla.com/D87934
2020-08-28 17:21:17 +00:00
Anny Gakhokidze
52ff3841e4 Bug 1589102 - Part 12: Fix file_scrollRestoration.html to wait for about:blank to load before proceeding, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D87933
2020-08-28 17:21:14 +00:00
Anny Gakhokidze
f90a2a6d1e Bug 1589102 - Part 11: Make navigating-across-documents/010.html wait for load before running test steps, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87932
2020-08-28 17:21:12 +00:00
Anny Gakhokidze
abc4db9fa9 Bug 1589102 - Part 10: Fix tests failing due to not waiting for the window load events, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D87328
2020-08-28 17:21:09 +00:00