Commit Graph

786949 Commits

Author SHA1 Message Date
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
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
Iulian Moraru
34a08b349e Merge autoland to mozilla-central. a=merge 2022-03-02 18:39:51 +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
Nicolas Chevobbe
cec6a9a43d Bug 1755266 - [devtools] Fix isFrameWithChildTarget for frame element. r=jdescottes.
We do create dedicated targets for frame documents, but
in isFrameWithChildTarget, we were only checking if the
passed element was an iframe, making some area of the code
not behaving correctly (e.g. using the node picker, or
the Inspect Element context menu entry).
This patch fixes this and add a test case to make sure we
don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D140041
2022-03-02 15:39:54 +00:00
Matthew Gaudet
b5648d7482 Bug 1757608 - Disable WritableStreams WPT tests if testing JS Streams r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D139992
2022-03-02 15:28:41 +00:00
Jeff Muizelaar
96997a4322 Bug 1757574 - Reduce the maximum number of high priority WrWorker threads. r=nical
This cuts the time spent doing get_ct_font on macOS in half because of
various contention issues. It should also reduce overall memory usage
for large fonts because we have half as many threads loading the
fonts.

Differential Revision: https://phabricator.services.mozilla.com/D139946
2022-03-02 15:27:31 +00:00
James Graham
ecd6a43b83 Bug 1757491 - Remove log from kwargs when wpt is invoked via mach test, r=gbrown
`mach test` passes in a log parameter that contains a preconfigured
logger.  wptrunner is already using this to configure the logger for
the test run, but because it's operating on a copy of the arguments,
we don't remove the log parameter from the kwargs we pass in
later. That causes a problem for the verify mode which assumes that
all parameters are cloneable.

Differential Revision: https://phabricator.services.mozilla.com/D140048
2022-03-02 15:22:02 +00:00
Frederik Braun
bdfe418051 Bug 1748693 - remove MaybeCompareSchemes(Logging), disable samesite-schemeful for release r=dveditz,dragana
This removes a part of the erroneous scheme-comparison and the logging
that was implemented in those functions. The tests for that logging were
also removed.

Differential Revision: https://phabricator.services.mozilla.com/D136229
2022-03-02 14:58:02 +00:00
Emilio Cobos Álvarez
474f23b35d Bug 312891 - Add a test. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D139930
2022-03-02 14:46:08 +00:00
Emilio Cobos Álvarez
676faeb637 Bug 1756750 - Ensure we observe SVG glyph changes inside <svg:text>. r=jfkthame
This gets done usually in BreakSink::Finish, but we don't do
line-breaking in SVG Text so we need to do this here instead.

Do you know where I could crib a test for this?

Depends on D139964

Differential Revision: https://phabricator.services.mozilla.com/D139965
2022-03-02 14:31:58 +00:00
Emilio Cobos Álvarez
ad92f744aa Bug 1756750 - Don't reframe <svg:image> on loading / broken changes. r=jfkthame
Doesn't change behavior but makes debugging easier and should be a perf
improvement anyways.

Differential Revision: https://phabricator.services.mozilla.com/D139964
2022-03-02 14:31:58 +00:00
Iulian Moraru
51fd8df2e2 Backed out 2 changesets (bug 1755519) for causing node test failures (About:welcome bundle out of date). CLOSED TREE
Backed out changeset 67e6561012ad (bug 1755519)
Backed out changeset 873d83eaa24e (bug 1755519)
2022-03-02 17:08:47 +02:00
Jan Varga
0f25064139 Bug 1757576 - Fix non-unified-build bustage in dom/media/gmp/GMPParent.cpp; r=media-playback-reviewers,bryce
Differential Revision: https://phabricator.services.mozilla.com/D139948
2022-03-02 14:18:37 +00:00
Jan Rio Krause
f1571e65c4 Bug 1690326 - Map Windows error 0x510 ERROR_CONTENT_BLOCKED to NS_ERROR_FILE_ACCESS_DENIED. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D139968
2022-03-02 14:10:19 +00:00
James Graham
39b2232e0b Bug 1755261 - Drive-by clippy fixes, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D139932
2022-03-02 14:08:47 +00:00
James Graham
be0322a09b Bug 1755261 - Improve handling of named profiles, r=webdriver-reviewers,whimboo
With named profiles we can't expect to write prefs, or to read the port out
of the profile path. So don't do these things.

Differential Revision: https://phabricator.services.mozilla.com/D138674
2022-03-02 14:00:15 +00:00
Greg Tatum
d30370b190 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 13:54:17 +00:00
Greg Tatum
2aa7af8502 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 13:54:16 +00:00
Jonathan Kew
9f7ae29b2c Bug 1757578 - For resolving font prefs, accept lang attribute with underscore in place of hyphen separators. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D139951
2022-03-02 13:15:27 +00:00
Paul Adenot
aed24dc0b6 Bug 1754657 - Update probes expiring in Firefox 100: media.video_{hd_,}hardware_decoding_support. r=bryce data-review=chutten
Differential Revision: https://phabricator.services.mozilla.com/D139923
2022-03-02 12:59:57 +00:00
stransky
52970abaec Bug 1755521 - Don't lose track of anchor rect width on popup position change. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D138827
2022-03-02 12:33:27 +00:00
Emilio Cobos Álvarez
d825fb6d4c Bug 1757647 - Implement Windows 11 overlay scrollbars. r=cmartin
Put it behind a pref for nightly and early beta for now.

Differential Revision: https://phabricator.services.mozilla.com/D139987
2022-03-02 12:02:00 +00:00
Emilio Cobos Álvarez
4f96521a7c Bug 1757647 - Simplify WindowsUIUtils tablet mode stuff. r=saschanaz
No need for it to use so much XPCOM.

Differential Revision: https://phabricator.services.mozilla.com/D139986
2022-03-02 12:02:00 +00:00
Masayuki Nakano
ef3106ee6b Bug 1757492 - part 2: Clean up HTMLEditor::DoSplitNode r=m_kato
This patch just cleans up the method code for making the changes for bug 1735608
simpler.  This does not change any behavior.

Depends on D140010

Differential Revision: https://phabricator.services.mozilla.com/D140011
2022-03-02 11:55:06 +00:00
Masayuki Nakano
5bbb9ea55a Bug 1757492 - part 1: Clean up HTMLEditor::DoJoinNodes r=m_kato
This patch just cleans up the method code for making the changes for bug 1735608
simpler.  This does not change any behavior.

Differential Revision: https://phabricator.services.mozilla.com/D140010
2022-03-02 11:55:05 +00:00