Commit graph

6,183 commits

Author SHA1 Message Date
Moonchild
0849deeacf Issue #2688 - Don't apply auto min-sizing when flex max-sizing.
A grid item spanning multiple grid rows/columns which include a flexible
track should not participate in the auto min-sizing calculation.

Resolves #2688
2025-01-29 12:24:07 +08:00
Martok
0590764f1f Issue #2686 - Don't rely on return value of ExecutionContext::Compile when the context may forbid running scripts
This is relevant if scripting is terminated due to execution timeout but there are setTimeout/Interval callbacks pending
or if scripting is disabled altogether.
2025-01-29 12:23:50 +08:00
Martok
77728935ef Issue #2078 - Follow-up: Don't try to resolve ancestor link elements when matching for Has*DependentStyle 2025-01-23 09:38:58 +08:00
Martok
2e3953399a Issue #1765 - Follow-Up: For parsing calc() in non-hue component of hsl/a(), explicitly expect <percentage> values 2025-01-23 09:38:03 +08:00
FranklinDM
41eb02d1e1 No issue - Turn worker runnable assertion into something harmless in debug builds
It's annoying.
2025-01-23 09:37:42 +08:00
Moonchild
147713a6ac Issue #2681 - Expose :modal to content. 2025-01-20 21:12:53 +08:00
Moonchild
d9b107f32f Issue #2681 - unprefix :-moz-modal-dialog
Keep an alias in place like for :fullscreen
2025-01-20 21:12:36 +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
85f8f23a23 Issue #2678 - Make QIing to a few often-used CCed classes faster.
QIing to CC interfaces is a hot path for a few widely-used classes.
Presumably there are many of these objects being created and destroyed.
By making these classes check first for the CC interfaces directly, rather
than going up the inheritance chain, the resulting overhead is reduced.
2025-01-20 21:09:23 +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
c37e68d59f Issue #2678 - Use a new macro for CC isupports in some locations.
There are many more places that could be converted to use these new macros.
If anyone feels so inclined... ;)
2025-01-20 21:08:55 +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
33a120eb9f Issue #2678 - Clean up some uses of the table-to-map segue. 2025-01-20 21:08:25 +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
0121aefb61 Issue #2678 - Remove now-unnecessary ClearExternalRefsForWrapperRelease.
All DOMProxyHandler::ClearExternalRefsForWrapperRelease now does is clear
a backpointer to the expando, and that's handled during reflector
finalization already, making it redundant.
2025-01-20 21:07:31 +08:00
Moonchild
c9c941f321 Issue #2678 - Stop using EnsureExpandoObject in codegen code when we just want to preserver the wrapper for a DOM proxy. 2025-01-20 21:07:17 +08:00
Moonchild
32da3f4de4 Issue #2678 - Remove the DOM proxy expando object hashtable in xpconnect. 2025-01-20 21:06:59 +08:00
Moonchild
45bb4cb8b4 Issue #2678 - Switch DOMProxyHandler::EnsureExpandoObject to using normal wrapper preservation instead of RegisterDOMExpandoObject. 2025-01-20 21:06:46 +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
Moonchild
14c84e22a9 Issue #2676 - Implement AbortSignal.timeout()
This is a stub implementation because of the considerable abuse risk and
bad web code risk causing DoS, e.g. when using bad timeout values and
callbacks on the AbortSignal (e.g. recursive).
Considering the abort-ability of these signals otherwise there is never
a guarantee to websites that these signals will be triggered anyway, so
it should be considered an optional signal - meaning we can safely just
ignore the timeout, which allows us to avoid a ton of complexity and
potential sec/privacy issues.

Primary use in the wild seems to be detailed profiling/ad metrics anyway;
we don't really want to encourage that!
2025-01-20 21:06:19 +08:00
Moonchild
9fa4b6fd5d Issue #2676 - Implement AbortSignal.abort() 2025-01-20 21:06:05 +08:00
Moonchild
949e3f0ac6 Issue #2676 - Don't keep AbortController alive for AbortSignal 2025-01-20 21:05:47 +08:00
Moonchild
624ff30bfc [network] Don't try to use non-existing connections. 2025-01-18 10:31:13 +08:00
Moonchild
5ea8de0262 [DOM] Convert cleanup of FlushCurrentWord() to a ScopeExit task.
Ensures consistent cleanup even if early exit due to OOM.
2025-01-10 22:31:52 +08:00
Moonchild
e60e1266e9 [DOM] Slightly extend lifetime of data in Structured Clone operations. 2025-01-10 22:30:58 +08:00
Moonchild
024ab86be6 [network] Verify connection NPN against negotiated NPN. 2025-01-10 22:30:15 +08:00
Moonchild
d63a56adac Issue #2673 - Part 4: Hook up the ADTS sniffer + raw AAC MIME type. 2025-01-10 22:29:32 +08:00
Moonchild
8f52da3288 Issue #2673 - Part 2b: Improve ADTS format sniffer's performance.
Also avoids false positives.
2025-01-10 22:29:13 +08:00
Moonchild
8f5a66b486 Issue #2673 - Part 3: Fix coding style. 2025-01-10 22:28:54 +08:00
Moonchild
e25b285ca7 Issue #2673 - Part 2: Add ADTS format sniffer. 2025-01-10 22:28:30 +08:00
Moonchild
0c2130e615 Issue #2673 - Part 1: Minor ADTSDemuxer cleanup. 2025-01-10 22:28:10 +08:00
Moonchild
e448ec4c0d [no issue] Remove duplicate FLAC MIME type define. 2025-01-10 22:27:44 +08:00
Moonchild
2e1c487563 Issue #2670 - Compute baseDomain when cookies are read from the database
baseDomain is used as a key for cookies in a hashmap. For cookie
operations to work properly, the baseDomain generation must be reliable.
This is, however, not the case, because the result can change by updates
to the public suffix list (PSL).

Since the stored baseDomain is not reliable, the value must be recomputed
when the database is read. This causes a minor performance hit but is
needed if we want to keep abreast of PSL changes without clobbering the
cookies database.

Resolves #2670
2024-12-28 21:53:30 +08:00
Moonchild
d935c4f54c Issue #2672 - Follow-up: Remove unused telemetry variable. 2024-12-28 21:52:54 +08:00
Moonchild
d69e2a3779 Issue #2672 - Part 4: Prevent db access while rebuilding is underway. 2024-12-28 21:52:29 +08:00
Moonchild
032b0ae0d8 Issue #2672 - Part 3: Ensure thread lifetimes are in tandem. 2024-12-28 21:52:05 +08:00
Moonchild
fe53a0bb1c Issue #2672 - Part 2: Auto-close syncConn for edge cases. 2024-12-28 21:51:39 +08:00
Moonchild
aec27853c6 Issue #2672 - Part 1: Load nsCookieService OMT and use sync reads.
No more lazy-loading on the main thread, thanks. Everyone needs this.
2024-12-28 21:51:14 +08:00
Martok
334de9ffcc Issue #1787 - Follow-up: remove no longer used AppClearDataObserver. 2024-12-20 13:43:05 +08:00
Martok
d9dbae4aa9 No issue - Follow-up: fix compilation 2024-12-20 13:42:47 +08:00
Moonchild
1bdfca3920 No issue - Cloned <audio>/<video> elements should respect muted attribute. 2024-12-20 13:42:32 +08:00
Brian Smith
a29afdfafe No Issue - Fixes assembling with binutil as >= 2.41. effadce6c7 Same code exists in libav so applying the same patch there as well. 2024-12-20 13:42:18 +08:00
Brian Smith
1554c778f4 No Issue - Make nsCocoaWindow hold a death grip on its native window until its destructor. https://bugzilla.mozilla.org/show_bug.cgi?id=1880582 2024-12-20 13:41:57 +08:00
Kai Engert
e825209039 [NSS] Bug 1899402 - Correctly destroy bulkkey in error scenario. r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D223837

--HG--
extra : rebase_source : d06a6bb8d51bb844c814c5ee682a1b24de3e2e69
2024-11-29 20:55:45 +08:00
Moonchild
857990d172 [XPCOM] Warn about .library-ms files on Windows (treat as executable) 2024-11-29 20:53:57 +08:00
Moonchild
24f3a981b6 Issue #2255 - Follow-up: Check if we actually have a non-null global object.
This should avoid the intermittent crashes that are still being reported
on this issue that end up crashing because of a proxied object that can't
be unwrapped after being passed around.
2024-11-29 20:53:06 +08:00
Moonchild
01624751a1 [network] Update effective TLD names list. 2024-11-29 20:50:54 +08:00
Moonchild
6c6ab6de1a [js] Avoid potential crash if GC cell is no longer valid. 2024-11-29 20:50:26 +08:00