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

22443 Коммитов

Автор SHA1 Сообщение Дата
Ray Kraesig 7f1075b129 Bug 1810244 - restrict use of dynamic thread names via moz_task r=application-update-reviewers,bytesized,emilio
Bug 1613440 added a checker to prevent a profusion of new threads.
Unfortunately, it operates directly on C++ source code, and there is no
equivalent for Rust code.

It _is_ possible to construct such an equivalent (see bug 1810242), but
it's nontrivial. For now, let's just prevent the use of dynamic thread
names, to minimize the profusion of uninterestingly-distinct thread
names in our `XPCOMSpinEventLoopStack` crash-report field.

Differential Revision: https://phabricator.services.mozilla.com/D166842
2023-01-16 16:02:13 +00:00
Nika Layzell 900b7f81e3 Bug 1809749 - Use the correct thread for timed out idle runnables from off-main-thread, r=smaug,mccr8
This code was previously incorrectly targeting the timer at the dispatching
thread. This is fortunately not an issue, as idle runnables with timeouts are
always dispatched from the main thread, however it could be an issue for future
idle runnables with timeouts dispatched from off-main-thread.

Differential Revision: https://phabricator.services.mozilla.com/D166610
2023-01-12 15:24:13 +00:00
Sandor Molnar c372fd6b5d Backed out changeset 577c7f0d1780 (bug 1809749) for causing assertion failures in xpcom/threads/nsThreadUtils.cpp CLOSED TREE 2023-01-12 03:52:06 +02:00
Nika Layzell a7a3096804 Bug 1809749 - Use the correct thread for timed out idle runnables from off-main-thread, r=smaug,mccr8
This code was previously incorrectly targeting the timer at the dispatching
thread. This is fortunately not an issue, as idle runnables with timeouts are
always dispatched from the main thread, however it could be an issue for future
idle runnables with timeouts dispatched from off-main-thread.

Differential Revision: https://phabricator.services.mozilla.com/D166610
2023-01-12 01:06:18 +00:00
Olli Pettay aec1529203 Bug 1807838, try to translate elements before load event fires, r=emilio
...but call sizeToContent* only after AppWindow::OnChromeLoaded().

Differential Revision: https://phabricator.services.mozilla.com/D166011
2023-01-10 22:47:20 +00:00
Nihal Jere 8e6e2e8301 Bug 434327 - Fallback to $HOME in absence of $HOME/Desktop r=settings-reviewers,Gijs
There are many Linux systems where $HOME is preferred as the "default"
directory to $HOME/Desktop.

This prevents the creation of $HOME/Desktop every time about:preferences
is opened.

Differential Revision: https://phabricator.services.mozilla.com/D165979
2023-01-05 23:45:14 +00:00
Sylvestre Ledru 11543ba854 Bug 1802290 - Remove +x permissions on more files r=linter-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D165841
2023-01-03 08:17:50 +00:00
Sylvestre Ledru 7b6a1139ad Bug 1807901 - Fix typos in some documentation directories r=linter-reviewers,andi DONTBUILD
Fix some typos in new directories

Differential Revision: https://phabricator.services.mozilla.com/D165660
2023-01-02 16:07:49 +00:00
Greg Stoll 2b461b0360 Bug 1744362 - Part 7: support code for about:third-party r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D164489
2022-12-30 20:10:04 +00:00
Sylvestre Ledru 1f8d23143a Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D165559
2022-12-28 09:52:44 +00:00
Butkovits Atila 5e31c1c2cf Backed out 12 changesets (bug 1744362) for causing build bustages.
Backed out changeset 3f63f21115e2 (bug 1744362)
Backed out changeset 0df403e8f6ba (bug 1744362)
Backed out changeset 34f51e6aee96 (bug 1744362)
Backed out changeset 39ff51df4a45 (bug 1744362)
Backed out changeset da9133df4cd4 (bug 1744362)
Backed out changeset 315c57948afa (bug 1744362)
Backed out changeset a2d8f526e0ff (bug 1744362)
Backed out changeset 401ebbc0159d (bug 1744362)
Backed out changeset 2911fe484cc3 (bug 1744362)
Backed out changeset d1f4b99f352b (bug 1744362)
Backed out changeset 0a3ce8ea039e (bug 1744362)
Backed out changeset ab1292118c00 (bug 1744362)
2022-12-27 22:54:30 +02:00
Greg Stoll 78bf088bb7 Bug 1744362 - Part 7: support code for about:third-party r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D164489
2022-12-27 20:06:41 +00:00
Stanca Serban 822be63b67 Backed out 11 changesets (bug 1744362) for causing multiple failures and build bustages. CLOSED TREE
Backed out changeset 4b2e3689cea0 (bug 1744362)
Backed out changeset cf1db931c466 (bug 1744362)
Backed out changeset 8c87571dbb3e (bug 1744362)
Backed out changeset 8b50446f91e5 (bug 1744362)
Backed out changeset 848632184f56 (bug 1744362)
Backed out changeset acfdb2bcaa9f (bug 1744362)
Backed out changeset 80b67f7ea109 (bug 1744362)
Backed out changeset c88902b60d1f (bug 1744362)
Backed out changeset 438f74bb5b7c (bug 1744362)
Backed out changeset 704a4150d210 (bug 1744362)
Backed out changeset 1dd7e7c111da (bug 1744362)
2022-12-27 16:25:04 +02:00
Greg Stoll 934ea325f6 Bug 1744362 - Part 7: support code for about:third-party r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D164489
2022-12-27 12:59:09 +00:00
Zach Hoffman 51355ff920 Bug 1422237 - Implement the color-gamut media feature r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D165385
2022-12-26 22:49:46 +00:00
Marco Castelluccio f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Mark Banner 8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
fanie 20bc7ced74 Bug 1689631 - Renamed onabsolutedeviceorientation to ondeviceorientationabsolute. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164964
2022-12-22 19:12:41 +00:00
Nika Layzell 829856daa2 Bug 1805963 - Part 2: remove support for local execution, r=xpcom-reviewers,jstutte
The only consumer of this feature has been removed, so we don't need it
anymore. It acts very differently than other runnables run on the main thread,
so removing it will simplify things.

Differential Revision: https://phabricator.services.mozilla.com/D164841
2022-12-21 22:01:25 +00:00
Marian-Vasile Laza 06e6971fa0 Backed out 2 changesets (bug 1805963) for causing mochitest failures on LSObject.cpp. CLOSED TREE
Backed out changeset d70e48585724 (bug 1805963)
Backed out changeset f627a5289831 (bug 1805963)
2022-12-20 23:53:40 +02:00
Nika Layzell ada6120335 Bug 1805963 - Part 2: remove support for local execution, r=xpcom-reviewers,jstutte
The only consumer of this feature has been removed, so we don't need it
anymore. It acts very differently than other runnables run on the main thread,
so removing it will simplify things.

Differential Revision: https://phabricator.services.mozilla.com/D164841
2022-12-20 20:22:03 +00:00
Robert Longson 3bd3c1b2e5 Bug 1795568 Part 2 - Rewrite deprecated code in nsAppFileLocationProvider.cpp r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159967
2022-12-20 09:04:57 +00:00
Csoregi Natalia 3853193d23 Backed out changeset c5e3cdc1f944 (bug 1795568) for causing hybrid bustage on nsAppFileLocationProvider.cpp. CLOSED TREE 2022-12-19 23:54:41 +02:00
Robert Longson 21cc8e3ed0 Bug 1795568 Part 2 - Rewrite deprecated code in nsAppFileLocationProvider.cpp r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159967
2022-12-19 20:46:22 +00:00
Otto Länd d2fd1f762a Bug 1799222, 1799222: apply code formatting via Lando
# ignore-this-changeset
2022-12-16 19:09:03 +00:00
Nika Layzell 9e65358787 Bug 1799222 - Part 1: Prevent accidental dispatches to threadpool and timer threads, r=xpcom-reviewers,necko-reviewers,geckoview-reviewers,media-playback-reviewers,jesup,m_kato,padenot,kmag
Differential Revision: https://phabricator.services.mozilla.com/D161349
2022-12-16 17:09:16 +00:00
Nika Layzell 0b3db36eaf Bug 1805961 - DrainDirectTasks before and after OnProcessNextEvent, r=smaug
This will mean that we drain direct tasks immediately after executing
things like native OS messages through OnProcessNextEvent, and also that
we drain direct messages immediately when entering a nested event loop,
rather than after processing the first runnable in that nested event
loop. This should make the behaviour a bit more consistent.

Differential Revision: https://phabricator.services.mozilla.com/D164839
2022-12-16 16:23:16 +00:00
Jan Varga cb23cc0476 Bug 1791750 - Add a new argument to serialization methods for passing optional callbacks; r=dom-storage-reviewers,ipc-reviewers,nika,jari
This just about adding a new argument to all relevant places.

Differential Revision: https://phabricator.services.mozilla.com/D164340
2022-12-16 06:38:12 +00:00
Otto Länd 1df40cc794 Bug 1805931, 1805931: apply code formatting via Lando
# ignore-this-changeset
2022-12-15 19:51:16 +00:00
Andrew McCreight ce28c41da0 Bug 1805931, part 2 - Automated removal of uses of ROOT and UNROOT CC macros. r=smaug
As of the prior patch, these are no longer needed. I removed
these with a script, then ran clang-format on the files, then
manually reverted a few unrelated changed from the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D164829
2022-12-15 19:45:01 +00:00
Andrew McCreight dec541b90a Bug 1805931, part 1 - Declare Root and Unroot inline to save on boilerplate. r=smaug
Bug 181137 made ContentIteratorBase no longer refcounted, but
it did not remove this bit of CC boilerplate. With the inline
root, using this macro in a non-refcounted class is an error.

ObjectModel.h and ClientWebGLContext.cpp used macros to define
root and unroot, but that is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D164828
2022-12-15 19:45:00 +00:00
Paul Adenot e9c8ca64ee Bug 1802349 - Document about:logging. r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D163012
2022-12-15 14:11:07 +00:00
Chris Martin cfcb9fcb81 Bug 1799470 - Merge old embedding logic into ContentChild r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164596
2022-12-15 03:06:22 +00:00
Chris Martin 9f2950c821 Bug 1799470 - Remove dead startup code r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164595
2022-12-15 03:06:22 +00:00
Ray Kraesig b342917fc2 Bug 1772908 - [5/6] Implement WinHandleWatcher r=xpcom-reviewers,nika
Implement a version of Chromium's `base::ObjectWatcher` which does not
rely on the Chromium MessageLoop.

Differential Revision: https://phabricator.services.mozilla.com/D159562
2022-12-13 16:38:06 +00:00
Nazım Can Altınova ee86610605 Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-13 14:19:07 +00:00
Jens Stutte ca0e30e831 Bug 1805368 - Always check mTimer before using it. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D164552
2022-12-13 13:21:25 +00:00
Makoto Kato a628865b23 Bug 1805127 - Don't use AndroidBridge to get release version. r=geckoview-reviewers,calu
Actually, we can get Android release version from JNI generator, so it is
unnecessary to use `AndroidBridge` to get it.

Also, this cleans up unused AndroidBridge functions.

Differential Revision: https://phabricator.services.mozilla.com/D164431
2022-12-13 11:57:06 +00:00
Sylvestre Ledru 04363d3827 Bug 1802689 - Add missing licenses info in Cargo.toml r=mhoye,necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D163157
2022-12-13 09:14:44 +00:00
Sandor Molnar 18b90e2c5a Backed out 9 changesets (bug 1796585, bug 1796152, bug 1797284, bug 1796554, bug 1800076, bug 1802349, bug 1797497) for causing mochitest failures in xpcom/base/nsTraceRefcnt.cpp. CLOSED TREE
Backed out changeset 6002e93434a2 (bug 1802349)
Backed out changeset 000cd664c157 (bug 1800076)
Backed out changeset e3534e639e2c (bug 1796554)
Backed out changeset 1d22428d764c (bug 1797497)
Backed out changeset b0dbe35d48be (bug 1797284)
Backed out changeset b415d4b85ab6 (bug 1796585)
Backed out changeset dc1c2ffbc38e (bug 1796554)
Backed out changeset c44bae1f03f5 (bug 1796152)
Backed out changeset 3eab5e71b1c7 (bug 1796152)
2022-12-13 01:52:06 +02:00
Paul Adenot 50464994b8 Bug 1802349 - Document about:logging. r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D163012
2022-12-12 17:32:15 +00:00
Jens Stutte cd118fb4f9 Bug 1768581 - Part 8: Exclude AppShutdownConfirmed from any Ns_ProcessPendingEvents. r=xpcom-reviewers,nika
Depends on D163128

Differential Revision: https://phabricator.services.mozilla.com/D163175
2022-12-12 15:21:29 +00:00
Jens Stutte f933869f5f Bug 1768581 - Part 4: Postpone main nsThread destruction after full XPCOM shutdown. r=xpcom-reviewers,nika
Some debug infrastructure like MOZ_WEAKPTR_INIT_THREAD_SAFETY_CHECK  that can apparently be triggered by nsComponentManagerImpl::gComponentManager->FreeService() seem to rely on the existence of a serial event target even if they do not post any events. So it seems sound to keep a representation of the main thread as nsThread object until after final XPCOM shutdown.
But nsThreadManager::ShutdownMainThread() does more, it processes the last round of events, removes the thread's observer  and closes down the background event target. We do not want to move these operations to happen later than before, such that we split the nsThread release into a separate function and move that together with AbstractThread::ShutdownMainThread() behind FreeService().

Depends on D160628

Differential Revision: https://phabricator.services.mozilla.com/D162497
2022-12-12 15:21:28 +00:00
Jens Stutte db3cae107a Bug 1768581 - Part 3 Swap the order of MaybeFastShutdown and KillClearOnShutdown inside AdvanceShutdownPhase and add extra NS_ProcessPendingEvents for the main thread. r=xpcom-reviewers,nika
This change will effectively anticipate the fast shutdown by half a phase, making it more coherent with the phase it is defined to happen.

Depends on D160250

Differential Revision: https://phabricator.services.mozilla.com/D160628
2022-12-12 15:21:27 +00:00
Jens Stutte 3be24b9a7b Bug 1709184 - Part 2: Add a paranoia check against re-entrance in AdvanceShutdownPhase. r=xpcom-reviewers,nika
Depends on D160176

Differential Revision: https://phabricator.services.mozilla.com/D160250
2022-12-12 15:21:27 +00:00
Jens Stutte 1a706a942e Bug 1709184 - Part 1: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-12-12 15:21:26 +00:00
Jens Stutte cea6eec9e0 Bug 1805147 - Do not hold a lock on mMutex while waiting for the thread to shut down. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D164454
2022-12-12 15:20:07 +00:00
Iulian Moraru e7e2922cb1 Backed out changeset 27f8690ebc50 (bug 1803751) for causing xpcshell failures on test_feature_mainthreadio.js. CLOSED TREE 2022-12-12 17:43:23 +02:00
Nazım Can Altınova 0d5987410a Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D163714
2022-12-12 13:11:56 +00:00
Nika Layzell 9ee7b343e3 Bug 1804755 - Log name for failed ProxyReleaseEvent dispatch warning, r=xpcom-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D164259
2022-12-08 23:26:52 +00:00