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

731498 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu 83bf4bc5a3 Bug 1671641 - Make `dom/file` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94082
2020-10-21 20:58:07 +00:00
Lee Salzman 5b66b078c2 Bug 1671071 - support HDR formats in SWGL. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D94304
2020-10-22 03:59:17 +00:00
Mihai Alexandru Michis 74d0ddf28a Backed out 3 changesets (Bug 1669588) for causing mochitest failures in test_group_zoomToFocusedInput.html
CLOSED TREE

Backed out changeset 38f373bf1d36
Backed out changeset f21fc6d5768f
Backed out changeset c429989882c2
2020-10-22 06:44:43 +03:00
Mihai Alexandru Michis f11e661f24 Backed out changeset ba261cf25651 (bug 727668) for causing marionette failures in test_screenshot.py
CLOSED TREE
2020-10-22 06:13:54 +03:00
Kartikaya Gupta d845262402 Bug 1672237 - Update fission helpers to use subtestFailed. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94169
2020-10-22 00:47:48 +00:00
Kartikaya Gupta 49b46719f7 Bug 1672237 - Add a subtestDone to the fission helper. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94168
2020-10-22 00:47:45 +00:00
Kartikaya Gupta 51e5032b63 Bug 1672237 - Ensure cleanup is done regardless of success or failure. r=botond
Unrelated robustification that I saw while writing the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D94167
2020-10-22 00:47:43 +00:00
Kartikaya Gupta 484fa67dde Bug 1672237 - Replace then(subtestDone) with then(subtestDone, subtestFailed). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94166
2020-10-22 00:47:35 +00:00
Kartikaya Gupta 02388db31c Bug 1672237 - Replace finally(subtestDone) with then(subtestDone, subtestFailed). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94165
2020-10-22 00:47:32 +00:00
Kartikaya Gupta 3f50e49097 Bug 1672237 - Add a subtestFailed function, similar to SimpleTest.finishWithFailure. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94164
2020-10-22 00:47:24 +00:00
Kartikaya Gupta 50abea7f2a Bug 1672237 - Update most remaining APZ mochitests to use SimpleTest.finishWithFailure. r=botond
A few tests do the SimpleTest.waitForExplicitFinish/SimpleTest.finish dance
without a promise/async chain. This updates those tests to follow a more
async style and to send failures through SimpleTest.finishWithFailure.

Note that the conversion to async is done "locally" by wrapping callback-taking
helper function calls in promises. In some cases it probably makes sense to
modify the helper function itself to return a promise, but that's out of scope
for this bug, so I'm punting those kinds of changes to a follow-up bug.

Differential Revision: https://phabricator.services.mozilla.com/D94163
2020-10-22 00:47:22 +00:00
Kartikaya Gupta 2d9f6ffc7e Bug 1672237 - Use SimpleTest.finishWithFailure in various APZ mochitests. r=botond
This updates APZ mochitests that are using .then(SimpleTest.finish) or
.finally(SimpleTest.finish) to instead pass the rejection/exception case
to SimpleTest.finishWithFailure.

Differential Revision: https://phabricator.services.mozilla.com/D94162
2020-10-22 00:47:20 +00:00
Kartikaya Gupta c21bbf9fd1 Bug 1672237 - Introduce a SimpleTest.finishWithFailure wrapper. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94161
2020-10-22 00:47:12 +00:00
Mike Hommey 91d99a2d66 Bug 1671376 - Disable -Wmissing-braces on clang < 6. r=firefox-build-system-reviewers,dmajor
The warning is broken in older versions of clang. It also turns out we
were disabling it locally for some directories because of this very
problem.

A few local disable rules stay under accessible/ because they do hide
actual warnings from code generated by MIDL.

Differential Revision: https://phabricator.services.mozilla.com/D94262
2020-10-22 01:31:19 +00:00
Mike Hommey 198ea0303d Bug 1671569 - Normalize Xcode clang version to the underlying plain clang version. r=firefox-build-system-reviewers,rstewart
We used to have a complicated scheme to figure out the minimum supported
version of clang on OSX, based on some compiler feature, which wouldn't
allow to do other version checks further down the line.

The main blocker for better tests was to be able to distinguish between
Xcode clang and plain clang, which turns out to be possible with the
__apple_build_version__ define.

We still need to map versions manually, but it's better than the current
status quo.

Differential Revision: https://phabricator.services.mozilla.com/D94261
2020-10-22 01:31:17 +00:00
Jeff Muizelaar 6df3bcb6d8 Bug 1672309 - Port remaning gtests to Rust. r=aosmond
I've left the C++ ones for now.

Differential Revision: https://phabricator.services.mozilla.com/D94246
2020-10-22 01:30:48 +00:00
Mike Hommey 2817852926 Bug 1672328 - Allow to pull rustc builds from upstream CI. r=firefox-build-system-reviewers,rstewart
This is useful to bisect problems through our own CI.

Differential Revision: https://phabricator.services.mozilla.com/D94267
2020-10-22 01:11:17 +00:00
Mihai Alexandru Michis 8c19f8a517 Bug 1669588 - Remove unnecessary rebase conflict line. a=fix
CLOSED TREE
2020-10-22 04:37:00 +03:00
Botond Ballo 9c093cfabe Bug 1669588 - Delay the ZoomToRect call in ZoomToFocusedInput until after a refresh if appropriate. r=kats
ZoomToFocusedInput calls ScrollContentIntoView() which may queue up
one or more main-thread scroll position updates that get sent to
APZ as part of the next transaction.

If such updates were produced, we want the ZoomToRect call to arrive
at APZ after the updates, otherwise the updates can cancel the
zoom animation that APZ starts in response to the ZoomToRect.

Differential Revision: https://phabricator.services.mozilla.com/D93898
2020-10-22 01:25:59 +00:00
Botond Ballo df4a09892b Bug 1669588 - Factor out a OneShotPostRefreshObserver utility class. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D93897
2020-10-22 01:25:46 +00:00
Jean-Yves Avenard b11c79c581 Bug 1672553 - Don't use AudioTrimmer if audio decoder creation failed. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D94400
2020-10-22 01:16:05 +00:00
Sam Foster 486423772b Bug 1666523 - Update paperSizeUnit whenever we update paper size settings. r=mstriemer
* Only use paperWidth/paperHeight values from the settings when searching for a paper size match
* Calculate unit-appropriate values for paperWidth, paperHeight and write them to settings whenever a paper size is selected
* Always write paperSizeUnit and the width/height values to settings to ensure any bad data from prefs is overwritten

Differential Revision: https://phabricator.services.mozilla.com/D91021
2020-10-22 01:03:12 +00:00
Kartikaya Gupta 3839ef0be5 Bug 1665643 - Rename a couple of WR jobs to avoid the target task filter. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D94196
2020-10-22 01:01:50 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca 03c2fad3dc Backed out changeset 02f6caf121bb (bug 1672309) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:50:06 +03:00
Dorel Luca 08166f3a25 Backed out 2 changesets (bug 1669588) for Backout conflicts with Bug 1654103. CLOSED TREE
Backed out changeset d6360093fb5c (bug 1669588)
Backed out changeset b2b9b7986865 (bug 1669588)
2020-10-22 03:49:04 +03:00
Dorel Luca 5d3bd01bca Backed out 2 changesets (bug 1440203) for Backout conflicts with Bug 1654103. CLOSED TREE
Backed out changeset 6e44c037b2dc (bug 1440203)
Backed out changeset ab11665d8607 (bug 1440203)
2020-10-22 03:47:17 +03:00
Dorel Luca 26941cf2f5 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Jeff Muizelaar 577c167863 Bug 1672309 - Port remaning gtests to Rust. r=aosmond
I've left the C++ ones for now.

Differential Revision: https://phabricator.services.mozilla.com/D94246
2020-10-22 00:05:08 +00:00
Hiroyuki Ikezoe 6fd5944648 Bug 1669933 - Register cloning paused animations to PendingAnimationTracker to make sure the animations are painted in printing documents. r=boris
Without PendingAnimationTracker, we can't make the refresh driver keep ticking
for the animations until we are ready to paint the printing documents. In other
words we do stop ticking [1] in DocumentTimeline::MostRecentRefreshTimeUpdated.

[1] https://searchfox.org/mozilla-central/rev/25d5a4443a7e13cfa58eff38f1faa5e69f0b170f/dom/animation/DocumentTimeline.cpp#168,183-192

Differential Revision: https://phabricator.services.mozilla.com/D94256
2020-10-21 18:10:10 +00:00
Hiroyuki Ikezoe 23bc9533c0 Bug 1669933 - Use same frame structure as the test HTML in pseudo-animations-print-ref.html. r=boris
The different structure causes fuzzy result.

Depends on D93020

Differential Revision: https://phabricator.services.mozilla.com/D94255
2020-10-21 18:01:36 +00:00
Hiroyuki Ikezoe fc8bd7ba64 Bug 1669933 - Migrate reftests for animation in print document as wpt print test. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D93020
2020-10-22 00:02:10 +00:00
Makoto Kato fdfea00747 Bug 1672269 - NextWord shouldn't return empty. r=jfkthame
After landing bug 425915, we use NextWord instead of BreakInBetween.
NextWord is possible to return empty string (offset equals to current
position). So it shouldn't return empty string.

Differential Revision: https://phabricator.services.mozilla.com/D94266
2020-10-21 13:10:29 +00:00
Jed Davis 61a83c3467 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

The support code for Android, which doesn't support shm_open and can't
use the memfd backend because of issues with its SELinux policy (see bug
1670277), has been reorganized to reflect that we'll always use its own
API, ashmem, in that case.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-21 23:34:46 +00:00
Jed Davis db70ad65d6 Bug 1440203 - Prelude: ignore memfd for the "main thread I/O" test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D90604
2020-10-21 23:33:35 +00:00
Botond Ballo b85fad53d3 Bug 1669588 - Delay the ZoomToRect call in ZoomToFocusedInput until after a refresh if appropriate. r=kats
ZoomToFocusedInput calls ScrollContentIntoView() which may queue up
one or more main-thread scroll position updates that get sent to
APZ as part of the next transaction.

If such updates were produced, we want the ZoomToRect call to arrive
at APZ after the updates, otherwise the updates can cancel the
zoom animation that APZ starts in response to the ZoomToRect.

Differential Revision: https://phabricator.services.mozilla.com/D93898
2020-10-21 23:10:03 +00:00
Botond Ballo 944a3748f5 Bug 1669588 - Factor out a OneShotPostRefreshObserver utility class. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D93897
2020-10-21 23:09:50 +00:00
alwu 63198ca57a Bug 1672456 - change 'test_audioNotification_reloadMedia.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test. In addition, I didn't add the last step of the original test in `testSoundIndicatorShouldDisappearWhenAbortingMedia` because that scenario has been contained in the last step of `testPerformPlayOnMediaLoadingNewSource`.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94352
2020-10-21 20:39:08 +00:00
alwu 347afe3353 Bug 1672453 - change 'test_audioNotification_pauseBeforeReload.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94351
2020-10-21 20:38:30 +00:00
alwu 5103e8701f Bug 1672450 - change 'test_audioNotificationStream.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94350
2020-10-21 20:30:45 +00:00
alwu 26177fd994 Bug 1672443 - change 'test_audioNotificationStopOnNavigation.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94349
2020-10-21 21:21:27 +00:00
alwu 9dae971a4b Bug 1672441 - change 'test_audioNotificationWithEarlyPlay.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test.

In addition, the original test is testing if the sound indicator can show before calling play on media before it finishes loading metadata.  The original test is using `preload=metadata`, but it seems that using `preload=none` is closer to the scenario they wanted to test. So I made that change in the browser test case.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94335
2020-10-21 20:19:39 +00:00
alwu 04540757bd Bug 1672438 - change 'test_audioNotificationSilent_audioFile.html' to browser test and move it to the dedicated folder. r=bryce
Per [1], change this test to a browser test.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1672292#c0

Differential Revision: https://phabricator.services.mozilla.com/D94331
2020-10-21 20:15:32 +00:00
Mike Conley 6f44750a41 Bug 1647757 - Terminate the about:home startup cache worker when experiencing memory-pressure. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D94391
2020-10-21 22:44:50 +00:00
Gijs Kruitbosch cdd84eee88 Bug 1659293 - fix cert viewer for certificates without a common name, r=prathiksha,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D94215
2020-10-21 22:09:07 +00:00
Jeff Muizelaar d84e779913 Bug 1672451 - Drop Nvidia driver blocklist. r=aosmond
This was just a risk reduction. We don't need it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D94339
2020-10-21 19:17:42 +00:00
lonocvb 87625add43 Bug 1517385 - Use "visibility: hidden" to keep the frame of AccessibleCaret alive. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D94072
2020-10-21 21:05:18 +00:00
Ricky Stewart 8b352f1843 Bug 1672023 - Remove excluded files from `black.yml` r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Aaron Klotz e70c58a2f4 Bug 1668892: Disable operator-dictionary-spacing-004.html Operator dictionary chunk 1 - lspace/rspace on Android; r=bc
This test is mysteriously failing under a try push with e10s-multi enabled on
Android. Since MathML is not super-important to us, I'd like to disable it on
Android and file a follow-up bug in MathML for the failure.

Differential Revision: https://phabricator.services.mozilla.com/D94151
2020-10-21 20:24:52 +00:00