Commit graph

16 commits

Author SHA1 Message Date
Moonchild
bc0dbe9abb Issue #2928 - Improve imgLoader cache queue handling.
- Convert the imgCacheQueue to nsTArray from Vector
- Avoid marking the queue dirty when element operations are performed
that don't upset the sort order. This should improve performance as well.
2026-07-31 19:46:21 +01:00
Moonchild
3b799da2f8 Issue #2928 - Avoid searching the image cache queue for an entry after we just popped it off the queue. 2026-07-31 19:46:21 +01:00
Moonchild
252cbabfd4 Issue #2928 - Always refresh dirty queue. 2026-07-31 19:46:21 +01:00
Moonchild
7332833ecc Issue #2928 - Re-order imgLoader::RemoveFromCache
Remove from tracker first before removing from cache, and if the cache
queue is dirty, refresh it (causes a re-heap) before manipulating further.
2026-07-31 19:46:21 +01:00
Moonchild
f7820b0ab5 Issue #2928 - Check mCacheQueue size before removing entries.
Resolves #2928
2026-07-31 19:46:20 +01:00
ownedbywuigi
2dd5267098 Increase thresholds for small function compilation and warm-up to optimize performance for jQuery-style code. 2026-03-28 09:20:54 +00:00
ownedbywuigi
8046f8b4aa try to fix the images not rendering on yeezy.com 2026-03-27 17:07:32 +00:00
ownedbywuigi
35aa94b223 Increase image cache size and adjust related parameters for improved performance 2026-03-27 15:23:58 +00:00
Moonchild
166b25a42c Issue #2736 - Part 3: Use TriggeringPrincipal for image loads.
The imgLoader code consistently uses the term `loadingPrincipal` for
the principal that is called the `triggeringPrincipal` everywhere else.
This aligns the naming to avoid confusion in later changes.
2025-05-14 14:22:56 +08:00
Moonchild
9ad680cfc4 Issue #2736 - Part 1: Provide more consistent principals to CSP.
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a
loading principal currently retrieve it from the context node.
Since no current callers require the principal to be the loading
principal, and some already expect it to be the triggering principal
(which there's currently no other way to retrieve), a choice was made
to pass the triggering principal whenever possible, but use the loading
principal to determine the origin URL.
2025-05-14 14:21:46 +08:00
Job Bautista
51ea0e4f3a Issue #1769 - Part 2: Implement JPEG-XL decoder and about:config and MIME plumbing.
Backported from Mozilla bug 1707590 whereever possible.
2023-06-24 12:16:27 +08:00
Moonchild
8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
win7-7
e6f376f5ef Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
2019-08-10 06:26:08 +08:00
Gaming4JC
d4ac94cf3e Remove support and tests for HSTS priming from the tree. Fixes #384 2019-02-15 23:59:39 +08:00
wolfbeast
8b0dd2f40b Add WebP content sniffing code. 2019-02-14 14:36:35 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00