Commit graph

473 commits

Author SHA1 Message Date
Moonchild
c830e53ecd No issue - Improve compiler compatibility.
Include <limits> in a few places.
2026-03-09 21:37:03 +00:00
OwnedByWuigi
62cdc74b3a step 1 in trying to fix yeezy.com 2026-03-02 19:28:35 -08:00
OwnedByWuigi
c875e8bdfd Edge theme (WIP) 2026-02-28 16:46:59 +00:00
roytam1
50b6047c84 Merge remote-tracking branch 'origin/tracking' into custom 2025-09-26 23:16:18 +08:00
Moonchild
659a3c0fcc Issue #2258 - Make sure we favor sniffing when the content-type header is empty. 2025-09-26 23:15:48 +08:00
Moonchild
0d00c84033 Revert "Issue #2258 - Part 1: Support XCTO:nosniff when navigating."
This reverts commit f48c770701e62c382631620f4caa1fdc5ab1d7ae.
2025-09-26 23:15:31 +08:00
Moonchild
73c9c1dd73 Revert "Issue #2258 - Part 2: Move XCTO:nosniff check into sniffers."
This reverts commit 51e1650d42b2c033d5d55750b4ea497053524c93.
2025-09-26 23:15:12 +08:00
Moonchild
2d4d48db72 Revert "Issue #2258 - Part 3: Allow sniffing with XCTO:nosniff + empty MIME type."
This reverts commit a56f978f70e2d96ba501d6a944be33460afc481a.
2025-09-26 23:14:52 +08:00
Moonchild
7b4bb08257 Revert "Issue #2258 - Part 4: Clean up unused pointers."
This reverts commit 9e52953e5486412bcb5613b4cea5a4f54544db2e.
2025-09-26 23:14:28 +08:00
roytam1
e4c5aafee9 Merge remote-tracking branch 'origin/tracking' into custom 2025-09-23 15:20:06 +08:00
Moonchild
1bcdad3ef1 Issue #2852 - Follow-up: Add comment and fix formatting. 2025-09-23 15:19:29 +08:00
Moonchild
16164b3d38 Issue #2852 - Parse full cache-control headers.
This makes sure we parse the merged/stored version of `cache-control`
instead of just the latest-received header.
`ResponseHead::ParseHeaderLine_locked` parses each header as it comes in.
It then updates its member variables based on that header.
For `cache-control`, it's important to reparse the merged (updated)
version of the header instead of the most recent one, otherwise we'll miss
directives present in previously received headers.

Resolves #2852
2025-09-23 15:18:48 +08:00
roytam1
75997f1917 Merge remote-tracking branch 'origin/tracking' into custom 2025-08-18 09:49:01 +08:00
Moonchild
bd734f795c Issue #2258 - Part 4: Clean up unused pointers. 2025-08-18 09:47:53 +08:00
Moonchild
707c3e3fa8 Issue #2258 - Part 3: Allow sniffing with XCTO:nosniff + empty MIME type.
This moves the checking code back to NS_SniffContent and specifically
checks requests for either:
- Empty `Content-type` header, OR
- A known JSON MIME type

If present, sniffing is allowed despite `nosniff` because in the first
case this is webmaster error (conflicting `nosniff` without MIME type
would always fail, so sniff it), and in the second case we need this
carveout or our json viewer will break.
2025-08-18 09:47:36 +08:00
Moonchild
cca20ae131 Issue #2258 - Part 2: Move XCTO:nosniff check into sniffers.
This fixes a regression for the JSON viewer from part 1 as it relies on
sniffing to prettify (and should carve out the exception even if `nosniff`
headers are sent).
No real functional changes otherwise. Just catering to a corner case.
2025-08-18 09:47:21 +08:00
Moonchild
e56e5d6cb1 Issue #2258 - Part 1: Support XCTO:nosniff when navigating. 2025-08-18 09:46:58 +08:00
roytam1
be6796bb20 Merge remote-tracking branch 'origin/tracking' into custom 2025-07-25 07:33:44 +08:00
Moonchild
cdc8127cd1 [network] Stop accepting nameless cookies. 2025-07-25 07:32:29 +08:00
roytam1
6414271c91 Merge remote-tracking branch 'origin/tracking' into custom 2025-06-17 09:32:50 +08:00
Moonchild
5960178802 Issue #2723 - Remove obsolete NPN prefs and callbacks.
NPN was removed from NSS a long time ago, this effectively does nothing.
ALPN also should be default-enabled (we do this by pref but the component
itself should have a sane default) so this was flipped as a drive-by fix.

Resolves #2723
2025-06-17 09:29:57 +08:00
roytam1
e72f8a3a81 Merge remote-tracking branch 'origin/tracking' into custom 2025-05-14 14:36:05 +08:00
Shadow
40e01c31e4 No Issue - Fix incorrectly written pref name
Bug 1481096
"spdy.default-hpack-buffer" was incorrectly written as "spdy.hpack-default-buffer".
2025-05-14 14:05:47 +08:00
roytam1
6792dc4b66 Merge remote-tracking branch 'origin/tracking' into custom 2025-04-30 23:06:47 +08:00
Moonchild
0331e633bd Issue #2728 - Remove obsolete CSP referrer policy.
This has been superseded by the dedicated Referrer-policy header.
Resolves #2728
2025-04-30 22:58:43 +08:00
roytam1
e2f07956fb Merge remote-tracking branch 'origin/tracking' into custom 2025-03-23 12:27:56 +08:00
Shadow
8f2f4d8d3d Issue #2703 - Part 4: Fix incorrect clang warning in nsCORSListenerProxy.
See BZ Bug 1444472
Resolves #2703
2025-03-23 12:27:29 +08:00
Shadow
fdfe81fe54 Issue #2703 - Part 3: Make cache entry request checking more readable. 2025-03-23 12:27:16 +08:00
Shadow
7854198085 Issue #2703 - Part 2: Don't repeatedly construct comparators when checking cache entries.
nsCaseInsensitiveCStringComparator ought to be cheap to construct, but
the object actually has a vtable to install and whatnot.  So it's
beneficial to pull the construction of it outside of the headers loop.
2025-03-23 12:27:01 +08:00
Shadow
d678f508de Issue #2703 - Part 1: micro-optimize purging expired preflight cache entries.
The entries in mMethods and mHeaders aren't sorted in any special way,
so we can remove expired entries using UnorderedRemoveElementAt, which
is faster than RemoveElementAt.
2025-03-23 12:26:44 +08:00
roytam1
2a53c574f6 Merge remote-tracking branch 'origin/tracking' into custom 2025-03-13 23:05:24 +08:00
Shadow
d9c27beb51 No Issue - Stop warning if a network request failed.
Bug 1286036
2025-03-13 23:04:39 +08:00
roytam1
bf90272692 Merge remote-tracking branch 'origin/tracking' into custom 2025-01-29 12:26:22 +08:00
Moonchild
064d8757f5 Update eTLD list (PSL) 2025-01-29 12:24:22 +08:00
roytam1
904406a497 Merge remote-tracking branch 'origin/tracking' into custom 2025-01-20 21:13:46 +08:00
Moonchild
624ff30bfc [network] Don't try to use non-existing connections. 2025-01-18 10:31:13 +08:00
roytam1
44f397bea2 Merge remote-tracking branch 'origin/tracking' into custom 2025-01-10 22:32:18 +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
e448ec4c0d [no issue] Remove duplicate FLAC MIME type define. 2025-01-10 22:27:44 +08:00
roytam1
e5fa99d83c Merge remote-tracking branch 'origin/tracking' into custom 2024-12-28 21:55:53 +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
roytam1
990b92ae63 Merge remote-tracking branch 'origin/tracking' into custom 2024-12-20 13:43:35 +08:00
Martok
334de9ffcc Issue #1787 - Follow-up: remove no longer used AppClearDataObserver. 2024-12-20 13:43:05 +08:00
roytam1
c6517989ab Merge remote-tracking branch 'origin/tracking' into custom 2024-11-29 21:00:51 +08:00