Commit graph

229 commits

Author SHA1 Message Date
wuggy
389a855466 Remove nsresult from GenerateUUIDInPlace 2026-06-29 19:07:57 +01:00
wuggy
fe008c1fc5 Fix mess in nsUUIDGenerator 2026-06-29 18:43:00 +01:00
wuggy
a2a4c62a9b Refactor PerformanceObserver to use hash tables for entry type validation and improve ThrottleInputStream state management 2026-04-26 11:13:27 -07:00
Basilisk-Dev
94217bc365 MoonchildProductions/UXP#2897: backport upstream xptcinvoke and xptcstubs for Loongarch64 2026-04-23 06:19:39 +01:00
wuggy
854f39b4ab Finally finish with MinGW building (linking still has some issues shush) 2026-04-18 01:02:51 -07:00
wuggy
ad07988f5b Pt 2 in XDG compliance. 2026-04-17 18:35:11 -04:00
wuggy
a5cf494890 Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
wuggy
4898f49c28 [BETA] GNU/Linux support 2026-04-16 16:14:49 -04:00
ownedbywuigi
32e0f7f621 Add infallibleInit method to ThreadLocal and AssertOwns methods to Mutex 2026-03-30 00:30:51 +01:00
Moonchild
ad21e2d1f4 Issue #2928 - Add extra checks to nsExpirationTracker.
Turn some asserts into early exits and add sanity checks.
Also check main thread access for the fake mutex and report.
2026-03-08 22:59:56 +00:00
K4sum1
633ef1c426 Mypal portable mode 2025-09-27 19:36:46 -07:00
roytam1
f4d2bf6c3d Merge remote-tracking branch 'origin/tracking' into custom 2025-06-27 23:33:55 +08:00
Moonchild
80b542efc3 [XPCOM] Add Mac-specific executable extensions 2025-06-27 23:31:20 +08:00
roytam1
b86d97747f Merge remote-tracking branch 'origin/tracking' into custom 2025-04-03 09:50:55 +08:00
Moonchild
9490504bf9 Issue #2703 - Part 0: Add UnorderedRemoveElement[s]At to nsTArray 2025-04-03 09:45:17 +08:00
roytam1
3fa9e61e7e ported from mozilla: Add UnorderedRemoveElement[s]At to nsTArray, r=froydnj 2025-03-23 12:21:15 +08:00
roytam1
904406a497 Merge remote-tracking branch 'origin/tracking' into custom 2025-01-20 21:13:46 +08:00
Moonchild
139e7a7ac6 Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED
This no longer does anything at this point, except add indirection.
2025-01-20 21:12:18 +08:00
Moonchild
9464d0ed6d Issue #2678 - Remove unnecessary second QI for nsCycleCollectionISupports.
Also moves NS_IMPL_QUERY_CYCLE_COLLECTION_ISUPPORTS to nsAgg.h, since it's
only needed there, for clarity.
2025-01-20 21:09:38 +08:00
Moonchild
33140a9b1b Issue #2678 - Default NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED to NS_ERROR_FAILURE 2025-01-20 21:09:10 +08:00
Moonchild
5d82de9eb6 Issue #2678 - Define a new macro for CC isupports.
The main purpose of defining this is to make conversion of places that use
the non-CC variant easier.
2025-01-20 21:08:41 +08:00
Moonchild
85aa4cb31e Issue #2678 - Optimize inherited cycle-collectible QueryInterface() implementations for nsCycleCollectionISupports; 2025-01-20 21:08:11 +08:00
Moonchild
38daeffb9b Issue #2678 - Avoid QIing for NoteXPCOMRoot.
This callback is only used in very limited ways, so just require that the
caller passes in the canonical supports pointer plus the participant.

This probably won't affect performance much.
2025-01-20 21:07:45 +08:00
Moonchild
9f4fe4275c Issue #2678 - Don't use QI to canonicalize nsISupports pointers in the purple buffer.
The nsISupports objects added to the purple buffer are already canonical,
so we can avoid some overhead by not QIing them to
`nsCycleCollectionISupports`.
2025-01-20 21:06:34 +08:00
roytam1
c6517989ab Merge remote-tracking branch 'origin/tracking' into custom 2024-11-29 21:00:51 +08:00
Moonchild
857990d172 [XPCOM] Warn about .library-ms files on Windows (treat as executable) 2024-11-29 20:53:57 +08:00
roytam1
2b0cdc7b62 Merge remote-tracking branch 'origin/tracking' into custom 2024-09-22 20:54:25 +08:00
Martin Husemann
37f260bbd4 Make NetBSD use the same xptcall support as others.
These functions are only ELF ABI specific, not really OS specific.
Add powerpc, powerpc64 and sparc64 support for NetBSD
by using the same code as other ELF systems do.
2024-09-22 20:44:57 +08:00
roytam1
552db66da0 Merge remote-tracking branch 'origin/tracking' into custom 2024-04-19 09:37:04 +08:00
Moonchild
f6204a7ca8 [XPCOM] Warn about .xrm-ms files on Windows (treat as executable) 2024-04-19 09:33:28 +08:00
roytam1
a944026bae Merge remote-tracking branch 'origin/tracking' into custom 2024-04-02 22:57:21 +08:00
FranklinDM
6d154eee11 Issue #58 - Follow-up: Remove Rust binding leftovers 2024-04-02 22:46:00 +08:00
roytam1
b0345ff809 Merge remote-tracking branch 'origin/tracking' into custom 2024-01-18 10:17:09 +08:00
roytam1
500c2ab8d9 Revert "workaround of microtask cleanup to prevent a crash"
This reverts commit c75d50adde.
2024-01-18 10:16:55 +08:00
Martok
a2c28b4268 Issue #2452 - Handle re-entrant Microtask checkpoints from Events dispatched by StableState callbacks 2024-01-18 10:15:06 +08:00
Martok
458f5eb385 Issue #2452 - Fix getter constness
https://bugzilla.mozilla.org/show_bug.cgi?id=1443429 Pt. 2
2024-01-18 10:09:43 +08:00
Martok
d6dd1f8133 Issue #2452 - Ensure DOM events aren't dispatched at unexpected time
https://bugzilla.mozilla.org/show_bug.cgi?id=1409985
https://bugzilla.mozilla.org/show_bug.cgi?id=1443746
2024-01-18 10:08:24 +08:00
Martok
728b8ad60b Issue #2452 - Declare the NS_ERROR_DOCSHELL_DYING error
From https://bugzilla.mozilla.org/show_bug.cgi?id=1337537
2024-01-18 10:08:05 +08:00
roytam1
c75d50adde workaround of microtask cleanup to prevent a crash 2024-01-13 21:03:58 +08:00
roytam1
d4a80aa2c4 Merge remote-tracking branch 'origin/tracking' into custom 2024-01-09 12:01:14 +08:00
Martok
90eb83819c Issue #2435 - Re-Implement rejected Promises events according to spec
Own implementation; upstream gets several things wrong.
2024-01-09 12:00:53 +08:00
Martok
9126a4836f Issue #2435 - Implement notifying of rejected promises
Based-on: m-c 1362272
2024-01-09 12:00:33 +08:00
Martok
f059bb0a59 Issue #2240 - Align Microtasks and promises scheduling with spec
Microtasks, resolved Promises and Observers are handled after the sync
task that caused them, in the order they were generated.
Also simplifies reentrancy handling.

Based-on: m-c 1193394
2024-01-09 11:59:32 +08:00
roytam1
fa72b197d9 Merge remote-tracking branch 'origin/tracking' into custom 2024-01-05 10:11:42 +08:00
Moonchild
dc425fc3e8 Revert "[XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget"
This reverts commit 66b07ce6991160e768b5113f8adcd0b47be58791.
2024-01-05 10:06:34 +08:00
roytam1
a907bc3c17 Merge remote-tracking branch 'origin/tracking' into custom 2023-12-21 10:19:16 +08:00
Barret Rennie
8b5c0a9cd9 [XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget 2023-12-21 10:17:49 +08:00
roytam1
b47d46219f Merge remote-tracking branch 'origin/tracking' into custom 2023-11-24 17:07:26 +08:00
Gerald Squelart
543e41f3ac Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder.
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one
taking the resolve/reject object by value. Since this value will not be
used again in the lambda, it is safe to Move it, and from there
MozPromiseHolder::Resolve/Reject can also Move it again into the holder
storage, potentially saving two copies per Resolve/Reject. Also, once
all sub-promises have been resolved, the resolve-values can be Move'd
into the joining promise's Resolve function.
2023-11-24 17:02:54 +08:00
roytam1
bac9ec9a84 Merge remote-tracking branch 'origin/tracking' into custom 2023-10-26 10:55:31 +08:00