Commit graph

244 commits

Author SHA1 Message Date
win7-7
fdba987b79 Trying adjust some functions. nsIEventTarget does not exists until later due xpcom changes that are not ported.
Trying adjust some functions. nsIEventTarget does not exists until later due xpcom changes that are not ported.
2026-08-01 03:07:33 +01:00
win7-7
b166ec94ae Revert "Trying add overrides back."
This reverts commit 2b77ab0100757e24a302db23e4ba692671d83ccb.
2026-08-01 03:07:33 +01:00
win7-7
d98b174d06 Trying add overrides back.
Trying add overrides back.
2026-08-01 03:07:33 +01:00
win7-7
b2d506c2a3 Removing #ifdef RELEASE_OR_BETA. Doubt it will allow compile this but whatever might as well test..
Removing  #ifdef RELEASE_OR_BETA. Doubt it will allow compile this but whatever might as well test..
2026-08-01 03:07:32 +01:00
win7-7
8e9c123ae7 Seems overrides are not necessary for this version unlike for Mozilla since they do not override base class memebers anyway?
Seems overrides are not necessary for this version unlike for Mozilla since they do not override base class memebers anyway?
2026-08-01 03:07:32 +01:00
win7-7
a503bda1e4 Fix compilation of do_CreateInstance
Fix compilation of do_CreateInstance.
2026-08-01 03:07:32 +01:00
win7-7
f399229746 Fallout from mozilla version of file.
Fallout from mozilla version of file.
2026-08-01 03:07:32 +01:00
win7-7
436a8d5697 Part 4 could not suck more.
Part 4 could not suck more.

Sigh..

do_CreateInstance where was this defined so identifier is found..
2026-08-01 03:07:32 +01:00
win7-7
f109b02bc3 1325254 - optimize TimerThread data structures
1325254 P1 Make TimerThread::mTimers store RefPtr<nsTimerImpl> objects.

1325254 P2 Make TimerThread list store an entry struct and just drop nsTimerImpl ref on cancel.

1325254 P3 Sort TimerThread list as a binary heap.

1325254 P4 Dynamically allocate Entry structs stored in TimerThread::mTimers.

1325254 P5 Make nsITimer::Cancel() O(c).
2026-08-01 03:07:32 +01:00
win7-7
be3e4b917d Hmph.. another issue due needing 1325254 (which does not just work) or figuring out way get rid of Value.
Hmph.. another issue due needing 1325254 or figuring out way get rid of Value.
2026-08-01 03:07:32 +01:00
win7-7
ab6a9b981b Just import file from Mozilla.
Just import file from Mozilla.

It does help with templates but of course there is another issue.
2026-08-01 03:07:31 +01:00
win7-7
c4bf9a7b32 1358476, add support for timeout when doing idle dispatch
Templates suck. I cannot make this work likely.
2026-08-01 03:07:31 +01:00
win7-7
5499c5f9a3 1311425 - Make requestIdleCallback aware of timeouts.
Prepare for handling several sources of idleness.

Make idle callbacks aware of nsITimers.

Add pref for how far into the timer queue.

1311425 - Avoid expiration timers when scheduling idle runnables.

review comment fix to ensure low priority timers aren't taken into account when calling NS_GetTimerDeadlineHintOnCurrentThread.
2026-08-01 03:07:31 +01:00
win7-7
464b839bbd 1366750 - Rename nsIIncrementalRunnable to nsIIdleRunnable
1366750 - Rename nsIIncrementalRunnable to nsIIdleRunnable.
2026-08-01 03:07:31 +01:00
win7-7
d3450c11de 1376614 - Pass budget to forgetSkippable and return early when budget has been used
1376614 - Pass budget to forgetSkippable and return early when budget has been used,
2026-08-01 03:07:30 +01:00
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