752016 Commits

Author SHA1 Message Date
Sean Feng
dae8c27301 Bug 1697585 - Rename high priority to vsync priority r=smaug
`High` priority is being used for vsync tasks, so we should rename it to
make it clear, and renaming it also makes our priority naming less
confusing.

Differential Revision: https://phabricator.services.mozilla.com/D109536
2021-04-06 13:10:50 +00:00
Andrew Osmond
32291224dd Bug 1703244 - Flush pending async resource updates when clearing layer manager cache. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D110925
2021-04-06 12:50:21 +00:00
Kershaw Chang
5c433fde4b Bug 1703194 - Fix data race for mConfirmation.mTask, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D110920
2021-04-06 12:20:34 +00:00
Andreas Pehrson
5367aeff32 Bug 1695580 - Increase async shutdown timeout for ASAN to 5 minutes. r=xpcom-reviewers,mccr8
The patches on this bug make bug 1684441 increase in frequency. Presumable ASAN
shutdown is in many cases already close to the timeout, and this bug is making
it trip over the edge.

A 4 minute timeout made a broad linux x64 ASAN try run go from five occurrences
of bug 1684441 to two, whereas a 5 minute timeout made them go to zero.

Differential Revision: https://phabricator.services.mozilla.com/D109785
2021-04-06 12:16:12 +00:00
Andreas Pehrson
c41df44112 Bug 1695580 - Remove mochitest rdd leak threshold. r=mjf,mccr8
It's unclear whether this bug fixes the leaks that prompted this leak threshold,
or whether they were already fixed. It is however clear that mochitests now run
without leaking.

Differential Revision: https://phabricator.services.mozilla.com/D109784
2021-04-06 12:16:12 +00:00
Andreas Pehrson
bed338184d Bug 1695580 - Release WebSocketChannel::mTargetThread on main. r=necko-reviewers,dragana
When mTargetThread is WebSocketImpl it must be released on main since it
implements nsISupportsWeakReference, and clearing weak references is not
threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D109783
2021-04-06 12:16:12 +00:00
Andreas Pehrson
be0dbd75d4 Bug 1695580 - In necko, cancel pending DelayedRunnable timers on shutdown. r=necko-reviewers,dragana
This adds support for nsIDelayedRunnableObserver to nsStreamTransportService.

This is a bit special because nsStreamTransportService uses an nsThreadPool.
Because of race conditions we cannot dispatch a final cleanup task to cancel any
pending DelayedRunnables.

Because of the inherent raciness of threads in the thread pool we assume that
any pending DelayedRunnables can handle being released on any thread. Thus we
dispatch the cleanup task to the background event target once the thread pool
has been shut down and processed all its events. This ensures no races can occur
between the cleanup task and OnDelayedRunnableScheduled.

Differential Revision: https://phabricator.services.mozilla.com/D109782
2021-04-06 12:16:11 +00:00
Andreas Pehrson
f9c6ad1082 Bug 1695580 - In xpcom, cancel pending DelayedRunnable timers on shutdown. r=KrisWright
Because DelayedRunnables are fire-and-forget, there is no way for a targeted
EventTarget to clean them up on shutdown. Thus if a timer fires after
EventTarget shutdown it will fail to dispatch the timer event, and avoid
releasing the timer callback because it's not on the targeted thread. This
causes a leak as there is a ref-cycle between nsTimerImpl::mCallback and
DelayedRunnable::mTimer.

This patch adds nsIDelayedRunnableObserver for a target to observe which
DelayedRunnables are relying on their timer to run them. This allows the target
to schedule a shutdown task to cancel those timers and release the runnables on
the target thread.

Supported DelayedRunnable targets with this patch are TaskQueues,
eventqueue-based nsThreads and XPCOMThreadWrappers that wrap a supported
nsThread.

An assertion makes sure at runtime that future new uses of DelayedRunnable
target nsIDelayedRunnableObserver-supported event targets.

Differential Revision: https://phabricator.services.mozilla.com/D109781
2021-04-06 12:16:11 +00:00
Andreas Pehrson
80e4501701 Bug 1695580 - Simplify MozPromise code in nsThreadManager::Shutdown. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109780
2021-04-06 12:16:11 +00:00
Andreas Pehrson
54fc8141ce Bug 1695580 - Add gtests. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109779
2021-04-06 12:16:10 +00:00
Andreas Pehrson
25d202a7f3 Bug 1695580 - Break out DelayedRunnable into its own files. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D109778
2021-04-06 12:16:10 +00:00
Yulia Startsev
48de713b85 Bug 1681046: fixup worklet error messages for async modules; r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110561
2021-04-06 12:10:13 +00:00
Yulia Startsev
735bb5aa2a Bug 1681046 - Enable Top Level Await by default r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D110394
2021-04-06 12:10:12 +00:00
Emilio Cobos Álvarez
be413c29de Bug 1703229 - Fix some proton -moz-bool-pref usage that snook in yesterday. r=preferences-reviewers,Gijs
See bug 1698132 about why the media features are better (ltdr, they're
faster, easier to write, and don't need a restart to handle dynamic
changes).

Differential Revision: https://phabricator.services.mozilla.com/D110919
2021-04-06 12:03:58 +00:00
Emilio Cobos Álvarez
41920e2eaf Bug 1703018 - Remove now unused variable which causes gcc to complain.
MANUAL PUSH: Base toolchains bustage CLOSED TREE
2021-04-06 14:01:39 +02:00
RJ Johnson
351f2b0332 Bug 1697721 - Have nsLocalFile::CreateAllAncestors make each path component. r=xpcom-reviewers,kmag
Some systems hide path components. Determine access by creating the whole path.

Differential Revision: https://phabricator.services.mozilla.com/D107970
2021-04-06 11:49:24 +00:00
Tom Schuster
93d66b057f Bug 1701904 - Use Maybe<PropertyDescriptor> in DebuggerObject and a few resulting places. r=jandem
I am not super happy with having to do `Rooted<PropertyDescriptor> desc(cx, *desc_);` in DebuggerObject::getOwnPropertyDescriptor.
However PropertyDescriptor::value() can't be resolved properly, unlike MutableHandle<PropertyDescriptor>::value().

I wonder if Maybe could return Handle/MutableHandle as well somehow.

Differential Revision: https://phabricator.services.mozilla.com/D110663
2021-04-06 11:42:44 +00:00
pavel
1ab983e144 Bug 1699275 - JSID_IS_ATOM removed from js/src/builtin/Object.cpp. r=jandem
Depends on D110778

Differential Revision: https://phabricator.services.mozilla.com/D110781
2021-04-06 11:35:20 +00:00
pavel
526b1806dc Bug 1699279 - uses of JSID_IS_ATOM replaced with JS::PropertyKey::isAtom. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D110778
2021-04-06 11:35:20 +00:00
TheEvilSkeleton
1edb586740 Bug 1648029 - Enable PipeWire support in Flatpak r=mtabara DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D110021
2021-04-06 11:16:07 +00:00
Paul Zuehlcke
b143fffc19 Bug 1700832 - Renew external protocol dialog telemetry. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D110905
2021-04-06 11:13:35 +00:00
Jan de Mooij
efa8aae0ba Bug 1700052 part 10 - Add support for GetterSetter stub fields. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D110257
2021-04-06 11:06:16 +00:00
Jan de Mooij
9041351aa8 Bug 1700052 part 9 - Add js::GetterSetter GC thing. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D110256
2021-04-06 11:06:16 +00:00
Jan de Mooij
5ebdd93222 Bug 1700052 part 8 - Add GuardFixedSlotValue and GuardDynamicSlotValue CacheIR instructions. r=iain
These will be used in a later patch to guard `obj[slot] == PrivateGCThingValue(GetterSetter*)`.

Depends on D110254

Differential Revision: https://phabricator.services.mozilla.com/D110255
2021-04-06 11:06:15 +00:00
Jan de Mooij
68d3a2a494 Bug 1700052 part 7 - Add branchTestValue overload to the MacroAssembler. r=iain
This turned out to be a bit more work than expected because we were missing
branch32/branchPtr implementations taking a BaseIndex and a Register.

Depends on D110253

Differential Revision: https://phabricator.services.mozilla.com/D110254
2021-04-06 11:06:15 +00:00
Jan de Mooij
d56e7e22f1 Bug 1700052 part 6 - Pass jsid to ObjectHasGetterSetterPure. r=iain
We currently get the jsid from the property's shape, but in a later patch that
Shape* argument will be replaced with a GetterSetter* argument.

I considered using PropertyKey instead of jsid, but this matches similar code
using jsid.

Depends on D110252

Differential Revision: https://phabricator.services.mozilla.com/D110253
2021-04-06 11:06:14 +00:00
Emilio Cobos Álvarez
606ab54d5c Bug 1703118 - Remove unneeded caching / parent-process checks in android lookandfeel. r=agi,geckoview-reviewers
After bug 1697607 and the subsequent pref removal this code only runs in
the parent process.

After bug 1699088 the caller takes care of caching. So there should be
no need to cache stuff ourselves.

Differential Revision: https://phabricator.services.mozilla.com/D110871
2021-04-06 10:29:43 +00:00
Emilio Cobos Álvarez
7a2c22ce65 Bug 1703018 - Reduce boilerplate needed to add system-metric media features. r=boris
There's no reason we can't just query LookAndFeel and we need to use
sSystemMetrics. In the past, LookAndFeel queries were not cached, but
this is no longer the case, so perf wise should be pretty equivalent.

Note that we don't need the NS_SUCCEEDED checks because the default
value from GetInt if the platform doesn't support it is 0 anyways.

Differential Revision: https://phabricator.services.mozilla.com/D110805
2021-04-06 09:55:01 +00:00
Kershaw Chang
53fcabd6de Bug 1701829 - Make sure we do fast fallback when h2 connection is ready, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D110401
2021-04-06 09:49:13 +00:00
Andreas Pehrson
23ab8a0a95 Bug 1697521 - In MediaRecorder check for multiple tracks synchronously, per spec. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D110549
2021-04-06 09:10:04 +00:00
Andreas Pehrson
3619373e0e Bug 1697521 - Add crashtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D110548
2021-04-06 09:10:03 +00:00
Dave Hunt
43d078ee3b Bug 1702705 - Restore raptor-webext benchmarks on Fission; r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D110656
2021-04-06 08:42:50 +00:00
Valentin Gosu
b596ffd428 Bug 1696261 - Optimize nsDataHandler and nsSimpleURI::SetSpec to do fewer passes r=necko-reviewers,kershaw
- Rename nsAciiMask.h details:: namespace to asciimask_details so it doesn't clash with ipc/chromium/src/base/task.h
- Add SetSpecAndFilterWhitespace simple URI constructor that filters whitespace instead of just CR/LF.
- Only do one scan of the string in nsSimpleURI::SetPathQueryRefInternal in order to find the end of the path, query & ref.

There are probably more optimizations possible.
In my testing these get me a 1.5x-2x speedup.

Differential Revision: https://phabricator.services.mozilla.com/D107567
2021-04-06 08:37:40 +00:00
Dragana Damjanovic
2e13a169c1 Bug 1698321 - Make sure that we do not underflow mNumActiveConns r=necko-reviewers,kershaw
This may happen when a TransportSetup retry to connect using a different IP address, but AsyncResolveNative failed.

The change adds a flag that indicates whether it is needed to remove a connection from mNumActiveConns. This should make sure that we do not do it multiple times.

Differential Revision: https://phabricator.services.mozilla.com/D110723
2021-04-06 08:27:43 +00:00
ffxbld
b5b443ea9c No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D110808
2021-04-06 08:12:18 +00:00
Lee Salzman
028ae521bd Bug 1678783 - Reuse linear filtering fast-paths for linear-repeat filtering. r=jrmuizel
This reorganizes the blendTextureLinear code so that linear-repeat filtering
can reuse the linear filtering fast-paths. Otherwise, linear-repeat filtering
would previously only use the linear filtering fallback, when some patterns
like repeating background images are easily accelerated by these extra fast-paths.

Differential Revision: https://phabricator.services.mozilla.com/D110877
2021-04-06 07:54:14 +00:00
Gabriele Svelto
3fd97b1072 Bug 1696579 - Store all authenticode signaures when analyzing a minidump r=KrisWright
This fixes the regression introduced with bug 1649443 and also includes
signatures from unloaded modules.

Differential Revision: https://phabricator.services.mozilla.com/D110565
2021-04-06 07:52:20 +00:00
Gabriele Svelto
39b7f43136 Bug 1702043 - Print out the list of unloaded modules when processing a minidump r=Gankra
This modifies both Breakpad's minidump_stackwalk and minidump_dump
tools as well as the minidump-analyzer so that they will always print
out the list of unloaded modules when processing minidumps where it is
populated.

Differential Revision: https://phabricator.services.mozilla.com/D110415
2021-04-06 07:52:20 +00:00
Christoph Kerschbaumer
8bcbcfce51 Bug 1701670: Perform IPC based Principal vetting in ContentParent::RecvConstructPopupBrowser r=nika
Differential Revision: https://phabricator.services.mozilla.com/D110584
2021-04-06 07:50:59 +00:00
Petr Sumbera
c3faa852e5 Bug 1702405 - Add missing #include for MakeScopeExit. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D110517
2021-04-06 07:34:00 +00:00
Petr Sumbera
21b83a1eae Bug 1701154 - Add missing #include for MakeScopeExit. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D109873
2021-04-06 07:33:03 +00:00
Andreas Pehrson
a0330eee61 Bug 1405083 - Increase pixel checking threshold. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D110408
2021-04-06 07:17:32 +00:00
Andreas Pehrson
e66a52eccb Bug 1405083 - Improve test_gUM_basicScreenshare.html. r=padenot
This does several things, including:
- Reduces the timeout in case a pixel doesn't match from full test timeout to
  30 seconds.
- Reduces the log spam when a pixel doesn't match to only write the last color
  checked instead of every check (once per second). This writes the last color
  also when passing for completion in logs.
- Stops tracks and exits fullscreen before logging a failure, meaning the
  constraints-scaled image becomes visible in the screenshot from try.
- Increases the size of the video element showing the screensharing video track,
  so that pixel check failures are easy to confirm in screenshots from try.

Differential Revision: https://phabricator.services.mozilla.com/D110407
2021-04-06 07:17:31 +00:00
Andreas Pehrson
5f5b96d1f8 Bug 1405083 - Retain newlines when writing stack for errors in head.js. r=padenot
This makes it easier to read logs.

Differential Revision: https://phabricator.services.mozilla.com/D110406
2021-04-06 07:17:31 +00:00
Andreas Pehrson
b412b5715d Bug 1405083 - Fix failure paths across head.js, mediaStreamPlayback.js and pc.js. r=padenot
Prior to this patch various failure paths, e.g., runTest() from
mediaStreamPlayback.js would call SimpleTest.finish() twice.

This patch fixes this so no path will call finish only on failure (and not on
success) to make responsibilities clear. This applies to PeerConnectionTest.run
and runTestWhenReady.

runTestWhenReady will be in charge of calling finish for all paths through the
test framework. Its callers runTest and runNetworkTest will stop calling finish.

The responsibility for calling networkTestFinished is moved from
PeerConnectionTest.run to runNetworkTest since the latter calls
startNetworkAndTest which is the analogous start function. At the same time,
networkTestFinished stops calling through to finish since that is now the
responsibility of runTestWhenReady.

All users of the relevant APIs are updated to comply. In many cases related code
is modernized and cleaned up to support the new pattern and to improve
readability.

Differential Revision: https://phabricator.services.mozilla.com/D110405
2021-04-06 07:17:30 +00:00
Alexandru Michis
ee9dab6aa9 Backed out changeset a373ca9138d7 (bug 1690956) for causing mochitest crashes in ReportMemory.
CLOSED TREE
2021-04-06 08:08:07 +03:00
Mark Striemer
27ca0cb3ee Bug 1702201 - Fix Heartbeat infobar with proton enabled r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110632
2021-04-06 04:26:36 +00:00
Mark Striemer
e86b291995 Bug 1702327 - Fix accessible/.../mac/browser_app.js r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110865
2021-04-06 04:26:35 +00:00
Mark Striemer
1b17e2e325 Bug 1702327 - Fix browser_crash_oopiframe.js r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110631
2021-04-06 04:26:35 +00:00
Mark Striemer
20da7cda27 Bug 1702327 - Fix browser_web_protocol_handlers.js r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D110630
2021-04-06 04:26:35 +00:00