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

21462 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 006d770a5f Bug 1529581 - Introduce initHighResolutionWithNamedFuncCallback for nsITimer. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D129654
2021-11-03 15:23:27 +00:00
Kershaw Chang 34f9cb2633 Bug 1727180 - Call XRE_InitCommandLine for xpcshell, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124890
2021-11-02 16:01:10 +00:00
Iulian Moraru 4008be6b81 Backed out 10 changesets (bug 1529581) for causing bp-hybrid build bustages on TestPacer. CLOSED TREE
Backed out changeset e7b7072ac90c (bug 1529581)
Backed out changeset 3c5d719c54db (bug 1529581)
Backed out changeset 39e2b3143ecd (bug 1529581)
Backed out changeset bd2122ea3cc3 (bug 1529581)
Backed out changeset 033cc341ad2e (bug 1529581)
Backed out changeset 8a8ee5055c0d (bug 1529581)
Backed out changeset 8c204db3e91d (bug 1529581)
Backed out changeset 142d94304c86 (bug 1529581)
Backed out changeset ac180bf89fd0 (bug 1529581)
Backed out changeset d0640f52161d (bug 1529581)
2021-11-02 17:53:17 +02:00
Andreas Pehrson b9f92d2e95 Bug 1529581 - Introduce initHighResolutionWithNamedFuncCallback for nsITimer. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D129654
2021-11-02 14:35:58 +00:00
Mozilla Releng Treescript 8a51c9e60d Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-11-01 16:01:18 +00:00
Toshihito Kikuchi a223b1cd95 Bug 1679741 - Not enable IOInterposer when Kingsoft Internet Security is installed. r=gerald
Kingsoft's modules are injected before `IOInterposer` and starts a thread that
calls `NtReadFile`.  It conflicts with the main thread where `IOInterposer` hooks
`NtReadFile`.

This patch is a mitigation until we make `IOInterposer` compatible with such
third-party injections (bug 1646804).

Differential Revision: https://phabricator.services.mozilla.com/D129876
2021-10-30 15:25:22 +00:00
Emilio Cobos Álvarez f85c48f96d Bug 1525107 - Implement <meta name=color-scheme>. r=dholbert
There are still tests failing because
https://bugzilla.mozilla.org/show_bug.cgi?id=1736034 hasn't been synced
yet.

Once that lands, they will still fail because we don't change
Canvas/CanvasText based on color-scheme, but that I'm attaching
patches for after this one.

Differential Revision: https://phabricator.services.mozilla.com/D129743
2021-10-29 19:58:24 +00:00
Riya c45c0f507e Bug 1730126 - Enable ESLint rule no-loss-of-precision. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D129336
2021-10-29 08:29:26 +00:00
Florian Quèze 1c3f80fe51 Bug 1738285 - move AUTO_PROFILE_FOLLOWING_RUNNABLE to its own header, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D129825
2021-10-28 20:35:06 +00:00
Doug Thayer 90b2905a58 Bug 1737501 - Allow contextmenu option on Windows SystemStatusBar r=mconley
We want to be able to have a different behavior for interactions with an entry
in the Windows system tray - specifically, we want to be able to open a window
on left click, and show a menu on right click. This patch allows us to control
this with a "contextmenu" attribute on the menu passed in to `AddItem`, and
receive a "systemstatusbarclick" event in the case of a left click.

Regarding tests, I don't know that we have a good way of testing this?
Suggestions are of course welcome here.

Differential Revision: https://phabricator.services.mozilla.com/D129413
2021-10-28 16:07:31 +00:00
Emilio Cobos Álvarez 5b31eea4fd Bug 1737676 - Use GTK menu radius on native context menus and panels. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D129439
2021-10-28 10:52:31 +00:00
Norisz Fay d1c70d553a Merge mozilla-central to autoland on a CLOSED TREE 2021-10-27 16:08:44 +03:00
Norisz Fay 51e8153e60 Backed out 5 changesets (bug 1736459) for causing Windows crashes (bug 1738034) a=backout
Backed out changeset c934eeb21692 (bug 1736459)
Backed out changeset 0b2da7db414c (bug 1736459)
Backed out changeset 798893f69a02 (bug 1736459)
Backed out changeset 2a8f412c4d08 (bug 1736459)
Backed out changeset 59eeaeafdf67 (bug 1736459)
2021-10-27 16:02:24 +03:00
Paul Bone 24067c4312 Bug 1737199 - Avoid some VLAs when using jemalloc_stats r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129228
2021-10-27 08:46:51 +00:00
Mike Hommey 9f1048850f Bug 1736459 - Don't initialize env_logger when stdout/stderr don't exist on Windows. r=xpcom-reviewers,nika
This works around a regression in rust 1.56's libstd.

Differential Revision: https://phabricator.services.mozilla.com/D129571
2021-10-26 23:11:39 +00:00
Luca Greco b74268bdf7 Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-26 16:44:10 +00:00
criss 5e97bafc4e Backed out changeset 27b73fdbb4a9 (bug 1737199) for causing bustages on memory/replace/logalloc/replay/Replay.cpp. CLOSED TREE 2021-10-26 13:00:29 +03:00
Paul Bone a4b9d48ced Bug 1737199 - Avoid some VLAs when using jemalloc_stats r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D129228
2021-10-26 05:22:05 +00:00
Iulian Moraru a946af09ec Backed out 2 changesets (bug 1636629) for causing xpcshell failures on test_ext_permissions_api.js. CLOSED TREE
Backed out changeset 9791a5dc84d8 (bug 1636629)
Backed out changeset 8ec39d08c9af (bug 1636629)
2021-10-25 22:17:27 +03:00
Luca Greco ab508f1a0e Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-25 17:49:34 +00:00
Riya ac2ad7e7f2 Bug 1737032 - Removed traces of "remote XUL". r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129255
2021-10-25 11:00:47 +00:00
Tooru Fujisawa 69f169c510 Bug 1732168 - Part 2: Add ShutdownPhase after JS_ShutDown. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D126633
2021-10-22 21:03:52 +00:00
Tooru Fujisawa b724088e99 Bug 1732168 - Part 1: Remove unused ShutdownPhase::Last variant. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D126632
2021-10-22 21:03:52 +00:00
Chris Peterson cdadc6c4db Bug 1201994 - Replace mozalloc_abort() with MOZ_CRASH_UNSAFE() in NS_DebugBreak(). r=xpcom-reviewers,mccr8
mozalloc_abort() implies OOM. NS_DebugBreak() is used for other debug breaks and aborts. Calling MOZ_CRASH_UNSAFE(aMsg) instead of MOZ_CRASH() is unlikely to cause new OOM crashes because NS_DebugBreak() already did a lot of work to format aMsg and walk the stack before calling Abort() and MOZ_CRASH_UNSAFE(aMsg).

Differential Revision: https://phabricator.services.mozilla.com/D129116
2021-10-22 02:14:57 +00:00
Jens Stutte edc33dea57 Bug 1735129: Add thread's name in nsThread::Shutdown's SpinEventLoopUntil annotation. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128270
2021-10-21 12:46:06 +00:00
Jens Stutte 40e243359c Bug 1735284: Add a check in nsThread::ShutdownInternal if the shutdown event could be dispatched. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128167
2021-10-21 11:51:09 +00:00
Jens Stutte 55a8b2e138 Bug 1735129: Add thread-safe name getter to nsThread. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D128356
2021-10-21 11:51:08 +00:00
Emilio Cobos Álvarez f317384568 Bug 1736518 - Make browser.tabs.drawInTitlebar a tri-state. r=stransky,Gijs
To more properly support Linux having a different default at runtime.

Expose the resolved value in appinfo for convenience, and use it in the
front-end as needed.

Differential Revision: https://phabricator.services.mozilla.com/D129004
2021-10-21 09:07:12 +00:00
Paul Bone 1a20d57362 Bug 1735250 - Provide a less-magic array size for jemalloc_stats r=glandium
jemalloc_stats takes an array for its second argument.  It expects this
array to have enough space for all the bins, previously the maximum was set
as a magic number.  To make it dependent on the configured bins this patch
replaces the compile-time constant with a function.

Differential Revision: https://phabricator.services.mozilla.com/D127761
2021-10-21 06:42:34 +00:00
Haik Aftandilian 129adcc9a3 Bug 1730066 - Enable tab unloading on macOS r=spohl
Enable tab unloading on macOS when the OS memory pressure level reaches "critical".

Add a gtest that exercises the memory pressure response by testing that a tab unload attempt occurs and the internal memory-pressure notification is sent. Test does not cause a real OS memory pressure event.

Use the memory_pressure(1) macOS command to generate artificial memory pressure events to test the browser response. For example, the following artificially puts the OS in the "critical" memory pressure level for 60 seconds.

`$ sudo memory_pressure -S -l critical -s 60`

Differential Revision: https://phabricator.services.mozilla.com/D126560
2021-10-21 04:43:35 +00:00
Toshihito Kikuchi 16a8fe4d37 Bug 1729911 - Define minInactiveDurationInMS not to unload fresh tabs. r=NeilDeakin
Tab unloading should not unload "fresh" tabs i.e. tabs that were accessed
very recently, even though one of them was the least recently used tab.

To achieve it, this patch introduces the minimum inactive duration and we
prevent tabs that were accessed in the last period of that duration from
being unloaded.

This patch sets the default value to 10 minutes based on the historgram
`TAB_UNLOAD_TO_RELOAD` where the median was 60sec and the 75th percentile
was 1040sec.  This value can be overriden by the parameter of the TabUnloader's
APIs so that about:unloads and the tests can unload those fresh tabs.

Differential Revision: https://phabricator.services.mozilla.com/D125824
2021-10-20 23:22:57 +00:00
Nick Alexander bf2b677248 Bug 1736876 - Stop migrating profiles into App Package builds. r=agashlin
The product experience migrating a profile when a non-MSIX Firefox is
running is not ideal, so we're going to always start with a fresh
profile for simplicity.

This is a straight backout of the "meat" of Bug 1709969 - Migrate from
an existing profile when running from an app package for the first
time, namely `hg backout -r 5136d2f684012dc3d586dcb10374f8c6eda8b6d7`.
The changes from follow-up Bug 1723298 (correcting test failures on
devedition), namely revision a4bca433c8f7003a90fda61248f38d9b389c394e,
were manually reverted and the test files deleted.

Differential Revision: https://phabricator.services.mozilla.com/D129066
2021-10-20 21:54:07 +00:00
Gijs Kruitbosch 31a3b7fdfb Bug 1731779 - r=dveditz,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D128061
2021-10-19 22:27:31 +00:00
Valentin Gosu 0ebf029026 Bug 1735299 - Remove last use of unnammed NS_ReleaseOnMainThread r=extension-reviewers,rpl,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D128177
2021-10-19 13:44:25 +00:00
Valentin Gosu 8344ba5368 Bug 1735306 - Add nsCStringASCIICaseInsensitiveHashKey r=xpcom-reviewers,necko-reviewers,nika,hsivonen,dragana
Differential Revision: https://phabricator.services.mozilla.com/D116217
2021-10-19 10:49:46 +00:00
Paul Zuehlcke fa3d978f5d Bug 1696685 - r=xpcom-reviewers,necko-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D128630
2021-10-19 10:17:03 +00:00
criss 2ee81d4656 Backed out changeset 346bcc20a94e (bug 1696685) for causing bustages on nsEscape.h. CLOSED TREE 2021-10-19 12:59:41 +03:00
Paul Zuehlcke 54d4322ca1 Bug 1696685 - r=xpcom-reviewers,necko-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D128630
2021-10-19 09:34:08 +00:00
Gerald Squelart df50ece611 Bug 1735697 - Remove profiler_can_accept_markers(), use profiler_thread_is_being_profiled() instead - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D128577
2021-10-18 23:11:30 +00:00
Gerald Squelart 424aac2b72 Bug 1735697 - Only record markers from actually-profiled threads - r=florian
`profiler_add_marker()` now checks if the marker's target thread is actively being profiled. This is to prevent adding markers that would be discarded anyway, from taking CPU time to process, and from using space in the profile buffer.

This means that `profiler_thread_is_being_profiled(ProfilerThreadId)` must be used when a marker is intended for another thread, i.e., when it uses the MarkerThreadId option.

(Note: since baseprofiler::profiler_thread_is_being_profiled(ProfilerThreadId) is not available, baseprofiler::AddMarker cannot prevent markers targetted at non-profiled thread; There are none yet anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D128576
2021-10-18 23:11:30 +00:00
Emilio Cobos Álvarez 2cdb78d6a6 Bug 1509931 - Remove -moz-gtk-csd-transparent-background. r=stransky,desktop-theme-reviewers,dao
We always use alpha visual for WebRender, and appearance: none is
unnecessary (root element has no intrinsic appearance).

Differential Revision: https://phabricator.services.mozilla.com/D128682
2021-10-18 18:51:41 +00:00
Emilio Cobos Álvarez b742f680db Bug 1509931 - Expose titlebar radius as a chrome-only CSS environment variable. r=stransky
Mostly plumbing.

Differential Revision: https://phabricator.services.mozilla.com/D128680
2021-10-18 16:22:13 +00:00
Bobby Holley 041a1558be Bug 1734262 - Suppress thread leak reports for the monitor thread. r=decoder
For the same reasons discussed in the previous commit, it's impractical
to join these threads on shutdown, and so we should suppress thread leak
reports for them.

Differential Revision: https://phabricator.services.mozilla.com/D128651
2021-10-16 16:29:32 +00:00
Bobby Holley 066888880d Bug 1734262 - Stop registering the async process monitor thread with the profiler. r=gerald
This thread waits on a syscall for the completion of an
asynchronously-spawned process. Since there's no general guarantee that
Gecko will outlive the proccesses it spawns, this thread can continue
running all the way up until the process terminates. And while we
generally endeavor to have teardown logic join any spawned threads, we
don't have an easy way to interrupt the platform-specific routines that
the thread might be waiting on.

That leaves us with instrumenting the profiler code to handle APIs
arbitrarily late during shutdown (i.e. after static destructors have
run), or simply not registering the thread with the profiler. The latter
is much simpler, and doesn't cost us much because these threads never do
any interesting computation, and thus aren't likely to be relevant to
the profiler. This registration was added in bug 1323100, which was just
a grep-driven activity which didn't identify any particular need for
profiling this thread.

Differential Revision: https://phabricator.services.mozilla.com/D128532
2021-10-16 16:29:31 +00:00
Emilio Cobos Álvarez c4b7109fac Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
Steve Fink 436b3f12a2 Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-14 18:15:40 +00:00
Steve Fink b36e10c7b1 Bug 1732161 - Replace bools with CCReasons for the scheduler control variables. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127013
2021-10-14 18:15:39 +00:00
Steve Fink 848d221ba0 Bug 1732161 - Remove unused ccType from ShouldMergeZones r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127012
2021-10-14 18:15:39 +00:00
Steve Fink 80157d06f4 Bug 1732161 - Pass through explicit ccIsManual to reduce usage of ccType r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D127011
2021-10-14 18:15:39 +00:00
Chris Peterson df301c36c2 Bug 1723674 - Move nsUUIDGenerator logic to new nsID::GenerateUUID() factory functions that use nsRandomGenerator. r=keeler
This changeset is an adaptation of the accepted changes (but not landed) for bug 1700675:

https://phabricator.services.mozilla.com/D118714

Also, clean up some old (1998!) JavaDoc comments that just make the code more difficult to read.

Differential Revision: https://phabricator.services.mozilla.com/D124312
2021-10-14 03:28:49 +00:00