Commit Graph

786971 Commits

Author SHA1 Message Date
Punam Dahiya
548e1083fa Bug 1700527 - Fix test to check link opening in new tab r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D140149
2022-03-03 02:16:29 +00:00
Neil Deakin
6ba6569abc Bug 1751935, ensure size constraints are accounted for when applying aspect ratio on Windows, r=cmartin
Differential Revision: https://phabricator.services.mozilla.com/D140062
2022-03-03 01:21:54 +00:00
Dão Gottwald
fbc72a3cf2 Bug 1757567 - Use full-opacity focus outline for the find bar, stop overloading outline for the "not found" status. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D139942
2022-03-02 23:07:22 +00:00
Brendan Dahl
a16f2c5d0a Bug 1757825 - Update pdf.js to version 2.14.13 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D140107
2022-03-02 22:41:56 +00:00
smolnar
945b016bdb Backed out changeset 4d8f7af7950c (bug 1331109) backed out on devs request. 2022-03-03 00:30:23 +02:00
asharma
b7254935b5 Bug 1755372: Cut Over Connection to finer-grained RFP Check r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138707
2022-03-02 21:27:46 +00:00
Cosmin Sabou
c732e21914 Merge mozilla-central to autoland. DONTBUILD 2022-03-02 23:26:20 +02:00
Cosmin Sabou
ad7ecfa618 Merge autoland to mozilla-central. a=merge 2022-03-02 23:24:04 +02:00
Boris Chiou
218e854766 Bug 1750668 - Clamp double value to avoid getting -inf when converting it into unsigned long. r=TYLin
We got runtime error when enabling float-cast-overflow check in this
line, so let's clamp the value to pass the check.

Differential Revision: https://phabricator.services.mozilla.com/D139969
2022-03-02 21:14:49 +00:00
Jamie Nicol
f0dae3b112 Bug 1331109 - Enable GPU process on Android. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D138144
2022-03-02 21:01:56 +00:00
Mitchell Hentges
b48f6cf7dc Bug 1757813: Detect "MSYS" unames as msyshosts r=firefox-build-system-reviewers,nalexander
MozillaBuild 3.4's kernel name was `MINGW32_NT-6.2`, but the new
MozillaBuild's kernel name looks like `MSYS_NT-10.0-19044`.

Update existing first-party detection code to properly handle the modern
MSYS "kernel name" format.

Differential Revision: https://phabricator.services.mozilla.com/D140096
2022-03-02 21:01:07 +00:00
Andrew Halberstadt
5d2b383d0a Bug 1754496 - [taskgraph] Use 'util/parameterization.py' from vendored taskgraph, r=taskgraph-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D138460
2022-03-02 20:19:56 +00:00
Andrew Halberstadt
b85677219e Bug 1754496 - [taskgraph] Use 'util/time.py' from vendored taskgraph, r=taskgraph-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D138459
2022-03-02 20:19:55 +00:00
Andrew Osmond
3c5d084ed4 Bug 1757504 - Mark OffscreenCanvas resize test as failing on 32-bit Linux. r=gfx-reviewers,lsalzman
It is related to how we fail to create a WebGL context on 32-bit Linux.

Differential Revision: https://phabricator.services.mozilla.com/D140086
2022-03-02 19:14:30 +00:00
smolnar
80c30b7c1a Backed out changeset 9ae4e33f83bc (bug 1756495) for causing xpc failures in xpcshell/test_ext_contentscript_dynamic_registration.js CLOSED TREE 2022-03-02 21:29:28 +02:00
smolnar
27376f0656 Backed out changeset aa7a48cff13c (bug 1756750) for causing reftest failures layout/reftests/text-svgglyphs/svg-in-ot-bitmap-1.html 2022-03-02 21:17:26 +02:00
Katherine Patenio
a397735f54 Bug 1754245 - added video wrapper for prime video r=niklas,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138556
2022-03-02 19:05:11 +00:00
Mozilla Releng Treescript
82621cc3dd no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
gn -> f5d82b13b58569bfcabe2197cbd44ec1284bef4e
hye -> f7a5ca20d6645667896750da8a63ac6623ce0185
is -> 4780c3066d09401e685878bdbd4cbcb26c1131d6
sl -> 5a4b4a8c581c38dd5ebeff686de0db3857c42a61
2022-03-02 19:04:43 +00:00
Matthew Gaudet
ba624ba402 Bug 1757608 - Remove superflous WPT expectations r=evilpie,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D140085
2022-03-02 18:56:34 +00:00
Jamie Nicol
ffb15c5a6b Bug 1757766 - Avoid using NS_DISPATCH_SYNC in UiCompositorController::Destroy. r=gfx-reviewers,aosmond
On Android, we must dispatch UiCompositorController::Destroy to run on
the UI thread synchronously. We were using NS_DISPATCH_SYNC to do so,
but that works by starting a nested event loop that continues to
execute tasks on the thread we have dispatched from. This means that
we can start to execute a task which calls
nsBaseWidget::CreateCompositor whilst we are midway through
nsBaseWidget::DestroyCompositor. As well as generally seeming like a
terrible idea, this also causes an assertion failure in some tests.

To avoid this use SynchronousTask rather than NS_DISPATCH_SYNC, as it
actually blocks synchronously. Additionally, do the same thing for
APZInputBridgeChild::Destroy, as it is called from the same location
and poses the same risk.

Ideally we wouldn't have to call UiCompositorControllerChild::Destroy
synchronously at all, but it was added in bug 1392705 to fix severe
crashes. It might be a good idea to re-evaluate whether it is still
required at some point in the future.

Differential Revision: https://phabricator.services.mozilla.com/D140084
2022-03-02 18:52:08 +00:00
Jonathan Watt
47e0f49e0d Bug 1755049 - Extend startup.run_from_dmg_install_outcome telemetry until 108. r=mstange, data-review=chutten
Differential Revision: https://phabricator.services.mozilla.com/D139841
2022-03-02 18:51:14 +00:00
Luca Greco
cd4257c500 Bug 1747647 - Fix test_chrome_ext_permissions.html intermittency on macos pgo builds. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D140040
2022-03-02 18:34:48 +00:00
Bobby Holley
ffb24a7d19 Bug 1757218 - WebMIDI permission should apply to subdomains. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D139982
2022-03-02 18:33:43 +00:00
Lee Salzman
05d60c01fa Bug 1752457 - Don't normalize zero halfway-vector in SpecularLightingSoftware. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D139967
2022-03-02 18:24:28 +00:00
John Schanck
47c887153f Bug 1750787 - get CRLite enrollment list from cert-revocations. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D139728
2022-03-02 18:19:25 +00:00
Emilio Cobos Álvarez
3c5d0d725e Bug 1757017 - Make keyframes for pseudo-elements inherit from the right style. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D140045
2022-03-02 18:19:18 +00:00
Mitchell Hentges
fc251d248b Bug 1710287: ./mach clang-format should update tools if out-of-date r=andi,marco
Before, clang tools would only be bootstrapped if they didn't exist.
Now, bootstrapping also occurs if the version doesn't meet requirements.

Differential Revision: https://phabricator.services.mozilla.com/D137331
2022-03-02 18:13:32 +00:00
smolnar
0ae36bf20f Backed out changeset 8a8ff9d086f4 (bug 1757766) for causing build bustages in gfx/layers/ipc/UiCompositorControllerChild.cpp CLOSED TREE 2022-03-02 19:59:29 +02:00
Nick Alexander
38725ef570 Bug 1752968 - Minify Fluent .ftl files in addition to .properties files. r=eemeli
Depends on D138365

Differential Revision: https://phabricator.services.mozilla.com/D138572
2022-03-02 17:43:49 +00:00
Nick Alexander
1288cd82fa Bug 1752968 - Make single-locale l10n repacks minify .properties files. r=firefox-build-system-reviewers,eemeli,glandium
Differential Revision: https://phabricator.services.mozilla.com/D138365
2022-03-02 17:43:48 +00:00
Nick Alexander
f0a577a014 Bug 1752968 - Pre: Convert MOZ_PACKAGER_MINIFY{_JS} to moz.configure. r=firefox-build-system-reviewers,mhentges
There's no current use for setting `JS_BINARY` in `packager.mk`, so
remove it while we're here.  I elected to make it easy to add new file
types to minify rather than to make it easy to specify `JS_BINARY`,
since the latter mechanism is strictly more general and could be used
in future for things other than minification.

Differential Revision: https://phabricator.services.mozilla.com/D138364
2022-03-02 17:43:47 +00:00
Nick Alexander
230fa93996 Bug 1752968 - Pre: Make l10n gtests robust to changes to aboutAbout.ftl. r=eemeli
Differential Revision: https://phabricator.services.mozilla.com/D139963
2022-03-02 17:43:47 +00:00
Jamie Nicol
a30d089e14 Bug 1757766 - Avoid using NS_DISPATCH_SYNC in UiCompositorController::Destroy. r=gfx-reviewers,aosmond
On Android, we must dispatch UiCompositorController::Destroy to run on
the UI thread synchronously. We were using NS_DISPATCH_SYNC to do so,
but that works by starting a nested event loop that continues to
execute tasks on the thread we have dispatched from. This means that
we can start to execute a task which calls
nsBaseWidget::CreateCompositor whilst we are midway through
nsBaseWidget::DestroyCompositor. As well as generally seeming like a
terrible idea, this also causes an assertion failure in some tests.

To avoid this use SynchronousTask rather than NS_DISPATCH_SYNC, as it
actually blocks synchronously. Additionally, do the same thing for
APZInputBridgeChild::Destroy, as it is called from the same location
and poses the same risk.

Ideally we wouldn't have to call UiCompositorControllerChild::Destroy
synchronously at all, but it was added in bug 1392705 to fix severe
crashes. It might be a good idea to re-evaluate whether it is still
required at some point in the future.

Differential Revision: https://phabricator.services.mozilla.com/D140084
2022-03-02 17:43:33 +00:00
Nicolas B. Pierron
27909d50dc Bug 1757699 - Disable test_delazification_strategy when code coverage is enabled. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D140059
2022-03-02 17:39:41 +00:00
Csoregi Natalia
5f8fa67b85 Backed out changeset bdfd3a19aa49 (bug 1754496) for causing py3 failures on test_util_parameterization.py. CLOSED TREE 2022-03-02 19:20:15 +02:00
Jamie Nicol
6918615b37 Bug 1756700 - Delay compositor creation on Android to allow time for GPU process to launch. r=gfx-reviewers,geckoview-reviewers,aosmond,calu
We noticed a cold_view_nav_start regression on Fenix from enabling the
GPU process, and profiles showed time spent synchronously waiting for
the GPU process to launch. This occured because the compositor was
being created in nsWindow::Create, and as it requires the GPU process
to be running it had to block until launch completed. The process is
launched when the gfxPlatform is first initialized, but that was only
occuring immediately prior to creating the compositor, which did not
give it enough time to complete asynchronously.

This patch makes it so that we initialize the gfxPlatform slightly
earlier, and importantly delay creating the compositor until it is
actually required. This gives the process enough time to launch
asynchronously meaning we do not have to block.

We started deliberately creating the compositor early on Android
because of bug 1453501, to avoid a race condition where the compositor
didn't exist when RemoteLayerTreeOwner::Initialize was called, causing
us to use a basic layer manager. However, since bug 1741156 landed we
now create the compositor on-demand, meaning this is no longer a
possibility.

Delaying compositor creation can, however, uncover another race
condition. If the UICompositorControllerChild is opened on the UI
thread before the main thread is able to set its pointer to the
widget, then the java GeckoSession will never be notified that the
compositor has been opened, and composition will never be
resumed. This patch fixes this issue by setting the
UiCompositorControllerChild's widget pointer in its constructor rather
than immediately afterwards.

Differential Revision: https://phabricator.services.mozilla.com/D139842
2022-03-02 16:56:28 +00:00
Jamie Nicol
8c605446e9 Bug 1756700 - Enforce widget size constraints on Android. r=gfx-reviewers,geckoview-reviewers,calu,aosmond
With the later patch in this series to delay initializing the
compositor, we started crashing in ScreenshotTest#giantScreenshot due
to webrender's window size sanity check.

This check panics early if we attempt to render an area larger than
webrender can handle (rather than panicing internally in
webrender). However, this test deliberately creates a 999999x999999
sized window, to ensure that attempting to allocate a bitmap this size
for a screenshot results in an out of memory exception.

Previously this test only succeeded because we created the compositor
early with a default size of 0x0, whereas now we create it after the
widget has its very large size. Additionally, the test completes
before we have a chance to render anything, otherwise it would indeed
have crashed.

To ensure users do not hit the panic in the wild, in bug 1653649 we
added the necessary limit to the default widget size constraints,
ensuring we never create widgets that are too large. On Android,
however, we do not use the size constraints, so this had no effect.

This patch starts applying size constraints to android widgets,
meaning we do not attempt to render too large an area, and webrender
does not panic. The test still attempts to allocate a large bitmap,
and therefore still throws an out of memory exception and passes.

Differential Revision: https://phabricator.services.mozilla.com/D140050
2022-03-02 16:56:28 +00:00
Julian Descottes
a9045a9bb2 Bug 1757744 - [devtools] Show custom toolbox title for XPCShell debugging r=nchevobbe
Note that XPCShell debugging is usually done via an about:devtools-toolbox tab, so most of the time there will be no title like this.
But we could enable BrowserToolbox xpcshell debugging via https://bugzilla.mozilla.org/show_bug.cgi?id=1620942 and in the meantime this will make it easier to spot configuration issues.

Differential Revision: https://phabricator.services.mozilla.com/D140063
2022-03-02 16:50:13 +00:00
Andrew Halberstadt
8f7d6eaa66 Bug 1754496 - [taskgraph] Use 'util/time.py' from vendored taskgraph, r=taskgraph-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D138459
2022-03-02 16:43:08 +00:00
Iulian Moraru
34a08b349e Merge autoland to mozilla-central. a=merge 2022-03-02 18:39:51 +02:00
Julian Descottes
8dd0df41aa Bug 1757659 - [devtools] Remove unused methods for parent process codepath in root actor r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139994
2022-03-02 16:28:46 +00:00
nchevobbe
5f8f2d735e Bug 1757424 - [devtools] Log an object with a lot of properties in DAMP bulklog test. r=ochameau,perftest-reviewers,davehunt.
Differential Revision: https://phabricator.services.mozilla.com/D139915
2022-03-02 16:17:52 +00:00
William Durand
11cb030a03 Bug 1756495 - Ensure script registration is complete when a new process is spawned during the registration. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D139503
2022-03-02 16:15:41 +00:00
Jonathan Kew
dd2faa9bfa Bug 1756750 - Reftest for SVG-in-OT font with embedded bitmaps. r=emilio
The testcase includes a 1-second pause after the onload event fires, because the test font
includes PNG bitmaps which are asynchronously decoded. This is in theory unreliable,
but for these small images it should be plenty of time (even without any delay, the test
fails only very intermittently) -- if we're failing to decode the images even with the
1-second delay, something is probably truly broken.

(The file svg-bitmap.ttx file is not actually required to run the test, but is the source
for the svg-bitmap.ttf font file, constructed by inserting base64-encoded PNG images
into a minimal font framework.)

Differential Revision: https://phabricator.services.mozilla.com/D140057
2022-03-02 15:58:14 +00:00
Greg Tatum
7890042033 Bug 1755519 - Add language switching to about:welcome; r=pdahiya,platform-i18n-reviewers,flod,dminor
This patch ended up adding some complexity to about:welcome, as the
language switching needs to eagerly perform fallible asynchronous
actions. Specifically it needs to get the list of addons and
pre-emptively install the langpack, which can take time, and can fail.

This necessitated building a custom React components and custom hooks to
be able to deal with these requirements.

The following command will allow for the testing of this feature.

./mach run \
  --temp-profile \
  --setpref "extensions.getAddons.langpacks.url=https://mock-amo-language-tools.glitch.me/?app=firefox&type=language&appversion=%VERSION%" \
  --setpref "intl.multilingual.aboutWelcome.languageMismatchEnabled=true" \
  --setpref "intl.multilingual.aboutWelcome.systemLocaleOverride=es-ES" `#(optional)` \
  -- --new-tab about:welcome

Differential Revision: https://phabricator.services.mozilla.com/D138831
2022-03-02 15:52:43 +00:00
Greg Tatum
669f31b897 Bug 1755519 - Add JSM for langpack matching logic; r=platform-i18n-reviewers,nordzilla
The TestUtils file is broken out as it will be shared with the
about:welcome browser chrome tests.

Differential Revision: https://phabricator.services.mozilla.com/D138830
2022-03-02 15:52:43 +00:00
Mitchell Hentges
1ba4a4ea2d Bug 1755562: Document Mach dependency management r=ahal
* Restructure "Using third-party Python packages" page to focus on the
 "Mach commands"/"adding a Python package" use case since that's why
 most people will be looking at these docs.
* Document the `<site>_virtualenv_packages.txt` behaviour and how it
  relates to a Mach command's definition.
* Simplify the information around using a non-PyPI index to reference
  the RelEng docs directly. It's a shame that the existing docs don't
  explain how to identify tasks that need to use the internal mirror,
  because I'm not sure either. There's existing cases of ad-hoc `pip`
  installs //not// using the mirror, but the pattern isn't clear to me.
* Remove the "specify hashes" information, since the centralized
  solution (will) automatically manage this internally.
  * Arguably, it's still beneficial instructions for ad-hoc
  `pip install` usages, but those are frowned upon today anyways - use
  the centralized solution!

Differential Revision: https://phabricator.services.mozilla.com/D138931
2022-03-02 15:51:30 +00:00
Iulian Moraru
7ae4626035 Merge mozilla-central to autoland on a CLOSED TREE 2022-03-02 18:41:43 +02:00
Csoregi Natalia
1804fa61a2 Backed out changeset a5abe44e15f4 (bug 1748693) for causing /cookies/ failures. CLOSED TREE 2022-03-02 18:21:49 +02:00
Emilio Cobos Álvarez
0547fa3491 Bug 1756750 - Add a missing null-check.
MANUAL PUSH: Trivial crashtest fix CLOSED TREE
2022-03-02 17:19:33 +01:00