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

5269 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 6c1156b96e Bug 1813556 - Expose finalization registry callback objects to active JS r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D168423
2023-02-01 09:07:23 +00:00
serge-sans-paille da45a5a7c1 Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
And use nsID::ToProvidedString(...) method when suitable.

This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Norisz Fay 73c377bc06 Backed out changeset 7d4b830c1cf6 (bug 1811934) for causing wpt failures on pointerevent_pointerrawupdate_in_pointerlock.html CLOSED TREE 2023-01-31 21:44:59 +02:00
serge-sans-paille 2dfe139f78 Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
And use nsID::ToProvidedString(...) method when suitable.

This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Narcis Beleuzu 9e96e91239 Backed out 3 changesets (bug 1812275, bug 1812035, bug 1806501) for bc failures on browser_aboutprocesses_default_options.js .
Backed out changeset 4f13d8470d97 (bug 1806501)
Backed out changeset a276a2939cee (bug 1812275)
Backed out changeset 67775732c1a8 (bug 1812035)
2023-01-27 17:14:57 +02:00
Andreas Farre 9956dde6c8 Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed, and count the number
of living processes, also when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-01-27 09:17:16 +00:00
Sandor Molnar b6d0a71936 Backed out 2 changesets (bug 1812035, bug 1806501) for causing bc failures in ipc/glue/test/browser/browser_utility_audioDecodeCrash.js CLOSED TREE
Backed out changeset d7f1a776a986 (bug 1806501)
Backed out changeset 4a44daa59af4 (bug 1812035)
2023-01-24 18:31:34 +02:00
Andreas Farre c71e5fdf12 Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed, and count the number
of living processes, also when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-01-24 15:37:49 +00:00
Peter Van der Beken 35f615378f Bug 1811858 - Remove some unused DOM error codes. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D167568
2023-01-24 09:02:35 +00:00
alwu 470b9ff545 Bug 1808804 - part1 : return a new error when the MF CDM process crashes. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D166409
2023-01-17 20:00:46 +00:00
Nika Layzell 9d6bb19c23 Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Nika Layzell 852d02ec16 Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.

Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.

Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Sandor Molnar 41b78439d0 Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell f7772bb6ae Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Nika Layzell 8d118308de Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.

Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.

Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Dave Townsend 1135edff9e Bug 1777973: Remove MOZ_NEW_XULSTORE implementation. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D166786
2023-01-16 19:21:23 +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
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
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
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
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 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
Olli Pettay e95a59aea1 Bug 1802395, remove an unneeded member variable, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163209
2022-11-29 20:00:13 +00:00
Butkovits Atila ad2f5d9eaa Backed out changeset 71f3b5ae4779 (bug 1802395) for causing bustages at CycleCollectedJSContext.h. CLOSED TREE 2022-11-28 23:58:15 +02:00
Olli Pettay 80e37fde01 Bug 1802395, remove an unneeded member variable, r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163209
2022-11-28 21:00:34 +00:00
Paul Adenot fe50153ef6 Bug 1801922 - Warn if kInitialModuleCount is too low. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D162873
2022-11-25 12:59:44 +00:00
Butkovits Atila 65e34f4628 Backed out 4 changesets (bug 1768581, bug 1709184) for causing high frequency Xpcshell failures at test_bug1274685_unowned_list.js. CLOSED TREE
Backed out changeset 6bae0f16eae9 (bug 1768581)
Backed out changeset 1f111f5b8baf (bug 1768581)
Backed out changeset a3d89b2ef44a (bug 1709184)
Backed out changeset 98f1dc6f0123 (bug 1709184)
2022-11-23 22:09:33 +02:00
Jens Stutte e86c2f3f76 Bug 1768581 - Part 12: 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-11-23 16:03:18 +00:00
Jens Stutte 0968ae7a04 Bug 1709184 - Part 11: 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-11-23 16:03:17 +00:00
Jens Stutte b2a17869b6 Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-23 16:03:17 +00:00
Marco Castelluccio 2784a97322 Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162640
2022-11-22 13:37:48 +00:00
Tawah Peggy 52f00192d7 Bug 1794536 - Delete MemoryTelemetry::GetUniqueSetSize() and its decleration. r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D160425
2022-11-20 22:04:22 +00:00
Cristian Tuns c8caa32fbd Backed out 3 changesets (bug 1709184, bug 1768581) for causing xpcshell failures CLOSED TREE
Backed out changeset bd3bc1478107 (bug 1768581)
Backed out changeset c7465ec6154e (bug 1709184)
Backed out changeset 032bf39acabb (bug 1709184)
2022-11-19 06:31:59 -05:00
Jens Stutte d8100b452d Bug 1768581 - Part 12: 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-11-19 10:15:32 +00:00
Jens Stutte 18f605d9a6 Bug 1709184 - Part 11: 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-11-19 10:15:31 +00:00
Jens Stutte d30ecf51ea Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Depends on D160627

Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-19 10:15:31 +00:00
Marian-Vasile Laza 1b3edb2b0b Backed out 3 changesets (bug 1768581, bug 1709184) for causing mochitest failures on LateWriteChecks.cpp. CLOSED TREE
Backed out changeset c49173f72e0d (bug 1768581)
Backed out changeset a4c2b2d0b63a (bug 1709184)
Backed out changeset 1181bdcde598 (bug 1709184)
2022-11-18 12:34:22 +02:00