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

5121 Коммитов

Автор SHA1 Сообщение Дата
Steve Fink 819ec57dae Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-05-27 23:42:54 +00:00
Narcis Beleuzu e3d25251cc Backed out changeset 7f67e3634e8f (bug 1735434) for multiple failures/crashes on nsJSEnvironment.cpp . CLOSED TREE 2022-05-27 19:39:37 +03:00
Steve Fink ab9c7c302b Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-05-27 15:44:22 +00:00
Kagami Sascha Rosylight 846680d799 Bug 1757635 - Part 1: Add `using ::ImplCycleCollectionUnlink` inside NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS r=mccr8
Otherwise the global ImplCycleCollectionUnlink for JS members are shadowed by mozilla::dom::ImplCycleCollectionUnlink and can't be used.

Bug 1756794 is to move all the impls to the single namespace to prevent this, but that requires verbose changes, and currently the only affected uses are from these macros.

Differential Revision: https://phabricator.services.mozilla.com/D147234
2022-05-25 23:41:25 +00:00
Cathy Lu 803a4e8449 Bug 1721220 - Add BAD_STS_CERT error r=geckoview-reviewers,nika,agi,owlish
Differential Revision: https://phabricator.services.mozilla.com/D146234
2022-05-25 17:51:11 +00:00
Kershaw Chang ed4399816c Bug 1754975 - Introduce a new error code for blocking a non-local connection, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D146281
2022-05-18 15:31:07 +00:00
Jon Coppeard 750da6ab68 Bug 1768734 - Make sure JS holders are cleared before a shutdown GC r=mccr8
Previously this was optimized to trace only gray roots in collecting zones, but
there was a bug in that it also skipped clearing roots because this happens
before the start of GC when zones are selected for collection.

Instead, make sure we only perform this optimziation when marking.

Differential Revision: https://phabricator.services.mozilla.com/D146585
2022-05-18 09:04:05 +00:00
Andrew McCreight 5b3d5c09ae Bug 1514936, part 3 - Remove NS_ERROR_NO_AGGREGATION which is no longer used. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D146458
2022-05-17 20:24:20 +00:00
Andrew McCreight fa8bfd1245 Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D146457
2022-05-17 20:24:19 +00:00
Nika Layzell 7d84828a9c Bug 1769332 - Generate XPCOM error code lists for Java, r=geckoview-reviewers,agi,calu
This allows us to replace a number of magic numbers in the
WebRequestError code with automatically generated constants which are
guaranteed to be kept up to date.

This build script is able to run early enough during the build step as
generated files which take a `.jinja` file as an argument are hard-coded
to be run during the pre-export phase for Android builds. As it is just
as simple python script with no other dependencies, this shouldn't
impact geckoview build performance even when using build artifacts.

Differential Revision: https://phabricator.services.mozilla.com/D146356
2022-05-16 18:01:19 +00:00
Kagami Sascha Rosylight c0ac0addf7 Bug 1769290 - Part 5: Apply mozilla-js-handle-rooted-typedef against xpcom r=xpcom-reviewers,mccr8
Depends on D146454

Differential Revision: https://phabricator.services.mozilla.com/D146469
2022-05-16 17:20:30 +00:00
Jens Stutte aa8c3727dc Bug 1766572: Part 3 - Make nsTerminator aware of late shutdown phases. r=xpcom-reviewers,nika
In order to get better shutdown hang reporting, we want to distinguish also the last phases, namely `XPCOMShutdownThreads`, `XPCOMShutdownMainThread` and `CCPostLastCycleCollection`.
This also makes `XPCOMShutdownNotified()` obsolete and we need to slightly re-arrange the watchdog function.

Differential Revision: https://phabricator.services.mozilla.com/D145433
2022-05-13 15:47:53 +00:00
Jens Stutte f02175db9d Bug 1766572: Part 2 - Synchronize KillClearOnShutdown phases with AdvanceShutdownPhase. r=xpcom-reviewers,dthayer,nika
The concept of a shutdown phase is meant to be a finite and named period of time where:

1. we can query if we are in or beyond a given phase
2. we may want to do a fast shutdown
3. we inform the terminator that we reached the next phase
4. if needed/wanted, we notify observers of the associated topic
5. we KillClearOnShutdown smart pointers associated with this phase
6. we do any further, phase-individual cleanup until the next phase starts

`AdvanceShutdownPhase(WithoutNotify)` now provides the functionality for 1. through 5. and must be the only place that calls `KillClearOnShutdown` in order to avoid misalignments.
In doing so, it becomes also the only caller of `MaybeFastShutdown`.

Please refer to bug 1768581 as working on this patch made us think if we should re-work the order inside AdvanceShutdownPhase.

Differential Revision: https://phabricator.services.mozilla.com/D145083
2022-05-13 15:47:52 +00:00
Jens Stutte 13675ac0e6 Bug 1766572: Part 1 - Remove obsolete ShutdownPhase::XPCOMShutdownLoaders. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D145082
2022-05-13 15:47:52 +00:00
Neil Deakin 1ef25b817b Bug 1746052, further restrict the characters that are allowed in filenames, as save as doesn't allow these, r=mccr8
The Android characters are are from DirectoryPaths.jsm, and almost all consumers of the constants here are either windows-specific or are modified/removed by this bug.

Differential Revision: https://phabricator.services.mozilla.com/D135956
2022-05-06 10:00:54 +00:00
Noemi Erli 295eab376a Backed out 14 changesets (bug 1746052) for causing build bustages in nsExternalHelperAppService.cpp CLOSED TREE
Backed out changeset bf46b0add531 (bug 1746052)
Backed out changeset 684b2aca10bb (bug 1746052)
Backed out changeset d4796eeeaf64 (bug 1746052)
Backed out changeset 5cf2378f6eb4 (bug 1746052)
Backed out changeset 2055ec1e9a57 (bug 1746052)
Backed out changeset 1398fc0669d2 (bug 1746052)
Backed out changeset 1f979899c843 (bug 1746052)
Backed out changeset 561a24801d4d (bug 1746052)
Backed out changeset 73e4689120f0 (bug 1746052)
Backed out changeset 9891f3b0229b (bug 1746052)
Backed out changeset 4c1ab30de0bd (bug 1746052)
Backed out changeset 108e14122e53 (bug 1746052)
Backed out changeset 1ee59c52578a (bug 1746052)
Backed out changeset 41fe77c5f4b2 (bug 1746052)
2022-05-05 23:13:33 +03:00
Neil Deakin c2103325e6 Bug 1746052, further restrict the characters that are allowed in filenames, as save as doesn't allow these, r=mccr8
The Android characters are are from DirectoryPaths.jsm, and almost all consumers of the constants here are either windows-specific or are modified/removed by this bug.

Differential Revision: https://phabricator.services.mozilla.com/D135956
2022-05-05 19:46:47 +00:00
Alexandre Lissy c9368d48f0 Bug 1762067 - Distinguish crash in RDD vs Utility r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D145345
2022-05-05 18:02:13 +00:00
Florian Quèze 2c19c7b396 Bug 1767497 - record debug build messages from NS_DebugBreak as profiler markers, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D145357
2022-05-04 07:28:37 +00:00
Csoregi Natalia 7896e7e124 Backed out 13 changesets (bug 1746052) for causing failures on uriloader/exthandler/tests/. CLOSED TREE
Backed out changeset d19cc58e3cab (bug 1746052)
Backed out changeset 229edc158a2b (bug 1746052)
Backed out changeset b0ef7c68abcf (bug 1746052)
Backed out changeset 30de4b77f242 (bug 1746052)
Backed out changeset ebc6720fdab3 (bug 1746052)
Backed out changeset daccb796a093 (bug 1746052)
Backed out changeset 5b76d8d76b2b (bug 1746052)
Backed out changeset a698068d078f (bug 1746052)
Backed out changeset 73d17535d8d1 (bug 1746052)
Backed out changeset 94c95f004221 (bug 1746052)
Backed out changeset 1a389759585a (bug 1746052)
Backed out changeset c91230a8ea90 (bug 1746052)
Backed out changeset 7665f02c114e (bug 1746052)
2022-05-04 01:15:12 +03:00
Mike Hommey 12df1ed1b6 Bug 1766561 - Use %lu for Windows Error types (DWORD). r=rkraesig,xpcom-reviewers,application-update-reviewers,mhowell,bobowen,necko-reviewers,keeler,media-playback-reviewers,bytesized,barret,alwu,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D144914
2022-05-03 20:49:07 +00:00
Mike Hommey b539884bcf Bug 1766561 - Adapt formatting to the difference in ProcessId type across platforms. r=nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D144911
2022-05-03 20:49:04 +00:00
Neil Deakin 4ca62dc2db Bug 1746052, further restrict the characters that are allowed in filenames, as save as doesn't allow these, r=mccr8
The Android characters are are from DirectoryPaths.jsm, and almost all consumers of the constants here are either windows-specific or are modified/removed by this bug.

Differential Revision: https://phabricator.services.mozilla.com/D135956
2022-05-03 19:44:26 +00:00
Butkovits Atila 21b823649b Backed out 2 changesets (bug 1767224, bug 1735434) as requested by dev. CLOSED TREE
Backed out changeset 748b1cb3e178 (bug 1767224)
Backed out changeset aaf1056d8e85 (bug 1735434)
2022-05-03 02:26:38 +03:00
Masayuki Nakano 698d7fe592 Bug 1762115 - part 1: Make `HTMLEditor::HandleInsertBRElement` stop touching `Selection` directly r=m_kato
The strategy of this patch and most following patches is, returning candidate
caret position with `CreateNodeResultBase`, and make each caller choose whether
it updates `Selection` immediately, put it off until exiting from a loop, or
just ignore.

This patch makes `HTMLEditor::HandleInsertBRElement` return
`CreateElementResult` and makes its callers handle selection as same as the
method does.

And note that I've not realized that `NS_FAILED` and `NS_SUCCEEDED` include
`MOZ_(UN)LIKELY`.  Therefore, they don't need to be wrapped with them.  And
also `NS_WARN_IF` has it too (but it's not in opt build, see bug 1765909).
On the other hand, neither `Result::isErr` nor `Result::isOk` has them
(bug 1765916).  Therefore, except in the case of `Result`, this and following
patches will remove unnecessary `MOZ_(UN)LIKELY` from editor.

Differential Revision: https://phabricator.services.mozilla.com/D144644
2022-05-02 22:48:23 +00:00
Nika Layzell 18f7866fc2 Bug 1738106 - Part 2: Allow XPCOM classes to use SupportsThreadSafeWeakPtr, r=glandium,xpcom-reviewers
Due to how this type of threadsafe refcounting is implemented, it needs to be
implemented using a MFBT-style refcounting base class, somewhat similar to
`SupportsWeakPtr`.

This patch makes NS_IMPL_{ADDREF,RELEASE}_INHERITED intelligently not add
refcount logging for types inheriting from SupportsThreadSafeWeakPtr, as the
default behaviour would break due to weak pointer upgrades not calling through
`AddRef` or `Release`.

In MFBT, the return value of `AddRef` and `Release` on
SupportsThreadSafeWeakPtr is changed to be compatible with nsISupports, so that
this type can be used to implement nsISupports refcounting.

Differential Revision: https://phabricator.services.mozilla.com/D142603
2022-05-02 20:37:34 +00:00
Steve Fink 036abc801c Bug 1735434 - Gather additional information for cycle collection profiler markers r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D128316
2022-04-29 20:07:23 +00:00
Emilio Cobos Álvarez dcdf8633ec Bug 1766768 - Fix move constructor of OwningNonNull(RefPtr<>&&) to actually move. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D144987
2022-04-29 11:32:07 +00:00
Christian Holler 2536a63b92 Bug 1764262 - Redirect MOZ_LOG output to Nyx when fuzzing. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D143459
2022-04-25 19:12:23 +00:00
Andrew McCreight 0c12fcbc07 Bug 25886 - Remove NS_DEFINE_IID. r=xpcom-reviewers,nika
There are no remaining uses.

Differential Revision: https://phabricator.services.mozilla.com/D143511
2022-04-21 14:47:27 +00:00
Jon Coppeard cc1c9e02a4 Bug 1764796 - Use the store buffer to trace preserved nursery wrappers in a minor GC r=mccr8
HeapObjectPostWriteBarrier adds or removes a store buffer entry for a change in
the GC graph entry based on the second and third arguments which are the target
of the edge before and after the change.

This patch also removes the store buffer entry in
nsWrapperCache::ReleaseWrapper which didn't happen before. This should help
keep less garbage alive unnecessarily.

Differential Revision: https://phabricator.services.mozilla.com/D143736
2022-04-19 08:48:33 +00:00
Tooru Fujisawa 65b9921c07 Bug 1764004 - Remove unused CycleCollectedJSContext::IsInMicroTask. r=smaug
Depends on D143356

Differential Revision: https://phabricator.services.mozilla.com/D143598
2022-04-14 01:43:00 +00:00
Jon Coppeard 80d0e18901 Bug 1763658 - Part 5: Remove unused tracing option r=jandem
This was only used in the ObjectGroup trace hook.

Differential Revision: https://phabricator.services.mozilla.com/D143348
2022-04-11 11:48:14 +00:00
Bryce Seager van Dyk c985cc36b7 Bug 1762839 - Adjust locking in AvailableMemoryWatcherWin to appease thread safety checker. r=nika
This stops the checker complaining that locks aren't held by adding further
annotations and doing some locking slightly earlier.

I've tried to adhere to the convention of passing a lock when a function
requires it, though I don't believe we have to do so to make the checker happy.

Differential Revision: https://phabricator.services.mozilla.com/D143003
2022-04-10 21:58:26 +00:00
Jamie Nicol cee8f98714 Bug 1763392 - Generate SDK bindings for nested Java classes as nested C++ classes. r=agi,media-playback-reviewers,bryce
For example, the SDK class android.media.MediaDrm$KeyStatus will now
be defined as MediaDrm::KeyStatus rather than just KeyStatus.

Not only does this avoid polluting the top-level namespace, but it
also avoids a bug where invalid type names were generated if the
nested class contains a method with a parameter or return of the outer
class' type.

Differential Revision: https://phabricator.services.mozilla.com/D143043
2022-04-07 11:12:20 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Randell Jesup e543d9267a Bug 1762469: xpcom memory reporter cleanup r=nika
Differential Revision: https://phabricator.services.mozilla.com/D142614
2022-04-04 22:57:37 +00:00
Randell Jesup ae3ccd0aa8 Bug 1762605 - RLBox thread-safety annotations r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D142695
2022-04-01 20:43:57 +00:00
Kagami Sascha Rosylight 1e83450022 Bug 1635428 - Part 1: Move mozilla::IsDevelopmentBuild to Omnijar.h r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D142569
2022-03-31 23:36:25 +00:00
Alexandre Lissy 3d8f9e85b0 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 19:46:43 +00:00
Cristian Tuns b217ab7e55 Backed out 6 changesets (bug 1753424) for causing build bustages CLOSED TREE
Backed out changeset 930136daf858 (bug 1753424)
Backed out changeset d62c1e5d1881 (bug 1753424)
Backed out changeset 911060d2bd8e (bug 1753424)
Backed out changeset cce723862a92 (bug 1753424)
Backed out changeset 97b3fd69185b (bug 1753424)
Backed out changeset 4748652694c7 (bug 1753424)
2022-03-26 14:49:47 -04:00
Alexandre Lissy 94b46a0084 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
Butkovits Atila 68679c8f29 Backed out 5 changesets (bug 1753424) for causing bustages. CLOSED TREE
Backed out changeset e2b40064eb59 (bug 1753424)
Backed out changeset 0892c1d3c379 (bug 1753424)
Backed out changeset 4df499ef4647 (bug 1753424)
Backed out changeset f27fbfb9e8f1 (bug 1753424)
Backed out changeset 0f244f2eb2de (bug 1753424)
2022-03-26 16:39:16 +02:00
Alexandre Lissy baebfcdc76 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
criss 0077f22487 Merge autoland to mozilla-central. a=merge 2022-03-24 11:35:23 +02:00
Randell Jesup 2c0c956707 Bug 1207753 - Various xpcom thread-safety annotations r=nika
Differential Revision: https://phabricator.services.mozilla.com/D130579
2022-03-23 22:22:51 +00:00
Norisz Fay 61cd14ddcd Backed out 6 changesets (bug 1661293) for causing Bug 1758370 CLOSED TREE
Backed out changeset 8f4d646a4bf6 (bug 1661293)
Backed out changeset ec817d9e8a17 (bug 1661293)
Backed out changeset efd35f1d9bd5 (bug 1661293)
Backed out changeset 00d93cc6125f (bug 1661293)
Backed out changeset 77b0b0003ca0 (bug 1661293)
Backed out changeset 04443fa474ac (bug 1661293)
2022-03-23 17:04:22 +02:00
Kagami Sascha Rosylight 19f195a70c Bug 1760812 - Part 1: Use std::tuple in NativeThenHandler r=smaug,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D141754
2022-03-22 16:44:58 +00:00
Nicholas Rishel 51019b5b0b Bug 1757435 - Disable fast shutdown for background tasks. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D141304
2022-03-18 20:14:47 +00:00
Nick Alexander 549a32bf40 Bug 1757229 - Ensure `Telemetry::CanRecordExtended()` is `false` in background tasks. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D141291
2022-03-17 15:45:56 +00:00