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

760292 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt fed7616a43 Bug 1711073 - wasm: Add WasmInitExpr.h. r=jseward
Moves InitExpr declarations from WasmTypes.h
to WasmInitExpr.h. The definitions already lived in
their own translation unit, so this is a header
only change.

Differential Revision: https://phabricator.services.mozilla.com/D117043
2021-06-10 17:11:31 +00:00
Nick Alexander bef7042147 Bug 1524662 - Add --enable-path-remapping producing compiled objects with generic paths. r=glandium
For "c" (i.e., gcc, clang, and clang-cl), this configures the
`-f{debug,macro}-path-prefix` flags.  We'd prefer to use
`-ffile-path-prefix`, but it seems that `clang-cl` does not recognize
that flag.

For "rust" (i.e., rustc/cargo), this configures `--remap-path-prefix`.

This is one step toward getting `sccache` hits across source and
object directories.

Differential Revision: https://phabricator.services.mozilla.com/D113065
2021-06-10 17:08:06 +00:00
Harry Twyford b1c5a5b1f8 Bug 1715484 - Stop syncing browser.urlbar.resultBuckets and rename the pref. r=adw
I renamed the pref to resultGroups. This is similar enough that we don't have to change a lot of code. Functions and comments that refer to resultBuckets now clearly refer to resultGroups. As Marco pointed out in the bug, the renaming is necessary to avoid conflicts with old versions.

Differential Revision: https://phabricator.services.mozilla.com/D117354
2021-06-10 16:28:35 +00:00
Jonathan Kew 1783995b68 Bug 1714543 - Handle possible DWrite failures better when enumerating available fonts. r=lsalzman
I haven't been able to reproduce the issue here locally and test this directly, but according to
the reporter a build with this patch works for them.

My guess is that perhaps IDWriteLocalizedStrings::GetLocaleName has been returning a failure result,
causing us to drop the relevant font from the list altogether. We can handle that better by still
including the font, even if we're unsure which name matches the system locale.

This patch also adds a few gfxWarning() messages in places where we really don't expect things
to fail, but if they do, it might help us understand why fonts fail to appear.

Differential Revision: https://phabricator.services.mozilla.com/D117406
2021-06-10 16:21:27 +00:00
Jonathan Kew 74aef88b56 Bug 1664151 - Drop FC_CHARSET element from fontconfig patterns for TrueType/OpenType fonts, as we will read the cmap directly anyhow. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D117423
2021-06-10 16:13:39 +00:00
Harry Twyford 1135b0ea6b Bug 1710164 - Use appropriate system colors for in-content pages in HCM on macOS. r=mstange,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D115649
2021-06-10 16:00:40 +00:00
Andrey Bienkowski 68148b7093 Bug 1715436 - Convert defer to Promise in devtools/client/shared/test/browser_treeWidget_keyboard_interaction.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D117259
2021-06-10 15:28:24 +00:00
Andrey Bienkowski c86b626c90 Bug 1715326 - Convert defer to Promise in devtools/client/shared/test/browser_treeWidget_mouse_interaction.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D117195
2021-06-10 15:27:25 +00:00
Christoph Kerschbaumer 1240423ca8 Bug 1714966: Update PBM portion of test toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context.js to work with https-first enabled r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D116988
2021-06-10 15:25:57 +00:00
Jon Coppeard 5e34ec9b9e Bug 1713335 - Wait for all pending tasks to run when shutting down r=sfink
This also renames the waitForAllThreads method to the more accurate waitForAllTasks.

Differential Revision: https://phabricator.services.mozilla.com/D117005
2021-06-10 15:14:19 +00:00
Jon Coppeard bb5e93dc26 Bug 1713335 - Shutdown helper thread system with lock held r=sfink
This allows any external tasks that happen to run after the helper thread
system has shut down to correctly detect that. This shouldn't happen with the
next patch but it seems safer to do it this way.

Differential Revision: https://phabricator.services.mozilla.com/D117004
2021-06-10 15:14:19 +00:00
Jon Coppeard 72680f3abb Bug 1713335 - Dispatch tasks to external thread pool if present r=sfink
Tasks are dispatched by queueing a generic task for the pool. When this is
executed it will run the highest priority task pending, if any.

In a busy system it's possible that there will be some delay between
dispatching this task and it starting running. There is also a limit on the
number of tasks that are run at once for each task kind. The patch therefore
limits the number of tasks dispatched to the number of avilable threads.

Differential Revision: https://phabricator.services.mozilla.com/D116817
2021-06-10 15:14:18 +00:00
Jon Coppeard 4551d63dbf Bug 1713335 - Split out methods to check whether there any tasks we can run of each kind r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D116816
2021-06-10 15:14:18 +00:00
Jon Coppeard 262f7a8262 Bug 1713335 - Tidy GlobalHelperThreadState::findHighestPriorityTask to use this rather than the global r=sfink
I missed this when moving findHighestPriorityTask out of HelperThread previously.

Differential Revision: https://phabricator.services.mozilla.com/D116815
2021-06-10 15:14:18 +00:00
Jon Coppeard 4913b5ff33 Bug 1713335 - Use HelperThreadState::isInitialized instead of CanUseExtraThreads in a few places r=sfink
This is a stronger condition because we assert CanUseExtraThreads during
initialization. It's also closer to to the original intent.

Differential Revision: https://phabricator.services.mozilla.com/D116814
2021-06-10 15:14:17 +00:00
Jon Coppeard 34c0625953 Bug 1713335 - Rely on the embedding to chose whether to use an external pool r=sfink
The previous patch added a pref to control use of the external thread pool. I
don't think we need an environment variable as well, although I could be
persuaded to keep this.

Differential Revision: https://phabricator.services.mozilla.com/D116813
2021-06-10 15:14:17 +00:00
Jon Coppeard f6039d82c0 Bug 1713335 - Add a pref to control use of XPCOM thread pool, default off r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D116812
2021-06-10 15:14:16 +00:00
Robert Mader 0346222f4b Bug 1714326 - Cache more Wayland surface state, r=gfx-reviewers,aosmond
In order to avoid system compositor and wire overhead.
Also make more internals of `NativeSurfaceWayland` private.

Depends on D116675

Differential Revision: https://phabricator.services.mozilla.com/D116721
2021-06-10 15:12:55 +00:00
Robert Mader 18b6f28c4f Bug 1714326 - Cleanups and overhead reductions, r=gfx-reviewers,aosmond
Do not reorder subsurfaces if not necessary and remove some dead
code.

Depends on D116026

Differential Revision: https://phabricator.services.mozilla.com/D116675
2021-06-10 15:12:55 +00:00
Robert Mader 76692c1a43 Bug 1711244 - Integrate NativeLayerWayland with WaylandVsyncSource, r=stransky,gfx-reviewers,jrmuizel
Make the vsync source request frame callbacks from opaque native
layers. This is necessary as opaque layers may occlude the
MozContainer surface, which is normally used for frame callbacks.
Wayland compositors may (and are encouraged to) optimize away
such callbacks, so we need to make sure to request frame callbacks
from actually visible surfaces.

Callbacks are requested for all layers, but only the first callback
will trigger the vsync source.
In order to get this right concerning multiple requested callbacks,
possibly being called from different threads etc., introduce a
callback abstraction, `CallbackMultiplexHelper`, to make this simple
to handle for callers.

Differential Revision: https://phabricator.services.mozilla.com/D116026
2021-06-10 15:12:54 +00:00
Alexandre Poirot b810080537 Bug 1712557 - [devtools] Ensure notifying about the target before start the resource watchers. r=jdescottes
This is important to emit `connectFromContent` before processing the watched data.
We have to notify the parent process (and the client) about the new target actor.
And do that before any code in the content process tries to emit an event via this target acotr.
We will typically start the resources watchers when processing the watched data,
which will emit the resources-available-form on the target actor.

Writing a test for this is a bit tricky, as we start missing event when we get into it.
browser_resources_document_events.js starts failing without this patch because DOCUMENT_EVENT's dom-loading is emitted immediately
and is lost in the parent process.
I'm not sure we can write a better test than this existing failure.

Differential Revision: https://phabricator.services.mozilla.com/D117149
2021-06-10 14:58:53 +00:00
Alexandre Poirot ac1ce83f3e Bug 1712557 - [devtools] Avoid emitting window-ready/window-destroyed for top level documents. r=bomsy,jdescottes
These events are redundant with target creation and destruction when the targets
follows the window lifecycle. These events are now only useful for in-process iframes.

Also, when the Target is instantiated by the server codebase, we end up registering
the code emitting these events sooner, so that we emit window-ready for the existing document!
On top of that, we end up also instantiating (and attaching) the thread actor earlier.
When combined, the thread actor was receiving window-ready for the existing top document
and was reseting itself after being attached and having registered the breakpoints.

Some followup would be required for will-navigate.
We get an initial will-navigate when the target instantiate, which can also confuse actors.
But as this event is important for DocumentEventWatcher, more work is needed to disable it.

Differential Revision: https://phabricator.services.mozilla.com/D117148
2021-06-10 14:58:53 +00:00
Alexandre Poirot 5a8aebb195 Bug 1712557 - [devtools] Test hitting breakpoints via a reload link. r=bomsy
I thought I would reused browser_dbg-navigation.js, but its doc-scripts.html
test page is too complex and doesn't reproduce the broken breakpoint.
So I'm still cleaning it up, but ended up introducing a new dedicated test and test page.

Note that I'm removing the toggleScopes call as it was most likely a workaround.
Test helpers assume that scopes are visible and timeout if the scopes don't get updated.

The added test now only fails without fission + with server target switching.

Differential Revision: https://phabricator.services.mozilla.com/D116811
2021-06-10 14:58:53 +00:00
ffxbld 51e47c5f62 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D117410
2021-06-10 14:50:41 +00:00
Julien Cristau 546db9d574 Bug 1704584 - allow password-rules.json as a duplicate file. r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D117424
2021-06-10 14:50:40 +00:00
Kashav Madan 4c2bc4a280 Bug 1715264 - Fix browser_async_remove_tab.js for SHIP, r=farre
Relies on frame script message ordering.

Differential Revision: https://phabricator.services.mozilla.com/D117233
2021-06-10 14:31:00 +00:00
Kashav Madan 506f273571 Bug 1715264 - Fix browser_async_flushes.js for SHIP, r=farre
Relies on frame script message ordering.

Differential Revision: https://phabricator.services.mozilla.com/D117232
2021-06-10 14:31:00 +00:00
Kashav Madan 9412b5ad01 Bug 1715264 - Remove annotations for browser_sessionHistory.js, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D117231
2021-06-10 14:30:59 +00:00
Kashav Madan 534f0f8a49 Bug 1715264 - Cleanup how Session Store collects SessionHistory, r=farre
This does a few things:

1. Removes the `aImmediately` flag from the RequestSHistoryUpdate path, and
   moves that responsibility to SessionStore
1. Simplifies how and when SessionStore calls SessionHistory.collectFromParent()
1. Attempts to clean-up SessionStore's SHistoryListener (again)

Differential Revision: https://phabricator.services.mozilla.com/D117230
2021-06-10 14:30:59 +00:00
Kashav Madan be0a4dd5ff Bug 1715264 - Avoid flushing tab state for destroys triggered by process switches, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D117229
2021-06-10 14:30:59 +00:00
Alexandru Michis af8e5d37fd Backed out 2 changesets (bug 1715300) for causing wpt failures in metadata/prefetch.https and bc failures in browser_aboutCertError.js
CLOSED TREE

Backed out changeset 15b6ae49e509 (bug 1715300)
Backed out changeset 6dc09e2d617c (bug 1715300)
2021-06-10 18:41:36 +03:00
Alexandru Michis b9be72a526 Backed out 6 changesets (bug 1711648) for causing crashes in FrameBuilder.
CLOSED TREE

Backed out changeset 0384828b36cc (bug 1711648)
Backed out changeset 15d8e0d681ef (bug 1711648)
Backed out changeset b27d8421ebc5 (bug 1711648)
Backed out changeset 12da58f4ac4f (bug 1711648)
Backed out changeset 1d4c0b685f0e (bug 1711648)
Backed out changeset 367235e897e3 (bug 1711648)
2021-06-10 18:28:27 +03:00
Jamie Nicol b773eeb1fd Bug 1715746 - Re-enable webrender on Adreno 505 and 506 devices. r=jrmuizel
While webrender has been shipping for a long time on other Adreno 5xx
devices, we had disabled it on Adreno 505 and 506 due to frequent
crashes during shader compilation. This crash has now been fixed, so
we can ship webrender to these devices.

Depends on D117427

Differential Revision: https://phabricator.services.mozilla.com/D117428
2021-06-10 14:22:31 +00:00
Jamie Nicol 600f6b0328 Bug 1715746 - Work around Adreno shader compilation crash. r=jrmuizel
On certain adreno devices we encountered frequent driver crashes
during glLinkProgram. The crash appears to be caused by a combination
of compiling a shader with some GLSL code the driver doesn't like,
compiling shaders concurrently in multiple threads (eg webrender's
renderer thread and Fenix's Android UI render thread), and said
threads having a certain stack address.

Specifically, the GLSL code the driver doesn't like is a vector
bitwise-and followed by a conversion to bvec, which occurs in many of
webrender's shaders.

While we have control over webrender's renderer thread, we are unable
to synchronize with or control the stack address of the UI render
thread. Fortunately, we can rewrite the GLSL code to use scalar
bitwise-ands, therefore avoiding the crash.

Differential Revision: https://phabricator.services.mozilla.com/D117427
2021-06-10 14:22:30 +00:00
Marco Bonardo 5514a7b755 Bug 1713111 - Add initial expiration to Places Metadata. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D117153
2021-06-10 14:15:24 +00:00
Rob Wu 7c0e6c6b00 Bug 1714673 - Fix and re-enable test_gfxBlacklist_Version.js on Android r=jrmuizel
The values for spoofVendorID/spoofDeviceID should match entries in
test_gfxBlacklist_AllOS.json. These entries were added in
https://hg.mozilla.org/mozilla-central/rev/21263fbfdcc2 but
inadvertently not updated (because the test was disabled).
Fixing that enables the test to use the expected entries.

Several test expectations were no longer correct for Android and have
been updated as well.

Differential Revision: https://phabricator.services.mozilla.com/D116953
2021-06-10 14:15:05 +00:00
Rob Wu b25fd32218 Bug 1714673 - Fix and re-enable test_gfxBlacklist_Equal_DriverNew.js on Android r=jrmuizel
test_gfxBlacklist_Equal_DriverNew.js fails on Android because the
meaning of "All" was changed by bug 1274635 to mean "All Windows"
instead of "All OSs", while the test relied on mock data in
test_gfxBlacklist.json that contains entries for "os": "All".

To fix the failures, add entries to test_gfxBlacklist.json based on
these existing `"os": "All"` entries, with driver version ranges chosen
to as closely match the original entry (greater/lower/equal compared to
6 (from `gfxInfo.spoofDriverVersion("6")`) in the test file).

Differential Revision: https://phabricator.services.mozilla.com/D116952
2021-06-10 14:15:04 +00:00
Rob Wu 213c4436bf Bug 1714673 - Fix gfx blocklist support on Android r=jrmuizel
The remote gfx blocklist for Android was broken since 2016 by
https://hg.mozilla.org/mozilla-central/rev/af65533093de as explained at
https://bugzilla.mozilla.org/show_bug.cgi?id=1714673#c2

This patch fixes the issue and re-enables the disabled tests.

Differential Revision: https://phabricator.services.mozilla.com/D116951
2021-06-10 14:15:04 +00:00
cerkiewny c1d09f06e5 Bug 1713532 - removed else after return r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D117189
2021-06-10 14:08:16 +00:00
Lars T Hansen e4c8db4892 Bug 1715494 - Simplify ARM64 barrier logic. r=jseward
Just emit `dmb ish` for every barrier, do not try to use more
discriminating barriers such as `dmb ishst` as they are hard to reason
about.

Differential Revision: https://phabricator.services.mozilla.com/D117282
2021-06-10 13:35:28 +00:00
Julien Cristau 8376ac4322 Bug 1713766 - land NSS NSS_3_67_RTM UPGRADE_NSS_RELEASE, r=bbeurdouche,aryx
Differential Revision: https://phabricator.services.mozilla.com/D117422
2021-06-10 13:25:03 +00:00
Tooru Fujisawa 40606ad340 Bug 1715731 - Bump jsparagus for bug 1709956 and some more. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D117402
2021-06-10 13:24:16 +00:00
Nicolas Silva 69c80ddaa7 Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D117293
2021-06-10 13:07:34 +00:00
Nicolas Silva 8ab34fbadf Bug 1711648 - Move RasterRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117292
2021-06-10 13:07:33 +00:00
Nicolas Silva 0acbbeea63 Bug 1711648 - Move TileRange to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117291
2021-06-10 13:07:33 +00:00
Nicolas Silva c3737b114f Bug 1711648 - Move TileRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117290
2021-06-10 13:07:33 +00:00
Nicolas Silva 9584d0be6a Bug 1711648 - Move PictureRect to the endpoint representation. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116825
2021-06-10 13:07:32 +00:00
Nicolas Silva 315d86d6a0 Bug 1711648 - Move some space conversion utilities from rect to box. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116734
2021-06-10 13:07:32 +00:00
Alexandru Michis 9c0300eebd Backed out changeset 1e76e5ecdfbe (bug 1714614) for causing gtest and gv-junit failures.
CLOSED TREE
2021-06-10 17:35:20 +03:00
Alexandru Michis adb94d0544 Backed out 2 changesets (bug 1700405) for causing bc failures in browser_providerSteering.js
Backed out changeset 678c08f0baba (bug 1700405)
Backed out changeset 90b4c5f8796e (bug 1700405)
2021-06-10 17:29:19 +03:00