Moonchild
4d5b1cc5d8
Merge branch 'nss-3.125-port'
2026-07-28 10:50:50 +02:00
Moonchild
0e521f6302
Bump NSS (UXP) patch level.
2026-07-28 10:10:27 +02:00
Moonchild
9cacfcff57
Merge remote-tracking branch 'dbsoft/flex-button-fix2'
2026-07-28 10:08:00 +02:00
John Schanck
21ad7adc90
Bug 2043887 - guard against integer overflow in CERT_Hexify.
2026-07-28 10:03:44 +02:00
Benjamin Beurdouche
9a29430751
Bug 2027353 - clamp input.len to testString size in pk11_mergeSecretKey.
2026-07-28 09:59:51 +02:00
Benjamin Beurdouche
481d4868b0
Bug 2029433 - Bounds-check wrap index in PK11_GetWrapKey to match PK11_SetWrapKey.
2026-07-28 09:57:10 +02:00
Anna Weine
d148c11717
Bug 2028954 - CERT_DecodeAVAValue — Integer Overflow in Output Buffer Sizing.
2026-07-28 09:53:26 +02:00
Moonchild
bc322e58f8
Bug 2027364 - Set tail pointer to null in static slot lists when deallocating.
2026-07-28 09:22:56 +02:00
John Schanck
e48a6f26a5
Bug 2032110 - fix two integer overflows on LLP64 systems.
2026-07-27 23:58:14 +02:00
John Schanck
d85edd01df
Bug 2030102 - avoid leaving a dangling ss->sec.ci.sid on allocation failure.
2026-07-27 23:49:55 +02:00
Maurice Dauer
296379d751
Bug 2027325 - Reject empty nickname in PK11_TraverseCertsForNicknameInSlot.
2026-07-27 23:46:32 +02:00
Moonchild
7ba9fc2801
Bug 2030563 - Validate CKA_CERTIFICATE_TYPE ulValueLen in nss_cert_type_from_ck_attrib.
2026-07-27 23:22:58 +02:00
Brian Smith
a9ac8b390f
Issue #3153 - Make sure buttons report a definite size for flex containers.
...
Second try, this time ONLY do it for flex container or grids.
This should prevent layout problems in non-flex scenarios.
2026-07-27 12:36:24 -05:00
Benjamin Beurdouche
71c0f8246c
Bug 2029807 - Guard padding read against empty output in SEC_PKCS7DecryptContents.
2026-07-27 19:12:42 +02:00
Benjamin Beurdouche
6cda35442f
Bug 2027346 - validate encoded EC params length and tag in SECKEY_ECParamsToKeySize/BasePointOrderLen.
2026-07-27 19:05:33 +02:00
Benjamin Beurdouche
1dba423327
Bug 2027371 - rewrite labelLen bound in tls13_HkdfExpandLabelGeneral to avoid unsigned overflow.
2026-07-27 18:56:08 +02:00
Benjamin Beurdouche
e2af0b28bf
Bug 2027373 - guard space subtraction in ssl_CallCustomExtensionSenders.
2026-07-27 18:51:32 +02:00
Benjamin Beurdouche
5ea9b7b80a
Bug 2029901 - Guard against keySize overflow in IKE PRF/PRF+ output sizing.
2026-07-27 18:44:55 +02:00
Benjamin Beurdouche
b799e100ad
Bug 2027362 - bound usageCount in PK11_UnwrapPrivKey to keyTemplate capacity.
2026-07-27 18:39:10 +02:00
Benjamin Beurdouche
1c500a6abb
Bug 2027349 - reject empty nickname in PK11_TraverseCertsForNicknameInSlot.
2026-07-27 18:27:47 +02:00
Moonchild
b909fccc92
Revert "Issue #3153 - Make sure buttons report a definite size for flex containers."
...
This reverts commit 3e223cbfb4 .
2026-07-27 17:59:43 +02:00
Moonchild
abddee43b4
Merge remote-tracking branch 'dbsoft/flex-button-fix'
2026-07-27 14:41:27 +02:00
Moonchild
49d184e550
[network] Fix CacheEntry::mDoomCallback data race.
2026-07-27 14:32:51 +02:00
Brian Smith
3e223cbfb4
Issue #3153 - Make sure buttons report a definite size for flex containers.
2026-07-27 05:38:09 -05:00
Moonchild
dd9099a7d3
[layout] Fix nsFrameSetFrame primary frame handling of replicated children.
2026-07-26 19:55:49 +02:00
Moonchild
31558a1521
Merge pull request 'Issue #3061 Follow-up: Remove network tickler prefs' ( #3151 ) from Shadow/UXP-contrib:contrib into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3151
2026-07-26 15:45:08 +00:00
Shadow
0e683bf699
Issue #3061 Follow-up: Remove network tickler prefs
2026-07-26 15:39:39 +00:00
Moonchild
6459dec5bb
[DOM media] Perform more thorough checks on video regions.
2026-07-26 15:04:18 +02:00
az
0e930fba3f
Bug 2045742
2026-07-26 10:08:13 +02:00
Moonchild
3b683bbe59
Merge pull request 'Align aspect-ratio to spec' ( #3150 ) from Basilisk-Dev/UXP-contrib:css-aspect-ratio into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3150
2026-07-26 07:06:00 +00:00
Basilisk-Dev
0042e54c38
Issue #2404 - Split aspect ratio enum types into a separate header to fix compilation issues
2026-07-25 12:24:15 -04:00
Andrew McCreight
e75201f7d1
Bug 2049523 - Make ToJSValue for float consistent with double.
2026-07-25 17:04:14 +02:00
Moonchild
28c47723b2
Fix comment (nit)
2026-07-25 16:12:08 +02:00
Randell Jesup
3d872ff7b0
Bug 2029734: Flush before calling sctp_process_init()
2026-07-25 14:52:29 +02:00
Moonchild
beb684c29e
No issue - Use strnlen instead of strnlen_s.
...
Apparently, GCC doesn't like the _s variants.
2026-07-25 13:08:15 +02:00
Moonchild
775588b75d
[image] Make sure the image was fully and cleanly decoded before finalizing its animation state as complete.
2026-07-25 10:01:55 +02:00
Basilisk-Dev
8a2a5d837c
Issue #2404 - Fix aspect ratio sizing for grid items
2026-07-25 00:58:20 -04:00
Basilisk-Dev
8add755c81
Issue #2404 - Improvements to CSS aspect-ratio spec compliance
2026-07-25 00:57:58 -04:00
Moonchild
257c64567e
[parser] Associate image elements with form only if the form and the intended parent are in the same tree.
2026-07-24 21:12:04 +02:00
Moonchild
d0b61d4a68
No issue - CallUpdateWindow is [[nodiscard]], but we don't need to use
...
the result here.
2026-07-24 19:29:00 +02:00
Moonchild
3b5f50cc35
Merge pull request 'No Issue - Remove the half-life experiment in HTTP cache' ( #3149 ) from Shadow/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3149
2026-07-24 14:32:21 +00:00
Moonchild
27c6a7f477
[DOM media] Stop accepting audio samples with too low sample rates.
...
This sets the floor to 8kHz audio, which is generally considered to be
the lowest acceptable "phone quality"/"walkie-talkie" audio rate.
Audio outside the range will refuse to decode after this commit and give
a console error.
This avoids a whole class of potential bugs.
2026-07-24 14:52:40 +02:00
Moonchild
c65f84214e
[layout] Add corner-case correctness check in DottedCornerFinder::FindBestOverlap.
2026-07-24 13:17:54 +02:00
Moonchild
a317c65fd7
[network] Add usrsctp TSN gap check.
2026-07-24 12:58:20 +02:00
Shadow
0ec35ce534
No Issue - Remove the half-life experiment in HTTP cache
...
Reviewed-on: https://repo.palemoon.org/Shadow/UXP-contrib/pulls/1
2026-07-24 09:49:48 +00:00
Moonchild
bf0c040722
[js] Clamp length of regexp captures array for dollar substitution.
2026-07-22 22:37:50 +02:00
Moonchild
ebadd51401
[js] Initialize BaselineFrame return value slot in OnLeaveBaselineFrame.
2026-07-22 20:26:07 +02:00
Moonchild
5ed0bf8b44
[DOM] Make parser update form owner properly
2026-07-22 17:12:32 +02:00
Moonchild
f877c1dba5
[gfx] Hold a strong ref during GetFontAt lookup.
2026-07-22 10:27:53 +02:00
Moonchild
4c14f8f89b
[gfx] Add bounds checks and limit reverse scanning of ligature data.
2026-07-22 09:43:54 +02:00
Moonchild
c119728965
Merge pull request 'Implement CSSStyleSheet replaceSync' ( #3145 ) from Basilisk-Dev/UXP-contrib:replacesync into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3145
2026-07-22 06:02:21 +00:00
Moonchild
fa55b9c2e8
[js] Guard against OOB string sizes in internal Printf
2026-07-22 01:39:03 +02:00
Basilisk-Dev
16aba76fc5
Issue #3144 - Implement CSSStyleSheet replaceSync
2026-07-21 04:23:19 -04:00
Moonchild
995def99cd
No issue - Exclude some files from the preprocessor that don't have directives in them.
2026-07-19 15:57:10 +02:00
Moonchild
923e52789c
Merge pull request 'Convert std::*<T>::value/::type to _v and _t suffixes.' ( #3143 ) from 1803 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3143
2026-07-19 07:40:35 +00:00
Moonchild
22d945430b
Issue #3061 - Remove network tickler.
...
Resolves #3061
2026-07-19 08:17:05 +02:00
Moonchild
65d7d93760
Issue #1803 - Convert std::*<T>::value/::type to _v and _t suffixes.
...
This excludes uses in third-party libs in our tree.
2026-07-15 11:20:06 +02:00
Moonchild
dfd0ea4e8a
Merge pull request 'implement URL.parse()' ( #3141 ) from Basilisk-Dev/UXP-contrib:urlparse into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3141
2026-07-14 21:05:40 +00:00
Basilisk-Dev
12a49709cb
Issue #3140 - implement URL.parse()
2026-07-14 16:07:45 -04:00
Moonchild
2a70c8a6f0
Merge pull request 'Implement CSS4 revert-layer keyword' ( #3139 ) from Basilisk-Dev/UXP-contrib:revert-layer into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3139
2026-07-13 12:44:06 +00:00
Moonchild
1f639d78ca
Merge pull request 'Allow Skia on Mac OS X 10.5 Leopard / big endian PPC' ( #3138 ) from Jazzzny/UXP:skia-leopard-ppc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3138
2026-07-13 12:43:15 +00:00
Basilisk-Dev
65e8245153
Issue #2829 - Regenerate devtools CSS database for revert-layer
2026-07-11 10:41:52 -04:00
Basilisk-Dev
bce5dbad0b
Issue #2829 - Use layer index naming for revert-layer metadata
2026-07-11 10:41:46 -04:00
Basilisk-Dev
0b25b5f8db
Issue #2829 - Handle revert-layer variable fallbacks
2026-07-10 09:59:20 -04:00
Basilisk-Dev
7345874098
Issue #2829 - Implement CSS revert-layer cascade rollback
2026-07-10 09:59:14 -04:00
Basilisk-Dev
edb82fd1c9
Issue #2829 - Support revert-layer in CSS-wide parsing
2026-07-10 09:59:03 -04:00
Jazzzny
35ebdcac66
Fix build issues in Skia code
2026-07-09 12:32:44 -04:00
Jazzzny
a095661e86
Use Skia macros where appropriate
2026-07-08 13:43:07 -04:00
Jazzzny
205a0d66bb
Add support for big endian in Skia
2026-07-08 04:38:00 -04:00
Jazzzny
54945a0808
Unblock Skia for big endian
2026-07-08 04:38:00 -04:00
Jazzzny
84c1eedac6
Fixes for Skia on 10.5
2026-07-08 04:38:00 -04:00
Moonchild
ddf5d6256e
Whitespace fix
2026-07-03 09:24:24 +02:00
Moonchild
0eae777fd0
Issue #3132 Follow-up: only include gtk2xtbin.h on GTK targets.
...
PR #3133 caused build breakage on non-gtk platforms by unconditionally
including the header (because the def defaults to true in configure)
This also reorganizes the configure script to add a check for
MOZ_WIDGET_GTK (hoisted up a little) so the new configure entry is
simply ignored on non-GTK targets.
2026-07-03 09:19:54 +02:00
Moonchild
b2594a4ace
Merge pull request 'Revert gtk file dialog change and set default to cancel' ( #3137 ) from 3136 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3137
2026-06-30 13:54:19 +00:00
Moonchild
ce61835a81
revert 8a2a9ead92
...
revert [gtk] Default the file dialog operation to cancelling the operation.
While this could be an annoying default for users expecting fast-track
dialog operations with hitting enter, it avoids potential social
engineering attacks and unintended file operations.
2026-06-30 13:53:18 +00:00
Moonchild
30e29845c4
Merge pull request 'Decouple NPAPI from GTK2' ( #3133 ) from Basilisk-Dev/UXP-contrib:npapi-no-gtk2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3133
2026-06-30 13:51:11 +00:00
Basilisk-Dev
d8662c5dd9
Issue #3132 - use ENABLE check for npapi gtk2 builds instead of a dedicated DISABLE check to match other config options
2026-06-30 09:15:45 -04:00
Moonchild
8a2a9ead92
[gtk] Default the file dialog operation to cancelling the operation.
...
While this could be an annoying default for users expecting fast-track
dialog operations with hitting enter, it avoids potential social
engineering attacks and unintended file operations.
2026-06-28 12:09:07 +02:00
Moonchild
efdbd34b0b
Revert "Bug 2033848 - Use non-default response ID for GTK file picker accept button. r=stransky"
...
This reverts commit 789e976ace .
2026-06-28 12:08:59 +02:00
Moonchild
d2fa69f593
Merge pull request 'Import missing libpng files for loongarch and plug them into moz.build' ( #3135 ) from Basilisk-Dev/UXP-contrib:png-loongarch-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3135
2026-06-27 07:25:51 +00:00
Basilisk-Dev
18d0a1a525
Issue #3134 - Import missing libpng files for loongarch and plug them into moz.build
2026-06-26 14:48:51 -04:00
Basilisk-Dev
0a5e50a9fe
Issue #3132 - Resolve GTK3 ATK bridge dynamically
2026-06-26 13:49:15 -04:00
Basilisk-Dev
3f5b7ed020
Issue #3132 - Add GTK2 NPAPI build toggle
2026-06-26 13:09:49 -04:00
Moonchild
9d9802c660
Issue #3129 - Follow-up: Add aarch64 to platforms enabling Neon in libpng.
2026-06-26 16:58:21 +02:00
Moonchild
27c579652a
Issue #3122 - Stop using <base> element in json viewer.
...
Resolves #3122
2026-06-23 21:09:02 +02:00
Moonchild
8ffa6b3c13
Issue #3129 - Add palette_neon_intrinsics.c to moz.build
2026-06-23 10:23:17 +02:00
Moonchild
83f6efc33d
Issue #3122 - Put base paths in the json viewer client deps.
...
The dependency modules are requested early. Seems CSP can block baseURL
on these networking requests, so add the base manually to the resource
paths to prevent network requests before the html base element is
resolved and active.
2026-06-22 17:58:21 +02:00
Moonchild
47f1928610
Merge pull request 'Libpng update 1.6.58' ( #3125 ) from libpng-update-1.6.58 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3125
2026-06-21 12:14:42 +00:00
Moonchild
7b3d961465
Bump NSS version for adopted changes.
2026-06-19 14:19:43 +02:00
Moonchild
22b2e18d91
[DOM] Clean up WebGL transform feedback validation.
2026-06-19 13:30:35 +02:00
John Schanck
f6c9c0c59f
Bug 2030564 - add defensive input validation to sftk_compute_ANSI_X9_63_kdf.
2026-06-19 12:56:26 +02:00
John Schanck
d8c9d24a9c
Bug 2030366 - avoid race with module unloading in NSSTrustDomain_FindTokensByURI.
2026-06-19 12:04:23 +02:00
John Schanck
a466b73267
Bug 2029403 - avoid PORT_Strdup in ssl_DecodeResumptionToken.
2026-06-19 10:51:37 +02:00
Julian Descottes
1ce14fb014
[devtools] Consistently show filepicker on first save action from StyleEditor.
...
Bug 2038133
2026-06-19 10:45:33 +02:00
Moonchild
8bbf60fb38
Issue #3127 - Add trademark notice to the tree.
...
Resolves #3127
2026-06-19 08:37:27 +02:00
Moonchild
f2d7c02290
Apply (hopefully for the last time before 2.0.x) APNG support code.
...
This commit also removes MOZCHANGES (old and irrelevant information)
This commit also adds a new readme.
2026-06-18 22:57:29 +02:00
Moonchild
65ddfc21b6
Fresh import of libpng 1.6.58
2026-06-18 21:50:35 +02:00
Moonchild
163619de60
[network] Make HttpBaseChannel::mLoadFlags atomic.
2026-06-18 20:32:03 +02:00
Moonchild
29c4d554a0
[gfx] Check more offsets during CFF subsetting.
...
Also fixes a bunch of whitespace (TAB -> spaces)
2026-06-18 19:35:49 +02:00
Moonchild
3e59569d0b
[DOM] Avoid over-optimizing some getter/function calls.
2026-06-18 13:45:20 +02:00
Moonchild
fb8483407b
[parser] Better align with spec definition of adding nodes.
2026-06-18 13:32:16 +02:00
Moonchild
ec8b7f86d0
No issue - Use ImmGCPtr for module meta data visits.
...
This should make module GCs less touchy.
2026-06-17 23:46:18 +02:00
Moonchild
9899d59010
[DOM media] Zero-initialize ThreadSharedFloatArrayBufferList.
2026-06-17 18:13:15 +02:00
Kui-Feng Lee
789e976ace
Bug 2033848 - Use non-default response ID for GTK file picker accept button. r=stransky
...
Replace GTK_RESPONSE_ACCEPT (-3) with a non-negative application-defined
response ID (kFilePickerAccept = 0) for the accept button in the GTK file
chooser dialog, and remove the gtk_dialog_set_default_response() call.
GTK treats buttons with negative built-in response IDs as candidates for
the dialog's default widget, which activates on Enter key press. By using
a non-negative ID and not calling set_default_response(), the accept button
is no longer pre-selected, preventing a page from tricking the user into
confirming a file upload by holding Enter before the dialog appears.
GTK's file chooser internally emits GTK_RESPONSE_ACCEPT via file_activated_cb
when the user double-clicks a file, so we keep that case in DoneNonPortal()
alongside kFilePickerAccept.
2026-06-17 12:47:03 +02:00
John Schanck
d5bf2555a3
Bug 2023478 - improve handling of escape sequences in pk11uri_ParseAttributes.
2026-06-17 12:17:06 +02:00
Moonchild
be672813f6
[DOM] Reject too large mLength in MutableBlobStorage::WriteRunnable.
2026-06-16 20:06:25 +02:00
John Schanck
746a7be08c
Bug 2030570 - use correct data for ID comparison in transfer_uri_certs_to_collection.
2026-06-16 19:54:44 +02:00
Moonchild
c222ee80fa
[network] Make keep-alive pref Atomic.
2026-06-16 19:50:55 +02:00
John Schanck
4950bd038d
Bug 2029765 - avoid refcount over-release in nssTokenObjectCache error path [@ nssToken_Destroy].
2026-06-16 18:52:25 +02:00
Nicolas B. Pierron
058336a071
Bug 2029066 - Remove Sinking of Live instructions.
...
Instruction sinking was made possible by the introduction of recover
instructions, which are moving instructions to be executed on bailout, but this
is only possible for instructions which are not used.
This feature, which is now removed, was made to sink instructions which are
live, but only in a small set of branches, by moving the computation of these
instructions to bailout paths, and to the concerned if branches.
The current implementation never delivered and remained as dead-code for
multiple years, without having a firm benefit on performance oriented
benchmarks.
Thus, this change removes the part of the Sink optimization which deals with
live instructions but keeps the part of the Sink optimization which deals with
instructions which are only used on bailout paths.
2026-06-16 13:37:21 +02:00
John Schanck
6823388a85
Bug 2029803 - add defensive info->len check in PK11_HPKE_SetupS and PK11_HPKE_SetupR.
2026-06-16 09:27:28 +02:00
Moonchild
b68d097eb6
Issue #3122 - Exclude local resources from <base> CSP checks.
...
This avoids local-resource <base> URLs being restricted/nullified by
remote CSP. This aligns the CSP handling with direct requests.
Resolves #3122
2026-06-14 10:08:17 +02:00
Moonchild
c97a22776d
Merge pull request 'Re-introduce pref for WeakRef API spec.' ( #3117 ) from weakref-finreg-pref into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3117
2026-06-12 15:46:16 +00:00
Moonchild
c484dbcca5
Issue #888 - Follow-up: Update about:license with AV1 codec licensing.
...
LibAOM was actually omitted before (oops); added both.
2026-06-11 20:07:10 +02:00
Moonchild
54f15d7afe
Issue #3111 - Clean up logic in SweepFinalizationRegistries.
...
Resolves #3111
2026-06-09 18:06:00 +02:00
Moonchild
05441188be
Issue #2306 - Enable full weakref by default in platform.
2026-06-07 23:54:52 +02:00
Moonchild
25a2d31be7
Issue #2306 - Re-introduce pref for WeakRef API spec.
...
Effectively avoids doing any GC work if preffed off, and adopts the same
for FinalizationRegistry which internally does similar work as WeakRefs.
2026-06-07 21:36:39 +02:00
Moonchild
58a4e0d545
[DOM] Provide more silent audio processing frames.
2026-06-05 12:29:30 +02:00
Moonchild
ad06b4ce5e
Revert "Bug 2027433 Treat null input channels as zero in InterleaveAndConvertBuffer()"
...
This reverts commit e76fc5637a .
2026-06-05 11:28:55 +02:00
Moonchild
be3827b088
Revert "Bug 2027433 Treat null input channels as zero in AudioChannelsDownMix()"
...
This reverts commit ddd016a6f8 .
2026-06-05 11:28:42 +02:00
Moonchild
a136aaf502
Revert "Bug 2027433 use nullptr for silent up-mix channels"
...
This reverts commit 5309640d6c .
2026-06-05 11:28:35 +02:00
Moonchild
40d91a8eae
Merge pull request 'Always Uppercase Eszett' ( #3114 ) from RealityRipple/UXP:capital-eszett into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3114
2026-06-04 08:15:36 +00:00
Moonchild
5b81a81ac4
Merge pull request 'Fix LoongArch64 debug build assertions' ( #3115 ) from Basilisk-Dev/UXP-contrib:loongarch-asserts into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3115
2026-06-04 04:08:45 +00:00
Basilisk-Dev
328ddb2927
Issue #3095 followup - Fix LoongArch64 debug build assertions
2026-06-03 18:13:31 -04:00
Andy
06b9622302
Issue #2964 - Part 3: JS Override for ToUpperCase
2026-06-02 15:25:47 -07:00
Andy
1218649202
Issue #2964 - Part 2b: Improve ToUpperCaseLength
...
Adds a method to force 16-bit characters, regardless of the type of the `chars` argument.
2026-06-02 15:21:44 -07:00
Andy
cbea8f5a53
Issue #2964 - Part 2a: Correctly Detect End of Buffer in ToUpperCaseImpl
...
This code made two assumptions:
- That the `SrcChar` type should determine the output type, as used in `CanUpperCaseSpecialCasing`.
- That `AppendUpperCaseSpecialCasing` would always return a value larger than the previous value.
The new code uses `DestChar`'s type for `CanUpperCaseSpecialCasing` and for a more accurate End of Buffer check.
2026-06-02 15:21:26 -07:00
Andy
f42e644486
Issue #2964 - Part 1: CSS Override for uppercase and capitalize
2026-06-02 15:20:45 -07:00
Moonchild
a40490b946
Merge pull request 'Fix a build failure for WebRTC on Python 3.14 on MacOS' ( #3113 ) from Basilisk-Dev/UXP-contrib:webrtc-fix-mac into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3113
2026-06-01 09:09:29 +00:00
Basilisk-Dev
ad98693f3d
Issue #3105 followup - Fix a build failure for WebRTC on Python 3.14
2026-05-31 09:54:46 -04:00
Moonchild
7b4aaca975
Merge pull request 'Clamp border-radius value to Int32.MaxValue' ( #3112 ) from border-radius-clamp into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3112
2026-05-30 08:42:57 +00:00
Moonchild
400e59a96d
Issue #3109 - Use CSS' internal length clamp value instead.
2026-05-29 23:53:22 +02:00
Moonchild
09276b72a6
Issue #3109 - Clamp border-radius value to Int32.MaxValue
...
This avoids artifacts from out-of-bounds values.
Resolves #3109
2026-05-29 22:53:43 +02:00
Moonchild
ec18304362
Merge pull request 'Cleanup references to IA64/HP-UX' ( #3106 ) from Basilisk-Dev/UXP-contrib:ia64-cleanup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3106
2026-05-27 10:46:31 +00:00
Moonchild
4cf411f393
Merge pull request 'Remove gonk/Android/iOS/NACL code in WebRTC' ( #3105 ) from Basilisk-Dev/UXP-contrib:webrtc-cleanup-mobile into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3105
2026-05-27 10:45:37 +00:00
Moonchild
a0f135b94f
NSS version update
2026-05-26 14:16:25 +02:00
Moonchild
3be679effc
[DOM] Stop speech synthesis if the originating document is closed.
2026-05-25 20:32:10 +02:00
Moonchild
2d91c80555
[media] ffvpx patch: Fix leak in flac decoder in case of alloc failure.
2026-05-25 19:10:46 +02:00
Moonchild
e5326c1d74
[DOM] Hold a strong ref to VoiceData in nsSynthVoiceRegistry::RemoveVoice.
2026-05-25 18:56:57 +02:00
Jens Stutte
5ddccdc7f6
Bug 1784128 - Assert count passed to PR_Read/PR_Write in nsFileStreamBase fits INT32_MAX.
2026-05-25 15:44:51 +02:00
Moonchild
8dc41b293a
[gfx/layout] Simplify textruns
...
Cache overflow textruns in a better place and stop using a lazy class.
This avoids doing caching in the rendering back-end, and does so where
necessary in TextOverflow (for ellipses)
2026-05-25 14:59:51 +02:00
Moonchild
f02956a324
No issue - Remove ISO-2022-JP from menu, overridability and detector.
...
Removed autodetection of this charset due to unreliability.
There are known security issues around charset auto-detection for ISO-2022-JP.
Given the usage is around 0.000002% of page loads, and Safari does not
support auto-detection of ISO-2022-JP, Chrome also planned to remove
support for it to eliminate the security issues.
See also https://www.sonarsource.com/blog/encoding-differentials-why-charset-matters/
Removal from the menu to avoid social engineering hazards and it being
literally unused on the web.
2026-05-25 13:08:29 +02:00
Moonchild
e3646af419
[libvorbis] Allocate memory with _ogg_malloc
...
See https://gitlab.xiph.org/xiph/vorbis/-/commit/28965ede851bb9c1ce5cc0ed733fdf4ebd3d4241 and related commits.
2026-05-25 11:44:16 +02:00
Moonchild
ee1f2e31a1
[layout] Hide accessible carets when needed.
2026-05-25 11:23:05 +02:00
Moonchild
dcb90d6f92
[DOM] Check values in audio resampling.
2026-05-25 10:57:18 +02:00
John Schanck
f9cdc54e09
Bug 2029818 - avoid refcount over-release in CERT_CertChainFromCert error path.
2026-05-25 10:22:44 +02:00
Moonchild
28be7ae6e0
[NSS] Fix use of uninitialized length after failed PK11_SignWithMechanism/SymKey.
2026-05-25 07:27:51 +02:00
Moonchild
463e7ec3c6
Force Clobber
2026-05-25 06:44:48 +02:00
John Schanck
531eeaabaa
[NSS] Fix maxSize calculation in NSSUTIL_AddNSSFlagToModuleSpec.
2026-05-25 06:43:53 +02:00
Moonchild
af92afbd6c
Merge pull request 'Revert all Issue #3092 Commits' ( #3107 ) from Basilisk-Dev/UXP-contrib:revert-3092 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3107
2026-05-25 04:05:41 +00:00
John Schanck
5005a47921
Bug 2027381 - improve error handling in SECITEM_DupArray with non-null arena.
2026-05-24 22:30:38 +02:00
Basilisk-Dev
72d4ca2b35
Clean up Issue #3092 revert whitespace
2026-05-24 16:19:36 -04:00
Basilisk-Dev
b8951dbc2a
Revert "Issue #3092 - Fix unsafe GC multithreading changes"
...
This reverts commit 2ca5d21147 .
The mechanical inverse patch would restore earlier Issue #3092 parallel GC code that has already been removed by the preceding revert commits, so this records the revert without changing the tree.
2026-05-24 16:18:45 -04:00
Basilisk-Dev
20c92e63c5
Revert "Issue #3092 - Safely parallelize GC background finalization"
...
This reverts commit 3cf7c94995 .
2026-05-24 16:13:21 -04:00
Moonchild
ea785c3bb0
[netwerk] Make socket transport hold a reference to TLSServerConnectionInfo.
2026-05-24 21:48:55 +02:00
Randell Jesup
7abc11b3d1
Bug 2036905: Fix UDPSocketParent::ConnectInternal data race on mSocket.
2026-05-24 21:22:57 +02:00
Moonchild
2a4c4687c6
[netwerk] Make nsSocketTransport2::mConnectionFlags atomic.
2026-05-24 21:10:00 +02:00
Basilisk-Dev
de3970d9b4
Revert "Issue #3092 - Refactor WASM compilation handling"
...
This reverts commit 1c09cd7816 .
2026-05-24 14:58:21 -04:00
Basilisk-Dev
4da8c1fe4c
Revert "Issue #3092 - Add new GC sweep tasks."
...
This reverts commit 8b6414ea7c .
2026-05-24 14:57:38 -04:00
Basilisk-Dev
8230f9b359
Revert "Issue #3092 - Implement BackgroundFinalizeTask for parallel garbage collection finalization"
...
This reverts commit 8ca5438db9 .
2026-05-24 14:57:38 -04:00
Basilisk-Dev
310fec9ad5
Revert "Issue #3092 - Implement parallel sweeping and compaction tasks"
...
This reverts commit f33ccb5ce3 .
2026-05-24 14:55:47 -04:00
Basilisk-Dev
5f2040153b
Revert "Issue #3092 - Initial idle GC implementation"
...
This reverts commit fba218cff4 .
2026-05-24 14:54:58 -04:00
Basilisk-Dev
30a774eb08
Revert "Issue #3092 - Perform a minor GC on tab close"
...
This reverts commit 266cc371f7 .
2026-05-24 14:53:56 -04:00
Moonchild
e8ee09b41f
Merge pull request 'Implement CSSStyleSheet constructor' ( #3103 ) from Basilisk-Dev/UXP-contrib:cssstylesheet-updates into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3103
2026-05-24 18:36:53 +00:00
Moonchild
5fc626f0fc
[netwerk] nsRequestObserverProxy ref cleanup.
2026-05-24 19:40:23 +02:00
John Schanck
c87c0e440b
Bug 2029782 - fix 8-byte over-read of AES-192 key buffer in x86 builds without USE_HW_AES.
2026-05-24 15:10:06 +02:00
John Schanck
39b34ed8c5
Bug 2029771 - Heap use-after-free in [@ token_destructor] reading tok->pk11slot after nssToken_Destroy frees the token arena.
2026-05-24 15:07:24 +02:00
John Schanck
e6b4a84e7e
[NSS] Avoid integer overflow when converting AVA value to hex string.
2026-05-24 15:03:12 +02:00
John Schanck
f7dfc278c4
[NSS] Enforce minimum buffer length in sftk_CheckCBCPadding.
2026-05-24 14:58:53 +02:00
Dana Keeler
13349f484c
[NSS] VerifyCodeSigningCertificateChain: require at least one certificate.
2026-05-24 14:40:56 +02:00
Moonchild
bd2670e006
[NSS] Initialize src in SEC_PKCS5GetIV
2026-05-24 14:37:06 +02:00
Dana Keeler
e5bebae2c7
[NSS] NSS_CMSContentInfo_SetContent: only modify cinfo if everything succeeds.
2026-05-24 12:03:33 +02:00
Dennis Jackson
d93df7216d
[NSS] Align PKCS7 digest array with digestAlgorithms.
2026-05-24 11:50:38 +02:00
Moonchild
3d0a6899ce
[libjar] Check Jar entry names for nulls.
2026-05-24 10:51:21 +02:00
John Schanck
fdde68855b
[NSS] Handle SEC_ASN1_NULL in sec_asn1e_contents_length.
2026-05-24 10:16:24 +02:00
Moonchild
2d038e6c1a
[NSS] Fix instances of softoken attributes freed after owning object.
2026-05-24 10:09:28 +02:00
Moonchild
c10f8a567b
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2026-05-24 09:10:39 +02:00
Moonchild
dcfa35e1ff
Merge pull request 'Restore libAOM to the tree and making it a build-time configuration.' ( #3104 ) from 888-32-bit-work2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3104
2026-05-24 07:09:19 +00:00
Iain Ireland
de1a7f5fe1
[js] Use size_t when inflating UTF8
2026-05-24 09:08:03 +02:00
Basilisk-Dev
2b0935adf4
Issue #3007 - Remove HP-UX LDAP compatibility code
2026-05-23 17:08:16 -04:00
Basilisk-Dev
cbdc5fa85f
Issue #3007 - Remove HP-UX launcher setup
2026-05-23 17:06:16 -04:00
Basilisk-Dev
2a06c40a09
Issue #3007 - Remove IA64 runtime support paths
2026-05-23 17:04:19 -04:00
Basilisk-Dev
f499e3dd36
Issue #3007 - Remove IA64 from build configuration
2026-05-23 17:04:18 -04:00
Basilisk-Dev
34d88ac937
Issue #3053 - Implement CSSStyleSheet constructor
2026-05-23 16:45:54 -04:00
Basilisk-Dev
48d21fa2bf
Issue #3008 - Prefer Windows memory barrier in WebRTC FIFO
2026-05-23 16:31:36 -04:00
Basilisk-Dev
c91c69272b
Issue #3008 - Remove stale B2G WebRTC camera comment
2026-05-23 16:25:35 -04:00
Basilisk-Dev
91f4fa744e
Issue #3008 - Remove mobile leftovers from DOM WebRTC
2026-05-23 16:25:35 -04:00
Basilisk-Dev
c2abd4aaa6
Issue #3008 - Remove stale Android WebView GYP guards
2026-05-23 16:25:34 -04:00
Basilisk-Dev
617ad84f96
Issue #3008 - Keep WebRTC audio FIFO after OpenSL removal
2026-05-23 16:25:33 -04:00
Basilisk-Dev
33b6bfa1b9
Issue #3008 - Fix GYP defaults after mobile cleanup
2026-05-23 16:25:33 -04:00
Basilisk-Dev
4e03afd191
Issue #3008 - Remove remaining mobile WebRTC build references
2026-05-23 16:25:32 -04:00
Basilisk-Dev
3512b73bc3
Issue #3008 - Remove stale iOS comments from WebRTC
2026-05-23 16:25:31 -04:00
Basilisk-Dev
d0ac45cb08
Issue #3008 - Remove iOS support from bundled GYP generators
2026-05-23 16:25:31 -04:00
Basilisk-Dev
ab3d950bd3
Issue #3008 - Remove mobile and NaCl defaults from WebRTC common gyp
2026-05-23 16:25:30 -04:00
Basilisk-Dev
44ddd79356
Issue #3008 - Remove stale iOS labels from WebRTC assembly
2026-05-23 16:25:29 -04:00
Basilisk-Dev
054ddf661f
Issue #3008 - Remove stale mobile notes from WebRTC metadata
2026-05-23 16:25:29 -04:00
Basilisk-Dev
da466a3bdd
Issue #3008 - Remove stale mobile references from WebRTC headers
2026-05-23 16:25:28 -04:00
Basilisk-Dev
42f0c2d78f
Issue #3008 - Remove mobile support from bundled WebRTC tools
2026-05-23 16:25:27 -04:00
Basilisk-Dev
5853784a31
Issue #3008 - Remove stale WebRTC mobile build metadata
2026-05-23 16:25:27 -04:00
Basilisk-Dev
5b20295620
Issue #3008 - Remove mobile guards from WebRTC voice tests
2026-05-23 16:25:26 -04:00
Basilisk-Dev
68e151c2a3
Issue #3008 - Remove mobile guards from WebRTC audio device tests
2026-05-23 16:25:25 -04:00
Basilisk-Dev
dd764a70a2
Issue #3008 - Remove mobile guards from WebRTC module tests
2026-05-23 16:25:24 -04:00
Basilisk-Dev
12defe0d12
Issue #3008 - Remove mobile guards from WebRTC audio tests
2026-05-23 16:25:24 -04:00
Basilisk-Dev
8868dd5785
Issue #3008 - Remove mobile guards from WebRTC tests
2026-05-23 16:25:23 -04:00
Basilisk-Dev
e787d585a4
Issue #3008 - Remove stale WebRTC mobile metadata
2026-05-23 16:25:22 -04:00
Basilisk-Dev
5eb7518ce2
Issue #3008 - Remove mobile WebRTC runtime conditionals
2026-05-23 16:25:21 -04:00
Basilisk-Dev
5be93da111
Issue #3008 - Remove obsolete mobile WebRTC source trees
2026-05-23 16:25:21 -04:00
Moonchild
39a89b708e
Issue #888 - Fix makefile configure syntax for x86 check.
...
Not sure what language I was thinking but it was the wrong one. :P
2026-05-23 14:02:04 +02:00
Moonchild
69ad4f1674
Fix line endings in WebmDemuxer.cpp
...
No code changes.
2026-05-23 13:42:03 +02:00
Moonchild
59ae55a0e2
Issue #888 - Back out changes to the Dav1d lib.
2026-05-23 12:46:23 +02:00
Moonchild
6eb551332e
Issue #888 - Hook libAOM back up, and make it configurable at build time.
...
Since the Dav1d changes will be reverted in the next commit, this also
includes a test for 32-bit x86 targets which makes libAOM mandatory.
2026-05-23 12:44:12 +02:00
Moonchild
96be1bb7a0
Revert "Issue #888 - Remove bundled libaom"
...
This reverts commit eb487c2ca1 .
2026-05-23 10:26:43 +02:00
Moonchild
4dc3b6db93
Merge pull request 'Follow up on Dav1d implementation for 32-bit targets' ( #3100 ) from 888-32bit into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3100
2026-05-23 07:37:32 +00:00
Moonchild
a1da555b51
Issue #888 - Follow-up: Put smooth_weights_{1|2}d_16bpc back in ipred16 sources.
...
This reverts commit 16212905de and places
the SMOOTH_WEIGHTS in the SSE source instead, since that is always included.
2026-05-22 12:15:20 +02:00
Moonchild
c1abc2eb3e
Merge pull request 'ffvpx: Configuration for NetBSD/powerpc' ( #3101 ) from nia/UXP:ffvpx-ppc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3101
2026-05-22 08:14:01 +00:00
nia
f0acda0bf4
ffvpx: Configuration for NetBSD/powerpc
...
Signed-off-by: Nia Alarie <nia@NetBSD.org >
2026-05-21 17:10:41 +02:00
Moonchild
16212905de
Issue #888 - Follow-up: Lift smooth_weights_{1|2}d_16bpc out of AVX source.
...
This lifts the 2 functions out of the AVX-specific source (since it's
also used in the SSE one as external) and places it in the common x86
include.
This is an upstream code placement error; should be reported upstream.
2026-05-21 13:38:47 +02:00
Moonchild
2eb5e91b62
Issue #888 - Follow-up: don't assemble AVX into Dav1d on 32-bit x86
2026-05-21 13:34:47 +02:00
Moonchild
fa6b67c8ac
Re-land: Fix devtools on 32-bit big endian platforms
...
Tag PR #3098
2026-05-21 09:42:07 +02:00
Moonchild
6a117bd9d1
Revert "Fix dev tools on 32-bit big endian platforms"
...
This reverts commit f363ec1838 .
2026-05-20 16:18:09 +02:00
Moonchild
714c709ad0
Merge pull request 'Add NetBSD to list of platforms where mapfile gets generated' ( #3099 ) from nia/UXP:mapfile into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3099
2026-05-20 10:47:37 +00:00
Moonchild
eafc230ff2
Merge pull request 'A collection of random fixes I've been accumulating.' ( #3097 ) from dbsoft/UXP:miscfixes4 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3097
2026-05-20 10:46:57 +00:00
Moonchild
523a9aa2de
Merge pull request 'Split loongarch jit so it no longer uses any mips files' ( #3096 ) from Basilisk-Dev/UXP-contrib:loongarch-fix-jit into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3096
2026-05-20 10:46:19 +00:00
Moonchild
ec92c29029
Merge pull request 'Fix dev tools on 32-bit big endian platforms' ( #3098 ) from nia/UXP:devtools-lp32 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3098
2026-05-20 10:45:41 +00:00
nia
4a9d702bc1
Add NetBSD to list of platforms where mapfile gets generated
...
Signed-off-by: Nia Alarie <nia@NetBSD.org >
2026-05-20 10:26:38 +02:00
nia
f363ec1838
Fix dev tools on 32-bit big endian platforms
...
This resolves a crash when pressing F12.
The __LP64__ macro is relied upon elsewhere in UXP so I think
this change should be safe.
Signed-off-by: Nia Alarie <nia@NetBSD.org >
2026-05-20 10:05:48 +02:00
Basilisk-Dev
ffb3a95eb9
Issue #3095 - split loongarch jit so it no longer uses any mips files
2026-05-19 15:43:21 -04:00
Moonchild
63094adef4
Merge pull request 'Fix build on NetBSD/aarch64' ( #3094 ) from nia/UXP:netbsd-aarch64 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3094
2026-05-19 15:50:04 +00:00
nia
1f8dcf74c8
Fix build on NetBSD/aarch64
...
Signed-off-by: Nia Alarie <nia@NetBSD.org >
2026-05-19 09:28:23 +02:00
Moonchild
f20c549f66
Issue #888 - Follow-up: Spot-fix; set PREFIX in Dav1d config on Apple.
2026-05-19 09:02:10 +02:00
Brian Smith
b62cccda62
Issue #1829 - Follow-up: Fix package name check for 32-bit Intel.
2026-05-18 08:51:11 -05:00
Brian Smith
43f3b3c7ee
Issue #1829 - Follow-up: Fix version check for CoreLocation on 10.5 and earlier.
2026-05-18 08:51:11 -05:00
Brian Smith
a328464912
Issue #1829 - Follow-up: Remove obsolete font code from Cairo.
...
This code only gets built on 32-bit MacOS, and it isn't used.
This allows Intel 32-bit MacOS builds to succeed.
2026-05-18 08:51:11 -05:00
Brian Smith
977ddd9e81
No Issue - Fix font crash on MacOS 10.7-10.11 using fonts with variations.
...
Switch to MacOS version guard's instead of PowerPC guards, for Intel support.
Remove inactive debug code.
2026-05-18 08:51:11 -05:00
Brian Smith
67717762f9
Issue #2051 - Follow-up: Fix CSS image masks on PowerPC Mac.
...
When I brought back CoreGraphics backend I brought back a fix for this.
However the fix was designed for Intel which uses Skia as a backend.
Our Skia does not support big endian, so change it to use Cairo backend.
2026-05-18 08:51:11 -05:00
Brian Smith
a33f6857fd
Issue #2354 - Follow-up: Fix building WebRTC on 32-bit ARM without hardware float.
2026-05-18 08:51:11 -05:00
Brian Smith
5c7c192df1
No Issue - Fix cubeb compilation targeting MacOS 10.5 from newer versions.
...
Remove obsolete iOS checks.
2026-05-18 08:51:11 -05:00
Basilisk-Dev
0186e78221
Fix WeakRef constructor realm prototype
2026-05-18 13:05:28 +02:00
Basilisk-Dev
e9e858348b
Fix FinalizationRegistry constructor realm prototype
2026-05-18 13:05:21 +02:00
Basilisk-Dev
631bb15b05
Implement FinalizationRegistry
2026-05-18 13:05:15 +02:00
Basilisk-Dev
e7d6301c75
Make WeakRef support always enabled
2026-05-18 12:52:09 +02:00
Moonchild
22001fbca3
Fix incorrect variadic for size_t in fprintf statement in hyphen.c.
2026-05-18 12:41:20 +02:00
Basilisk-Dev
22e3028d56
Fix ArrayBuffer storage and error types
2026-05-18 12:31:46 +02:00
Basilisk-Dev
9498ce3f1e
Fix ArrayBuffer slice after resizable source shrink
2026-05-18 12:31:40 +02:00
Basilisk-Dev
172c7b6f25
Validate typed array set and constructors on resizable buffers
2026-05-18 12:31:35 +02:00
Basilisk-Dev
750ef67831
Validate typed array methods on resizable buffers
2026-05-18 12:31:29 +02:00
Basilisk-Dev
c19a39c4a5
Fix resizable DataView out-of-bounds semantics
2026-05-18 12:31:24 +02:00
Basilisk-Dev
d6bfeeaf1a
Support BigInt Atomics waiters
2026-05-18 12:31:17 +02:00
Basilisk-Dev
e7ea20c073
Support DataView on shared array buffers
2026-05-18 12:31:11 +02:00
Basilisk-Dev
a7e01b3f77
Guard typed array JIT paths for resizable buffers
2026-05-18 12:31:06 +02:00
Basilisk-Dev
c3a541c55a
Implement resizable buffer view semantics
2026-05-18 12:30:59 +02:00
Basilisk-Dev
41efdfd488
Implement Atomics.waitAsync
2026-05-18 12:30:52 +02:00
Basilisk-Dev
7d41d2a47c
Implement growable SharedArrayBuffer
2026-05-18 12:30:46 +02:00
Basilisk-Dev
ec951c592a
Allow symbols as weak collection keys
2026-05-18 12:30:39 +02:00
Basilisk-Dev
829fd431e2
Implement ES2024 ArrayBuffer transfer APIs
2026-05-18 12:30:33 +02:00
Basilisk-Dev
9b7d25d1fd
Implement ES2024 grouping and resolver builtins
2026-05-18 12:30:28 +02:00
Basilisk-Dev
1ab3e82a4d
Fix JS shell module hook build
2026-05-18 12:30:22 +02:00
Moonchild
b07102b821
Merge pull request 'Paralellize GC and implement GC-on-Idle' ( #3093 ) from 3092 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3093
2026-05-18 10:28:10 +00:00
Moonchild
3adf3917ee
Merge pull request 'Port various code changes from eUXP that should have been upstreamed' ( #3091 ) from eUXP_ports2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3091
2026-05-18 10:27:54 +00:00
Moonchild
bbaf41e032
Merge pull request 'Truncate fractional border calculations to integers with special handling' ( #3090 ) from 3088 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3090
2026-05-18 10:26:16 +00:00
Moonchild
618c017249
Merge pull request 'Replace libAOM reference AV1 implementation with Dav1d' ( #3087 ) from dav1d-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3087
2026-05-18 10:25:52 +00:00
Basilisk-Dev
3cf7c94995
Issue #3092 - Safely parallelize GC background finalization
...
Parallelize background finalization across zones within each finalize
phase while preserving phase ordering and falling back to serial work
when no helper thread is idle.
Make compacting GC pointer updates schedule background work per zone and
only when enough background-safe arenas exist.
2026-05-18 12:18:05 +02:00
Basilisk-Dev
2ca5d21147
Issue #3092 - Fix unsafe GC multithreading changes
2026-05-18 12:17:18 +02:00
ownedbywuigi
266cc371f7
Issue #3092 - Perform a minor GC on tab close
2026-05-18 12:16:56 +02:00
ownedbywuigi
fba218cff4
Issue #3092 - Initial idle GC implementation
2026-05-18 12:15:55 +02:00
ownedbywuigi
f33ccb5ce3
Issue #3092 - Implement parallel sweeping and compaction tasks
...
for improved garbage collection performance
2026-05-18 12:15:34 +02:00
ownedbywuigi
8ca5438db9
Issue #3092 - Implement BackgroundFinalizeTask for parallel garbage collection finalization
2026-05-18 12:15:09 +02:00
ownedbywuigi
8b6414ea7c
Issue #3092 - Add new GC sweep tasks.
...
For saved stacks, self-hosting scripts, and native iterators.
2026-05-18 12:14:30 +02:00
ownedbywuigi
1c09cd7816
Issue #3092 - Refactor WASM compilation handling
2026-05-18 12:13:18 +02:00
wuggy
07b47c8472
Whitelist virtual GPUs (VirtualBox, VMware, VirtIO (QEMU and forks like UTM), Parallels)
2026-05-18 09:48:35 +02:00
Basilisk-Dev
950a608e01
Support CSS shadow parts
2026-05-17 09:57:14 +02:00
Basilisk-Dev
c7f08c7e53
Issue #2506 - Support range media query syntax
...
Resolves #2506
2026-05-17 09:55:27 +02:00
Basilisk-Dev
4f3857c1ea
Issue #1826 - Parse calc() weights in color-mix
2026-05-17 09:53:56 +02:00
Basilisk-Dev
60b4b1ad47
Issue #3089 - Support logical border radius properties
...
Resolves #3089
2026-05-17 09:53:05 +02:00
Basilisk-Dev
8262184873
Revert "Cloudflare Image Resizing fix take 2"
...
This reverts commit ef19ad3ffd .
No longer necessary with aspect-ratio in place.
2026-05-17 09:46:52 +02:00
Basilisk-Dev
e9abd8b022
Support CSS sizing math functions
...
Prereq for parts of #2404
2026-05-17 09:46:07 +02:00
Basilisk-Dev
fe29e0430c
Issue #2404 - Enable CSS aspect-ratio sizing
2026-05-17 09:44:59 +02:00
Moonchild
589967f3df
Merge branch '3088' into euxp-ports2
2026-05-17 09:44:13 +02:00
Basilisk-Dev
9db275d300
Remove stale imagebitmap support file entry
2026-05-17 09:42:03 +02:00
Basilisk-Dev
b6d0a261d2
Load mochitest modules without imp
2026-05-17 09:41:56 +02:00
Basilisk-Dev
dad0daf389
Issue #2982 - Follow-up: allow color-mix to work with oklab and oklch
...
Tag #2489 and #3003
2026-05-17 09:41:44 +02:00
Basilisk-Dev
b58e2b9312
Issue #1826 - Serialize special calc() number values
2026-05-17 09:39:23 +02:00
Basilisk-Dev
b8f458a819
Issue #1826 - Add typed calc() arithmetic for media queries
2026-05-17 09:39:00 +02:00
Basilisk-Dev
39321f4796
Issue #1826 - Canonicalize nested calc() serialization
2026-05-17 09:38:31 +02:00
Basilisk-Dev
d8de738239
Issue #1826 - Support calc() in media queries
2026-05-17 09:37:49 +02:00
Basilisk-Dev
40407bb784
Issue #1826 - Implement broader CSS calc() parsing
2026-05-17 09:37:11 +02:00
Basilisk-Dev
a5b2671f1e
Fix app-unit rounding for border width edges
2026-05-17 09:34:28 +02:00
Basilisk-Dev
4249686af4
Flush layout for computed border-width shorthand
2026-05-17 09:34:20 +02:00
Basilisk-Dev
69ba22d624
Fix CSS border rounding and currentcolor clipping
2026-05-17 09:34:13 +02:00
Basilisk-Dev
4359582e67
Test fractional border width rounding
2026-05-17 09:33:59 +02:00
Basilisk-Dev
fa06d2de31
Floor fractional border widths
2026-05-17 09:33:49 +02:00
ownedbywuigi
b7b1918a36
Issue #888 - Add dav1d_flush
2026-05-17 09:06:09 +02:00
ownedbywuigi
aa69d5ec99
Issue #888 - Make symbols direct to dav1d, not AOM.
2026-05-17 09:05:44 +02:00
ownedbywuigi
6e4bb257a4
Issue #888 - (potentially) fix MSVC builderr
2026-05-17 09:05:24 +02:00
wuggy
a30f439a9c
Issue #888 - Fix alphabetical order issue
2026-05-17 09:04:52 +02:00
Basilisk-Dev
0ccaab55ca
Issue #888 - Update AV1 configure comment for dav1d
2026-05-17 09:04:31 +02:00
Basilisk-Dev
e61621692c
Issue #888 - Enable AV1 playback by default
2026-05-17 09:04:05 +02:00
Basilisk-Dev
9a8cb2e22e
Issue #888 - Enable dav1d SIMD on more architectures
2026-05-17 09:03:41 +02:00
Basilisk-Dev
eb487c2ca1
Issue #888 - Remove bundled libaom
2026-05-17 09:03:21 +02:00
Basilisk-Dev
5c0a35a358
Issue #888 - Enable dav1d LoongArch SIMD
2026-05-17 09:02:50 +02:00
Basilisk-Dev
a468f81a5e
Issue #888 - Use in-tree dav1d for AV1 decoding
2026-05-17 09:00:34 +02:00
Basilisk-Dev
d1b46d7347
Issue #888 - Vendor dav1d 1.5.3
2026-05-17 09:00:07 +02:00
Moonchild
3583e443dd
[js] Increase RecoverOffset size (64-bit)
2026-05-12 19:42:44 +02:00
Moonchild
afc6210b2c
[DOM] Add nullcheck on thumb dragging event ranges.
2026-05-12 09:58:43 +02:00
Moonchild
6fb98414ef
[DOM] Add nullcheck on document for requestSubmit
2026-05-12 09:57:56 +02:00
Moonchild
1268c5055a
Merge pull request 'Cherry pick some things from Dactyloidae' ( #3086 ) from dactyloidae-ports into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3086
2026-05-11 08:59:14 +00:00
Moonchild
30a1c98c9d
Revert "Issue #3030 - Implement lazy-loading for image elements."
...
This reverts commit 7574161abe .
2026-05-09 10:23:04 +02:00
Moonchild
17b7e131b4
Issue #3030 - Improve image cache entry handling.
...
This:
- increases max image cache entry size and adjusts related parameters.
- makes the cache entry timeout configurable for advanced tweaking.
- adds a mechanism to keep commonly-used, small image sizes in cache
longer.
2026-05-09 08:26:44 +02:00
ownedbywuigi
7574161abe
Issue #3030 - Implement lazy-loading for image elements.
2026-05-09 08:08:45 +02:00
ownedbywuigi
5185da6cf0
Issue #3030 - Prevent unnecessary event allocation.
...
Reuse the same event object when dispatching bubbling/capturing phases
instead of allocating new ones.
2026-05-09 08:08:14 +02:00
ownedbywuigi
a5c925df20
Issue #3030 - Account for custom elements in attribute value checking.
...
Refactors MaybeCheckSameAttrVal to streamline old value storage for
custom elements.
2026-05-09 08:06:50 +02:00
ownedbywuigi
e794163e05
Issue #3030 - Block auth prompt if there is a sync XHR active.
...
This attempts to fix https://forum.palemoon.org/viewtopic.php?f=3&t=33260
2026-05-09 08:03:43 +02:00
Moonchild
2690911551
Merge pull request 'Set glx as OpenGL backend default until egl bugs can be investigated' ( #3084 ) from Basilisk-Dev/UXP-contrib:egl-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3084
2026-05-08 06:47:21 +00:00
Basilisk-Dev
6cc0c04b5c
Issue #3079 followup - set glx as OpenGL backend default until egl bugs can be investigated
2026-05-07 21:03:15 -04:00
Moonchild
edd0f13910
Merge branch 'ANGLE-fixes'
2026-05-07 20:09:23 +02:00
Moonchild
c57f1ec98c
Merge branch '150.0.2'
2026-05-07 20:09:12 +02:00
Moonchild
f757e38c04
[layout] Check offset against start of skip range.
2026-05-07 20:07:33 +02:00
Moonchild
00ab986cb8
[gfx] Fix integer overflow in cairo PDF surface image emission
2026-05-07 19:39:49 +02:00
Valentin Gosu
cd873c87d5
Bug 2034352 - Make URL::SearchParams return an already_AddRefed
2026-05-07 19:39:42 +02:00
Moonchild
bd3ea8d98d
Issue #3083 - Fix incorrect nullcheck.
2026-05-07 19:39:04 +02:00
Moonchild
865d547992
Issue #3083 - Add sanity check to EmulatedIndexedStorage::getNativeStorage
2026-05-07 19:38:17 +02:00
Moonchild
2c4ea0bc88
Issue #3083 - Turn debug-only assert into a skip.
2026-05-07 19:37:46 +02:00
Moonchild
001f950041
Merge pull request 'Enable EGL as the default OpenGL context backend on Linux with GLX fallback' ( #3080 ) from Basilisk-Dev/UXP-contrib:egl into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3080
2026-05-05 20:51:55 +00:00
Basilisk-Dev
ca839a4b0f
Issue #3079 - only build the X11-specific GL code on X11 systems
2026-05-05 14:07:55 -04:00
Basilisk-Dev
807faf43b0
Issue #3079 - Silence EGL library load logging
2026-05-05 10:13:33 -04:00
Basilisk-Dev
2edc704e4f
Issue #3079 - Use desktop OpenGL for X11 EGL
2026-05-05 07:58:40 -04:00
Basilisk-Dev
becff6c0d2
Issue #3079 - Add EGL-aware X11 GL probing and fallback
2026-05-05 07:58:26 -04:00
Moonchild
06caa2f30f
Merge pull request 'Backport 1398140 and 1377238 - Ion Multithreading Improvements' ( #3076 ) from Basilisk-Dev/UXP-contrib:bugzilla-performance-backports into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3076
2026-05-03 11:57:55 +00:00
Moonchild
ac0f516a1a
Merge pull request 'Upgrade mimalloc to 3.3.1' ( #3056 ) from Basilisk-Dev/UXP-contrib:mimalloc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3056
2026-05-03 09:18:12 +00:00
Basilisk-Dev
6d4244e049
Issue #3075 - Backport bug 1398140 - Remove the Ion helper thread pausing
2026-04-30 08:46:31 -04:00
Basilisk-Dev
d5d43c7221
Issue #3075 - Backport bug 1377238 - Free finished IonBuilders off-thread.
2026-04-30 08:43:37 -04:00
Moonchild
3a5950ae65
Issue #3066 - Follow-up: use cpuCount for maxParseThreads.
...
Addressing the confusing naming here:
cpuCount is the number of _logical_ processors as reported by the system,
not the physical cores.
threadCount is that number with some extras. This should be used with care.
2026-04-30 10:51:52 +02:00
Moonchild
58a00fe63b
Revert "Issue #3066 - Follow-up: Reserve threads for burst use cases."
...
This reverts commit 3259bdc1c1 .
2026-04-30 10:47:03 +02:00
Moonchild
b486a37ba1
Revert "Issue #3066 - Follow-up: Change the way HelperThread counts are calculated."
...
This reverts commit a1bde368ab .
2026-04-30 10:46:54 +02:00
Moonchild
a1bde368ab
Issue #3066 - Follow-up: Change the way HelperThread counts are calculated.
2026-04-30 10:39:09 +02:00
Moonchild
dc2cb047aa
Platform version bump.
2026-04-29 15:08:29 +02:00
Moonchild
a06d5a80a1
[gfx] Add sanity checks in ANGLE D3D11 renderer.
2026-04-29 14:57:03 +02:00
Moonchild
2dbf5e90d6
[DOM] Do not interrupt worker execution if already scheduled.
2026-04-29 13:28:06 +02:00
Moonchild
3259bdc1c1
Issue #3066 - Follow-up: Reserve threads for burst use cases.
2026-04-29 12:10:41 +02:00
Moonchild
d8fc800bb6
[DOM] Validate size in FileReader.
2026-04-29 11:30:43 +02:00
Moonchild
2f48cd27d5
[DOM/media] Add some sanity checks to MP3 demuxer.
...
Note: `vbr.NumAudioFrames()` is already checked in `vbr.IsComplete()`
2026-04-29 11:10:41 +02:00
Iain Ireland
5da410af19
Bug 2029806: Handle ill-formed UTF16
2026-04-29 10:38:42 +02:00
Karl Tomlinson
11b676d033
Bug 2027433 use nullptr for silent up-mix channels
2026-04-29 10:16:55 +02:00
Karl Tomlinson
68f88c7b49
Bug 2027433 Treat null input channels as zero in AudioChannelsDownMix()
2026-04-29 10:03:32 +02:00
Karl Tomlinson
b887dd8f37
Bug 2027433 Treat null input channels as zero in InterleaveAndConvertBuffer()
...
The loop nesting is inverted so as not to add a null check to the inner
loop, but this change would also have some impact on cache use:
* The loop ordering might perhaps not be the ideal for two channels and
large sample counts, for example, because it means going through the
output/largest buffer twice.
* It does, however, avoid pathological situations of iterating across
planar channel buffers, likely to load set-associative cache lines if
the channel buffers are page aligned, due to having 1024 (or somewhat
fewer) floats, for example.
2026-04-29 09:49:46 +02:00
Moonchild
9be79d5b97
Revert "[DOM] Ensure the GC sees consistent states while adopting DOM nodes."
...
This reverts commit 07c08f37be .
2026-04-28 18:12:15 +02:00
Moonchild
ed4b5d4214
Merge pull request 'Issue #3038 - Fix ./mach help command on Python 3.14.' ( #3072 ) from athenian200/UXP:mach_help_fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3072
2026-04-28 13:29:05 +00:00
Moonchild
2aeecda75f
Merge pull request 'Fix non-English output corruption and issues surrounding Python cl wrapper.' ( #3069 ) from athenian200/UXP:foreign_msvc_fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3069
2026-04-28 13:25:49 +00:00
Moonchild
633de098f8
Merge pull request 'Implement full LoongArch64 Baseline/Ion/wasm JIT backend' ( #3067 ) from Basilisk-Dev/UXP-contrib:loongjit into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3067
2026-04-28 13:06:32 +00:00
Jeremy Andrews
241f9c3965
Issue #3038 - Fix ./mach help command on Python 3.14.
...
This was a deliberate change in Python 3.14 specifically, should be noted that the old code worked
on every earlier Python version before this. It also was not documented in the release notes,
but it was easy to find people complaining about them tightening the API here.
Ref: https://discuss.python.org/t/argparse-valueerror-action-store-true-is-not-valid-for-positional-arguments/106355
2026-04-27 12:53:09 -05:00
Moonchild
3749fabef9
Merge pull request 'Issue #3066 - on systems with 2 or less CPU cores, use cpuCount for number of helper threads instead of threadCount to prevent performance issues' ( #3071 ) from Basilisk-Dev/UXP-contrib:cpuCount-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3071
2026-04-27 17:38:31 +00:00
Basilisk-Dev
ab6fdd555a
Issue #3066 - on systems with 2 or less CPU cores, use cpuCount for number of helper threads instead of threadCount to prevent performance issues
2026-04-27 12:57:08 -04:00
Moonchild
6dcb20949a
[NSS] Restore dropped 'S' :P
2026-04-27 16:36:01 +02:00
Jeremy Andrews
2ad83109ee
Issue #3068 - Implement C++ wrapper.
...
I looked at the Python wrapper so many times and felt like I was
writing C by proxy to clean up Python assumptions, and started
wondering if C++ was the right tool for this job instead of Python.
Here's my attempt at a C++ version of this wrapper. I'm offering both
options, you can revert this commit if you prefer the Python version.
2026-04-27 01:21:42 -05:00
Jeremy Andrews
993f6947d0
Issue #3068 - Fix non-English MSVC text corruption.
...
This fixes the original Python wrapper. So basically, the Python developers
have a poor grasp of how Windows handles anything outside of UTF-16 and
the W APIs, and barely understand ANSI codepages, let alone console codepages.
Both MSYS1 and Python 3 seem to treat Windows NT like Windows 9x way too often.
Not the kind of 1990s nostalgia trip we had in mind, but it's the one we got.
2026-04-27 01:21:27 -05:00
Basilisk-Dev
a0ee7ae1d7
Issue #3049 - loongarch64: remove remaining MIPS file diffs
2026-04-26 16:20:22 -04:00
Basilisk-Dev
140226f9ee
Issue #3049 - loongarch64: drop whitespace-only mips64 diff
2026-04-26 16:20:22 -04:00
Basilisk-Dev
4729e6299e
Issue #3049 - loongarch64: localize shared JIT cleanup
2026-04-26 16:20:22 -04:00
Basilisk-Dev
b6a9734757
Issue #3049 - loongarch64: drop inert minimal JIT path
2026-04-26 16:20:21 -04:00
Basilisk-Dev
426edd0c41
Issue #3049 - loongarch64: trim non-JIT PR fallout
2026-04-26 16:20:21 -04:00
Basilisk-Dev
5cc9593b41
Issue #3049 - loongarch64: fill scalar macroassembler NYI helpers
2026-04-26 16:20:21 -04:00
Basilisk-Dev
bd3a1d801a
Issue #3049 - loongarch64: implement baseline wasm atomics
2026-04-26 16:20:21 -04:00
Basilisk-Dev
007e595a33
Issue #3049 - loongarch64: fix JIT uint8 clamp lowering
2026-04-26 16:20:20 -04:00
Basilisk-Dev
537bbfa821
Issue #3049 - loongarch64: fix wasm and debug-trap jit-test regressions
2026-04-26 16:20:20 -04:00
Basilisk-Dev
4b340a1d4d
Issue #3049 - loongarch64: retire stale JIT TODOs
2026-04-26 16:20:20 -04:00
Basilisk-Dev
8ef06683c6
Issue #3049 - loongarch64: clarify stale shared-code fallback guards
2026-04-26 16:20:20 -04:00
Basilisk-Dev
2f1765ef22
Issue #3049 - loongarch64: direct wasm baseline truncation
2026-04-26 16:20:20 -04:00
Basilisk-Dev
569f912ffd
Issue #3049 - loongarch64: restore pre-barrier link register correctly
2026-04-26 16:20:19 -04:00
Basilisk-Dev
7bd4bfeb06
Issue #3049 - loongarch64: flush icache after JIT runtime patching
2026-04-26 16:20:19 -04:00
Basilisk-Dev
043c98373e
Issue #3049 - loongarch64: allocate Ion temps for post-write barriers
2026-04-26 16:20:19 -04:00
Basilisk-Dev
c02d8f1d61
Issue #3049 - loongarch64: reserve extract temps in shared IC register pools
2026-04-26 16:20:19 -04:00
Basilisk-Dev
c2aeecbf38
Issue #3049 - loongarch64: use explicit VM wrapper tail-call contracts
2026-04-26 16:20:19 -04:00
Basilisk-Dev
3869453bba
Issue #3049 - loongarch64: fix scaled JIT memory addressing
2026-04-26 16:20:18 -04:00
Basilisk-Dev
14d2e10576
Issue #3049 - loongarch64: fix pointer immediates and scratch aliasing
2026-04-26 16:20:18 -04:00
Basilisk-Dev
d667906533
Issue #3049 - loongarch64: fix JIT value boxing and unboxing
2026-04-26 16:20:18 -04:00
Basilisk-Dev
6b4b7dadb2
Issue #3049 - Save loongarch64 regexp JIT link register
2026-04-26 16:20:18 -04:00
Basilisk-Dev
9f73d5bb49
Issue #3049 - Fix loongarch64 wasm JIT dispatch and truncation
2026-04-26 16:20:17 -04:00
Basilisk-Dev
802aebd0dd
Issue #3049 - Fix loongarch64 wasm profiling integration
2026-04-26 16:20:17 -04:00
Basilisk-Dev
88a7b76bfe
Issue #3049 - Fix loongarch64 wasm baseline integration
2026-04-26 16:20:17 -04:00
Basilisk-Dev
0164ef4a07
Issue #3049 - Fix loongarch64 wasm runtime plumbing
2026-04-26 16:20:17 -04:00
Basilisk-Dev
cd1e02de12
Issue #3049 - Enable loongarch64 wasm baseline compiler
2026-04-26 16:20:17 -04:00
Basilisk-Dev
265bdc3076
Issue #3049 - Remove loongarch64 native call IC fallback
2026-04-26 16:20:16 -04:00
Basilisk-Dev
0f54499203
Issue #3049 - Re-enable loongarch64 asm.js and native regexp
2026-04-26 16:20:16 -04:00
Basilisk-Dev
cd028bb746
Issue #3049 - Enable loongarch64 wasm profiling patching
2026-04-26 16:20:16 -04:00
Basilisk-Dev
1b15cf18d7
Issue #3049 - Enable loongarch64 Ion environments
2026-04-26 16:20:16 -04:00
Basilisk-Dev
da0cf2149f
Issue #3049 - Enable loongarch64 JIT atomics
2026-04-26 16:20:15 -04:00
Basilisk-Dev
e079c83629
Issue #3049 - Split loongarch64 Ion lowering from mips64
2026-04-26 16:20:15 -04:00
Basilisk-Dev
fc489dc3ad
Issue #3049 - Harden loongarch64 Ion call and environment paths
2026-04-26 16:20:15 -04:00
Basilisk-Dev
983e140fbc
Issue #3049 - Fix loongarch64 nursery chunk JIT checks
2026-04-26 16:20:15 -04:00
Basilisk-Dev
bc826af721
Issue #3049 - Stabilize loongarch64 Ion patching and wasm loads
2026-04-26 16:20:15 -04:00
Basilisk-Dev
ade8a91835
Issue #3049 - Enable loongarch64 wasm runtime and Ion patching
2026-04-26 16:20:14 -04:00
Basilisk-Dev
7a9e340ba4
Issue #3049 - Add loongarch64 wasm backend build support
2026-04-26 16:20:14 -04:00
Basilisk-Dev
907d5eb3a0
Issue #3049 - Enable loongarch64 Ion backend build and runtime
2026-04-26 16:20:14 -04:00
Basilisk-Dev
9ae455ac7d
Issue #3049 - Wire up loongarch64 Ion backend compilation
2026-04-26 16:20:14 -04:00
Basilisk-Dev
ac2c809f8c
Issue #3049 - Fix loongarch64 string extraction in JIT stubs
2026-04-26 16:20:13 -04:00
Basilisk-Dev
86d942f9b5
Issue #3049 - Normalize loongarch64 VM wrapper return setup
2026-04-26 16:20:13 -04:00
Basilisk-Dev
0581d130fe
Issue #3049 - Fix loongarch64 value decoding and exception tail
2026-04-26 16:20:13 -04:00
Basilisk-Dev
5e74610f98
Issue #3049 - Preserve loongarch64 ra across baseline helper calls
2026-04-26 16:20:13 -04:00
Basilisk-Dev
2710214767
Issue #3049 - Disable native regexp JIT on loongarch64
2026-04-26 16:20:13 -04:00
Basilisk-Dev
efd34d3137
Issue #3049 - Handle loongarch64 unary baseline inc and dec
2026-04-26 16:20:12 -04:00
Moonchild
e051599073
[NSS] Update NSS version for release.
...
Add (UXP) to the version display string to signify this is our variant of
NSS 3.90 to avoid confusion with the 3.90 branch used in Firefox 115 ESR.
This version has backported considerably more fixes than Mozilla's NSS.
2026-04-26 15:44:48 +02:00
Moonchild
002b1d928e
[parser] Handle foster parenting properly.
2026-04-26 12:16:13 +02:00
Moonchild
79aa36ef10
[media] Spot-fix for ffvpx handling of bad video data.
2026-04-26 12:00:21 +02:00
Moonchild
1842de878f
[image] Don't do unnecessary work if the image is being destroyed.
2026-04-26 11:48:42 +02:00
Iain Ireland
81cc4e7d9e
Bug 2029727: Update RegExpStatics data after realloc
2026-04-26 11:31:06 +02:00
Moonchild
0d69bdc104
[gfx] OTS/HB: Correct bounds checks.
2026-04-26 11:06:48 +02:00
Moonchild
eb235f0675
[js] Use isElement in UnmappedArgSetter to check if the argument was marked as deleted.
...
This is more consistent with `UnmappedArgGetter` and better handles the
case where the property was marked deleted in `RareArgumentsData` but not
actually deleted from the object due to OOM. Unfortunately this scenario
is hard to prevent because the property is marked as deleted in the
`ArgumentsObject::obj_delProperty` class hook and after that
`NativeDeleteProperty` tries to remove the property and this can fail.
2026-04-26 10:49:29 +02:00
Dennis Jackson
2729d6cae9
Bug 2029323 - Improve size calculations in CMS content buffering
2026-04-26 10:31:29 +02:00
John Schanck
da3b8fc623
Bug 2029425 - Heap use-after-free in cert_VerifyCertChainOld via dangling certsList[] entry on NameConstraints violation.
2026-04-26 10:27:35 +02:00
Moonchild
58f6eb679b
[image] Hold a strong ref on mInnerImage when requesting a refresh.
2026-04-26 10:23:39 +02:00
Moonchild
e4db1b8fdc
[DOM] Add some death grips to TextTrackManager.
2026-04-26 10:13:02 +02:00
Moonchild
6f68647251
[DOM/media] Use extended channel data as-appropriate.
2026-04-26 10:06:09 +02:00
John Schanck
867bd1549b
Bug 2030135 - improve error handling in PK11_ImportPrivateKeyInfoAndReturnKey
2026-04-26 09:18:06 +02:00
Moonchild
bb3275468d
Revert "[gfx] Use local statics for harfbuzz callback pointers"
...
This reverts commit 60a96d9cd2 .
2026-04-26 07:50:58 +02:00
Moonchild
bfc67972ed
No issue - Update our in-tree brotli library to 1.2.0+
...
This includes a minor patch to encode.c to work around the "static init"
check that actually doesn't do anything in its default state, but, due to
compiler subtleties in handling duplicate object names, would not be able
to link brotli.exe because it would refuse to expose all symbols for
duplicate objects (a later one would just be ignored).
Unsure how clang does this but it's not portable across compilers.
(we need the brotli.exe tool for resource package compression)
2026-04-26 00:55:29 +02:00
John Schanck
c04c33e327
Bug 2029462 - store email on subject cache_entry in NSS trust domain.
...
remove_email_entry used cert->email of the last-destroyed cert to locate
the hash entry to clean up. If that cert had no email, the entry was
silently skipped, leaving a dangling subjectList pointer after the arena
was freed. Store the registration-time email on the subject cache_entry
(mirroring ce->nickname) and thread it through remove_subject_entry so
removal always uses the correct email regardless of destruction order.
2026-04-25 22:59:08 +02:00
Moonchild
a64033be06
[security] Ensure DispatchToMainThreadAndWait isn't interrupted.
...
In some cases, `lock.wait()` can be interrupted by spurious wake-ups
before processing is done. To ensure things are, in fact, synchronous,
loop over `wait()` until it is actually done.
2026-04-25 17:17:08 +02:00
Timothy Nikkel
1805114b8b
Bug 2029291.
2026-04-25 16:31:01 +02:00
Jan de Mooij
d0465ae9e5
Bug 2029317 - Create RareArgumentsData before mutating the arguments object in MappedArgumentsObject::obj_defineProperty.
2026-04-25 16:16:00 +02:00
Jan-Ivar Bruaroey
533b487b3b
Bug 2029423 - Reset post_proc state.
2026-04-25 15:58:00 +02:00
Andy Leiserson
7899aa0e49
Bug 2029427 - Fix format string
2026-04-25 15:49:02 +02:00
Moonchild
2ac6f05047
[gfx] Explicitly cast calculation to int32.
2026-04-25 15:25:11 +02:00
Moonchild
6bd4859ef6
[gfx] Port libyuv upstream bounds check.
2026-04-25 15:10:43 +02:00
Simon Farre
120f8bebe4
Bug 2025973 - Use value-semantics for txExecutionState::TemplateRule
...
TemplateRule is a wrapper around references mostly and can for the
purposes of this function be copied to the stack, given that
TemplateRule::mModeNsId is not mutated there.
2026-04-25 15:03:37 +02:00
Dennis Jackson
84a3ff050c
[NSS] Clarify extension negotiation mechanism for TLS Handshakes.
2026-04-25 14:14:21 +02:00
Moonchild
b822fda771
[js] Only allow strings as function name.
2026-04-25 11:44:48 +02:00
athenian200
3e38744f8b
No Issue - Fix non-fatal powershell invocation on Windows.
...
This only happened because Python 3 no longer has the limitation of requiring VS 2009 to build binary extensions, and Python uses powershell to build those on Windows for some reason. Was an optional module anyway, not worth the annoyance it caused some users.
2026-04-25 09:20:32 +00:00
ownedbywuigi
ffeaec8710
Issue #3030 - Reduce layout stalls due to compositor hang-ups.
2026-04-25 11:11:40 +02:00
Olli Pettay
bbeb397619
Bug 2025370 - Properly handle error case in EventListenerManager::GetTypedEventHandler
2026-04-25 11:03:41 +02:00
Moonchild
0e0e2eed28
[DOM/XSLT] Don't use txXPathNode by reference.
...
Follow-up to previous XSLT fixes.
2026-04-25 10:51:24 +02:00
Moonchild
0541bf3363
[gfx] Stop using binary arithmetic in software filtering.
...
There was some weird binary arithmetic to artificially clamp values in
calculations for dot products. (multiply by (x >= 0)...)
Switch to `std::clamp()` on the initial value instead.
2026-04-25 10:22:15 +02:00
Tom Schuster
8c677506b2
Bug 2025332 - ErrorResult should call ClearUnionData more.
2026-04-25 09:32:58 +02:00
Karl Tomlinson
d77bac2b73
Bug 2025483 update mBeginProcessing even on speex_resampler_set_rate() error
2026-04-25 09:03:05 +02:00
Moonchild
4f8122c97c
[NSS] Deep copy profile data in CERT_FindSMimeProfile.
2026-04-25 08:52:27 +02:00
Moonchild
7db3518bcb
[DOM/XSLT] Prevent circular indexing
...
Added additional flag to txIndexedKeyHashEntry to signal whether or not
this entry is already in the process of indexing.
The XSL specs 3.0 talk about recursion being fine, but circularity not
being ok, which is the case when a key is already being looked up.
2026-04-24 21:35:24 +02:00
Moonchild
509b1c9c9d
No issue - Deduplicate HTMLAllCollection::GetSupportedNames code.
...
This was duplicated with a minor difference from the code present in
nsContentList::GetSupportedNames.
2026-04-24 21:21:00 +02:00
Moonchild
ceb04b11aa
[NSS] Reject excessively large ASN.1 SEQUENCE OF in quickder.
2026-04-24 20:55:33 +02:00
Moonchild
1fb0e5ad2e
[DOM] Avoid leaks in nsXMLPrettyPrinter.
2026-04-24 20:38:39 +02:00
Moonchild
0d778af5a1
[DOM/WebCrypto] Reject absurdly large salt values.
2026-04-24 20:34:09 +02:00
Moonchild
1983e6dc6e
[DOM] Add a death grip and use locals in BaseMediaResource::ModifyLoadFlags.
2026-04-24 16:55:15 +02:00
Moonchild
851cfe1a41
[DOM] Add a SequenceRooter to ConsoleProfile.
2026-04-24 16:34:52 +02:00
Moonchild
86cbf4a9f3
[widget] Improve clearing of data during clipboard operations.
2026-04-24 16:25:17 +02:00
Daniel Holbert
af8cda32de
Bug 2026293: Block scripts when initiating async scrollbar activity.
2026-04-24 15:59:17 +02:00
Moonchild
6b9f39b933
[accessibility] Hold a strong ref to mParent in AccIterator.
2026-04-24 15:21:29 +02:00
Moonchild
ac7a61a9be
[gfx] Don't return dummy surfaces.
2026-04-24 14:39:16 +02:00
Moonchild
017cc7ef84
[webrtc] Fix off-by-one comparison.
2026-04-24 14:17:19 +02:00
Simon Farre
72b2c2c555
Bug 2025971 - Use txSingleNodeContext getter of owned txXPathNode.
...
eContext gets a copy of aNode. The function should use that one's member
as it's not a shared reference, which we can't know the life time of.
2026-04-24 14:09:59 +02:00
Moonchild
aec1c42d17
Bug 2025976 - Follow-up: Make txXPathNode() a public class member.
2026-04-24 14:08:54 +02:00
Moonchild
a84dbb6281
[DOM/XSLT] Re-fetch index entry.
2026-04-24 13:47:43 +02:00
Simon Farre
951c54835b
Bug 2025976 - Make txxPathNode be a value instead of reference.
...
txxPathNode has value semantics (it's a smart pointer + uint32_t index;
two different objects of this instance with the same contents are the same
thing).
Increase correctness by making a copy instead of a reference.
2026-04-24 11:30:00 +02:00
Moonchild
142dca26f4
[NSS] Improve input validation in DSAU signature decoding
2026-04-24 11:09:35 +02:00
Moonchild
6f74b59900
[image] Hold a strong ref on error.
2026-04-24 10:37:01 +02:00
Moonchild
07c08f37be
[DOM] Ensure the GC sees consistent states while adopting DOM nodes.
...
This should prevent some intermittent CC crashes when the wrapper cache
has an incorrect state.
2026-04-24 10:04:44 +02:00
Moonchild
a703325af2
[DOM] Improve CC/WrapperCache for nursery objects.
2026-04-24 09:15:19 +02:00
Basilisk-Dev
acf54dc358
Issue #3049 - Add loongarch64 JIT link-time compatibility stubs
2026-04-24 00:38:15 -04:00
Basilisk-Dev
edee1158ee
Issue #3049 - Wire up loongarch64 SpiderMonkey baseline backend
2026-04-23 23:41:12 -04:00
Basilisk-Dev
4f7803881b
Issue #3049 - Disable wasm signal handlers on loongarch64
2026-04-23 22:04:40 -04:00
Basilisk-Dev
a54d8527c8
Issue #3049 - Disable unsupported JIT features in loongarch64 contexts
2026-04-23 21:42:15 -04:00
Basilisk-Dev
7ddab852c3
Issue #3049 - Normalize loongarch64 baseline frame register use
2026-04-23 21:17:14 -04:00
Basilisk-Dev
ffc4084854
Issue #3049 - Use s5 for loongarch64 baseline frames
2026-04-23 21:06:53 -04:00
Basilisk-Dev
367dec14bc
Issue #3049 - Preserve loongarch64 callee-save JIT entry regs
2026-04-23 20:53:40 -04:00
Basilisk-Dev
522b1c58df
Issue #3049 - Fix loongarch64 baseline IC integer compare stub
2026-04-23 20:19:29 -04:00
Basilisk-Dev
f5c28ff4d6
Issue #3049 - Adapt loongarch64 baseline macroassembler to old JIT APIs
2026-04-23 20:03:41 -04:00
Basilisk-Dev
11aa5a7586
Issue #3049 - Fix loongarch64 JIT header compatibility
2026-04-23 19:30:19 -04:00
Basilisk-Dev
f3eb80a55b
Issue #3049 - Adapt loongarch64 JIT glue to older JS APIs
2026-04-23 19:21:46 -04:00
Basilisk-Dev
5a606f322e
Issue #3049 - Wire loongarch64 non-Ion frame and patch hooks
2026-04-23 19:16:28 -04:00
Basilisk-Dev
fb9098d69b
Issue #3049 - Rename and wire loongarch64 baseline JIT backend
2026-04-23 19:09:10 -04:00
Basilisk-Dev
7e1d721f20
Issue #3049 - Extend LoongArch minimal JIT frame slots
2026-04-23 17:48:36 -04:00
Moonchild
55fe29cbb7
[network] Ensure UDPSocket remains alive during CloseWithReason.
2026-04-23 19:35:41 +02:00
Moonchild
044736c889
[network] Hold strong ref in nsSyncStreamListener::Available.
2026-04-23 19:32:33 +02:00
Moonchild
875b73823e
[network] Force NUL termination in ToStringBuffer AF_LOCAL.
...
Also reject AF_LOCAL in IPC reader (just in case).
2026-04-23 19:14:31 +02:00
Moonchild
74fc0fc150
[webrtc] Hold a self-ref on behalf of sigslot, just in case.
...
Also, stop using these PC_AUTO_ENTER_API_CALL... macros
in functions that aren't actually JS API.
2026-04-23 15:07:09 +02:00
Moonchild
a4c8f55faf
[DOM] Fix access to shared RuntimeService::mNavigatorProperties.
2026-04-23 14:29:43 +02:00
Moonchild
8405bea921
Issue #3060 - Align cookie magic prefix handling with the updated spec.
...
This adds `__Http-` and `__Host-Http-` magic prefixes, and aligns
our checks with RFC6265bis.
Resolves #3060
2026-04-23 12:07:59 +02:00
Basilisk-Dev
feda33fbec
Issue #3049 - Allow more LoongArch minimal JIT arguments
2026-04-23 03:36:42 -04:00
Basilisk-Dev
741112d29c
Issue #3049 - Support more LoongArch minimal JIT branch ops
2026-04-23 03:31:22 -04:00
Basilisk-Dev
afe857516d
Issue #3049 - Track LoongArch minimal JIT control flow state
2026-04-23 03:26:35 -04:00
Moonchild
101c6c1ca8
[network] Handle WebSocketChannel::IsPersistentFramePtr correctly.
2026-04-23 09:23:51 +02:00
Basilisk-Dev
6d70806439
Issue #3049 - Handle more LoongArch minimal JIT stack ops
2026-04-23 03:19:20 -04:00
Moonchild
6aed69f637
[network] Hold strong ref in nsDownloader::OnDataAvailable.
2026-04-23 09:14:05 +02:00
Moonchild
fc8ca12118
[DOM] Add a death grip.
2026-04-23 08:50:17 +02:00
Moonchild
15faf0c3c6
[network] Use locals for VisitHeader
2026-04-23 08:38:29 +02:00
Moonchild
a16543eb90
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2026-04-23 07:19:00 +02:00
athenian200
eaf6665b70
Issue #3038 - Make sure js/src/configure.in invokes Python 3.
...
Missed this file while cleaning up Python 2 references in shell scripts. Not sure this is used, but better safe than sorry.
2026-04-23 04:43:28 +00:00
Basilisk-Dev
9907fca0bb
Issue #3049 - Add LoongArch minimal JIT div and mod
2026-04-22 23:42:58 -04:00
Basilisk-Dev
145748d74c
Issue #3049 - Add LoongArch minimal JIT multiply support
2026-04-22 23:39:10 -04:00
Basilisk-Dev
885aeb2ffa
Issue #3049 - Add LoongArch minimal JIT shifts and negation
2026-04-22 23:37:23 -04:00
Basilisk-Dev
0eac54b24e
Issue #3049 - Extend LoongArch minimal JIT value handling
2026-04-22 23:33:46 -04:00
Basilisk-Dev
f4fbed884b
Issue #3049 - Fix LoongArch minimal JIT return path
2026-04-22 23:13:21 -04:00
Moonchild
a4b7b7473f
[DOM] Update some DOM canvas checks.
2026-04-22 23:54:56 +02:00
Moonchild
4fdaa6a05a
Issue #3058 - Part 1: Fix arithmetic issue in ConvertYCbCrToRGB32
...
The more complex part can be landed later.
2026-04-22 21:23:42 +02:00
Moonchild
cfe4a5e353
[NSS] Fix memory leak in NSC_GenerateKey error path.
2026-04-22 16:58:07 +02:00
Moonchild
561002daa4
[NSS] Protect rwSessionCount with slotLock.
...
Previously, SFTKSlot.rwSessionCount was incremented and decremented
atomically, which meant that there was no way to synchronize reads from it
in NSC_GetTokenInfo. This patch removes the atomic operations but protects
rwSessionCount with SFTKSlot.slotLock.
SFTKSlot.sessionCount is already protected in this way, so this should
have no performance impact.
2026-04-22 16:32:19 +02:00
Moonchild
9a5b0e8fef
[NSS] Fix potential integer underflow in tls 1.3.
...
Fix integer underflow in tls13_AEAD when ciphertext is shorter than tag.
2026-04-22 15:42:40 +02:00
Moonchild
7da9a8d988
[media] Check alpha data pointer instead of length.
...
`nestegg_packet_additional_data()` can return a non-zero length with a
null-pointer after failure to parse an ID_BLOCK_ADDITIONAL element.
See upstream bug https://github.com/mozilla/nestegg/issues/76
2026-04-22 14:25:22 +02:00
Moonchild
373ada7321
[network] use nsCOMPtr for mRequest in Base Channel's ScopedRequestSuspender
2026-04-22 13:24:12 +02:00
Moonchild
8ebd469720
Issue #2946 - Follow-up: Sanity-check WMF video properties.
...
Not sure where else to put this under, but it's a WMF HWA related check,
so filing it as a follow-up here to recent work.
Also tag #2949
2026-04-22 12:00:51 +02:00
Moonchild
481c255726
[DOM] More consistently use already-calculated image properties.
2026-04-22 09:20:11 +02:00
Moonchild
3d790dfa0b
[layout] Minor frame scroll improvements.
2026-04-22 08:52:48 +02:00
Moonchild
4bd6812d9c
[XPCOM] Update list of executable extensions on Windows.
2026-04-22 08:20:43 +02:00
Moonchild
98514f7e45
[NSS] ensure permittedSubtrees don't match wildcards that could be outside
...
the permitted tree.
2026-04-22 07:51:47 +02:00
Basilisk-Dev
b822fa9d33
Issue #2927 - Update mimalloc to 3.3.1
2026-04-21 18:09:24 -04:00
Basilisk-Dev
336c03ff42
Issue #2927 - Update mimalloc to 3.3.0
2026-04-21 18:09:12 -04:00
Moonchild
5e7320f939
Merge pull request 'Issue #3038 - Fix ARM assembler issues in libpixman.' ( #3054 ) from athenian200/UXP:libpixman-arm-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3054
2026-04-19 22:25:41 +00:00
Jeremy Andrews
0ea174bd02
Issue #3038 - Add explicit UTF-8 decode to check_debug_ranges.
...
Should be safe because this code path will only fire on Linux and Unix-likes.
Committing directly to master due to it being a one-line change similar to all
the other Python 3 changes.
2026-04-19 13:29:08 -05:00
Jeremy Andrews
4fbecf0e50
Issue #3038 - Fix ARM assembler issues in libpixman.
...
Probably not strictly related to Python 3 changes, but small enough
that expanding the scope to general UXP build issues on Debian
won't be too bad an idea, since the issue was reported there anyway.
Likely related to binutils updates reporter mentioned.
2026-04-18 16:37:30 -05:00
Moonchild
48eee536a3
Merge pull request 'Backport Performance Improvements from 1379814 and 1431353' ( #3051 ) from Basilisk-Dev/UXP-contrib:bugzilla-backports into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3051
2026-04-18 11:37:01 +00:00
Moonchild
010f09bf1e
Merge pull request 'Backport libffi loongarch support' ( #3052 ) from Basilisk-Dev/UXP-contrib:libffi-loongarch into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3052
2026-04-18 07:10:17 +00:00
Basilisk-Dev
771f5dccd5
Issue #3049 - backport libffi loongarch support
2026-04-17 22:19:38 -04:00
athenian200
18a693a8ab
Merge pull request 'Completely remove all remaining usages of and references to dbus-glib from our tree' ( #3039 ) from Basilisk-Dev/UXP-contrib:dbus-glib-removal into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3039
I reviewed and tested this PR on Fedora 43 two days ago. Gave it an r+. Was admittedly hoping Travis (our main Linux guy) would confirm my results, but Basilisk-Dev already tested Oracle Linux and I already tested Fedora, so that is likely good enough. Looked at the patch visually and see nothing that could go wrong on Windows or any other platform, since all the changes appear confined to Linux and WebRTC code paths that we don't use for Windows or Mac. Looks correct, and should be low-risk even if there are issues.
**Justification for merge into master on own initiative:**
1. I have enough Linux experience to confirm the patch shouldn't break our official Linux builds.
2. Patch mostly touches WebRTC related stuff in Basilisk-Dev's area of concern, so he is the most qualified to sign off on such changes.
3. The patch has been tested twice.
4. MC is a bit preoccupied with the server move.
5. Travis also appears to have been busy.
6. 10 days have passed since PR was first submitted.
If master breaks or anything unusual happens as a result of this merge, I am prepared to accept the blame and consequences.
Sincerely,
Jeremy Andrews (athenian200)
2026-04-18 01:41:48 +00:00
Basilisk-Dev
e10d75b7c2
Issue #3050 - Backport 1431353: Remove off-thread parse thread limit
2026-04-17 11:31:08 -04:00
Basilisk-Dev
fd62e7eb91
Issue #3050 - Backport 1379814: Prevent HelperThreads master-task deadlock
2026-04-17 11:30:50 -04:00
Basilisk-Dev
975e6c2618
Issue #3049 - Add property-wrapper fast path to minimal LoongArch JIT
2026-04-16 11:36:57 -04:00
Basilisk-Dev
94ff99c265
Issue #3049 - Cache minimal JIT code on JSScript
2026-04-16 00:01:33 -04:00
Basilisk-Dev
1e1235d1fb
Issue #3049 - Guard minimal JIT direct-call fast path
2026-04-15 23:56:36 -04:00
Basilisk-Dev
9ae59f4312
Issue #3049 - Back out unstable minimal JIT direct-call hook
2026-04-15 23:49:50 -04:00
Basilisk-Dev
802110305d
Issue #3049 - Call minimal LoongArch JIT directly from interpreter
2026-04-15 23:46:29 -04:00
Basilisk-Dev
008d2b2b01
Issue #3049 - Fix switch scoping in minimal LoongArch JIT
2026-04-15 23:40:18 -04:00
Basilisk-Dev
db451f41d4
Issue #3049 - Extend minimal LoongArch JIT for cached counted loops
2026-04-15 23:38:35 -04:00
Basilisk-Dev
a00c861f3b
Issue #3049 - Use standard JSContext declaration in minimal JIT header
2026-04-15 23:18:51 -04:00
Basilisk-Dev
56035186ff
Issue #3049 - Qualify ArrayLength in minimal LoongArch JIT
2026-04-15 23:17:10 -04:00
Basilisk-Dev
73cfb5e9e5
Issue #3049 - Sort minimal LoongArch JIT moz.build entry
2026-04-15 22:56:50 -04:00
Basilisk-Dev
9eed22be4f
Issue #3049 - Add minimal LoongArch JIT regression coverage
2026-04-15 22:46:53 -04:00
Basilisk-Dev
11d18319bd
Issue #3049 - Add minimal LoongArch JS proof-of-concept JIT
2026-04-15 22:45:58 -04:00
Moonchild
d07eaa0c68
Merge pull request 'Added a null-argument guard in uriloader/exthandler/nsExternalHelperAppService' ( #3048 ) from Basilisk-Dev/UXP-contrib:fix-crashes into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3048
2026-04-14 21:30:16 +00:00
Moonchild
e6f73d578b
Merge pull request 'Backport of bug 1350760 - atomization fast-path improvements' ( #3046 ) from Basilisk-Dev/UXP-contrib:1350760-backport into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3046
2026-04-14 21:29:55 +00:00
Basilisk-Dev
0e825b7a8b
Issue #3047 - Added a null-argument guard in uriloader/exthandler/nsExternalHelperAppService
...
setProtocolHandlerDefaults(null, ...) now returns NS_ERROR_INVALID_ARG instead of dereferencing aHandlerInfo and crashing
2026-04-14 00:16:02 -04:00
Basilisk-Dev
d3b337c77a
Issue #3045 - backport of bug 1350760 - atomization fast-path improvements
2026-04-14 00:05:30 -04:00
Moonchild
19b79bef4b
Merge pull request 'Fix ccache builds and clean up Python 3.14 warning spew.' ( #3041 ) from athenian200/UXP:warning-spew-ccache-fixes into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3041
2026-04-13 20:27:58 +00:00
Moonchild
cfbe413763
Merge pull request 'Implement support for lch color space' ( #3035 ) from Basilisk-Dev/UXP-contrib:lch-color into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3035
2026-04-13 20:12:27 +00:00
Moonchild
090242a16e
Merge pull request 'Fix stack OOB write in nsLocaleService::GetLocaleFromAcceptLanguage bounds checks' ( #3044 ) from Basilisk-Dev/UXP-contrib:nslocaleservice-mem-bug into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3044
2026-04-13 20:04:28 +00:00
Basilisk-Dev
53bc735ee9
Issue #3043 - Fix stack OOB write in nsLocaleService::GetLocaleFromAcceptLanguage bounds checks
2026-04-10 14:31:54 -04:00
Moonchild
dc92189c0f
Issue #3042 - Add canvas WebGL context powerPreference
...
Resolves #3042
2026-04-10 10:25:45 +02:00
Jeremy Andrews
3b0aadb95c
Issue #3038 - Fix ccache builds and clean up Python 3.14 warning spew.
...
None of these resulted in build bustage using our default configuration,
but apparently ccache builds were broken due to a bytes/text issue. Wish
the original reporter had mentioned he was using ccache, but he saved me
a lot of busywork. Changes appear safe across whole range of Python
versions we support.
2026-04-08 02:31:52 -05:00
Basilisk-Dev
12ba8bf083
Issue #3027 - completely remove all remaining usages of dbus-glib from our tree
2026-04-07 15:26:28 -04:00
Moonchild
71a061f3ea
Merge pull request 'Remove ia64 from WebRTC in old-configure.in. Replace reference with loongarch64' ( #3033 ) from Basilisk-Dev/UXP-contrib:ia64-old-configure-in into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3033
2026-04-03 06:45:30 +00:00
Moonchild
c29de91663
Merge pull request 'Replace all uses of dbus-glib in widget/gtk with direct libdbus calls' ( #3032 ) from Basilisk-Dev/UXP-contrib:dbus-glib-widget into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3032
2026-04-03 06:45:09 +00:00
Moonchild
3be43599e2
Merge pull request 'Modify nsGIOService to call libdbus directly instead of using dbus-glib' ( #3028 ) from Basilisk-Dev/UXP-contrib:dbus-glib into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3028
2026-04-03 06:43:58 +00:00
Moonchild
2f07b7f26e
Merge pull request 'Follow-up: Fix 32-bit Windows builds.' ( #3037 ) from athenian200/UXP:fix-32bit-windows-build into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3037
2026-04-03 06:42:23 +00:00
Jeremy Andrews
b180acefa2
Issue #2974 - Follow-up: Fix 32-bit Windows builds.
...
Apparently on 32-bit builds, bytes are passed into the build system in exactly
one more place than on 64-bit builds. The fix is trivial and one-line...
hopefully no one minds me doing this as a quick follow-up to the original
issue, it was very small and missed during testing.
2026-04-02 21:32:32 -05:00
Basilisk-Dev
0cd75d7bee
Issue #3003 - Add CSS lch() color parsing support
2026-04-02 17:14:03 -04:00
Basilisk-Dev
f17894ba65
Issue #3003 prerequisite - Split non-sRGB CSS color helpers out of nsCSSParser
2026-04-02 17:13:51 -04:00
Basilisk-Dev
656a76c24e
Issue #3007 - remove unneeded comment
2026-04-02 16:27:52 -04:00
Basilisk-Dev
20a0b94fbf
Issue #3007 and #2897 followup - remove ia64 from WebRTC in old-configure.in. Replace reference with loongarch64
2026-04-02 16:19:55 -04:00
Basilisk-Dev
c037f1194f
Issue #3027 - remove all uses of dbus-glib from widget/
2026-04-02 15:06:41 -04:00
Moonchild
5fb569520e
[network] Ignore non-compliant http server header.
2026-04-02 15:24:32 +02:00
Moonchild
0054f425d9
[NSS] Update NSS to 3.90.9.1 (custom)
2026-04-02 14:35:17 +02:00
Moonchild
60a96d9cd2
[gfx] Use local statics for harfbuzz callback pointers
...
This ensures thread-safe initialization.
2026-04-02 13:27:11 +02:00
Moonchild
323338eb09
Revert "[network] Ignore non-compliant http server header."
...
This reverts commit d2a4890384 .
2026-04-01 20:57:56 +02:00
Moonchild
d2a4890384
[network] Ignore non-compliant http server header.
2026-04-01 16:15:19 +02:00
Moonchild
56a2627104
[XPCOM] Add more validation to SnappyUncompressInputStream
2026-04-01 14:49:47 +02:00
Moonchild
8811a48b8a
CLOBBER for python 3 migration
2026-04-01 14:24:42 +02:00
Moonchild
5f03b88dd3
Merge pull request 'Switch to Python 3.' ( #3024 ) from athenian200/UXP:python3-clean into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3024
2026-04-01 11:57:01 +00:00
Moonchild
2e18e11f2b
No issue - Add convolver sanity check
2026-04-01 13:52:32 +02:00
Jeremy Andrews
02ec45c715
Issue #2974 - Part 70: Clean up PPC code so we can build on PPC.
...
Normally we'd want to do this as part of clean-up for Android-related
enums we don't use or making mozbuild syntax more consistent, but
Python 3's strict enforcement of enums kinda forced my hand here.
In principle, it's a little out of scope, but in practice the "scope"
is practically every Python file in the build system at this
point, unfortunately including mozbuild.
2026-03-30 15:03:49 -05:00
Jeremy Andrews
3b21b1bc49
Issue #2974 - Part 69: Attempt to deal with EnumString issues.
...
Improve logger handling when they happen, also try to keep EnumString
objects out of gyp where we know not all enums will match our internal list.
2026-03-29 16:16:54 -05:00
Basilisk-Dev
663ec3d230
Issue #3027 - modify nsGIOService to call libdbus directly instead of using dbus-glib
2026-03-28 15:41:13 -04:00
Jeremy Andrews
c36a9c674e
Issue #2974 - Part 68: Fix a regex warning and improve Python check.
...
Trying to get this cleaned up...
2026-03-28 11:13:48 -05:00
Jeremy Andrews
4ff3a75296
Issue #2974 - Part 67: Last-minute FreeBSD fixes.
...
Something went wrong on FreeBSD... I hope I don't have to go back
to the drawing board again.
2026-03-28 11:13:20 -05:00
Moonchild
5871ce0b85
Merge pull request 'Implement TypedArray.prototype.toSorted' ( #3025 ) from Basilisk-Dev/UXP-contrib:typedarray-tosorted into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3025
2026-03-28 15:07:05 +00:00
Moonchild
6237c680ca
Merge pull request 'Cleanup obsolete XPCOM Support' ( #3026 ) from Basilisk-Dev/UXP-contrib:cleanup-xpcom into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3026
2026-03-28 15:05:35 +00:00
Basilisk-Dev
facdbf7bc0
Issue #3007 - remove VERY obsolete HTML files in XPCOM
2026-03-28 09:08:54 -04:00
Basilisk-Dev
8f54050907
Issue #3007 - remove 32-bit SPARC OpenBSD support in XPCOM
2026-03-28 08:50:38 -04:00
Basilisk-Dev
2fbe032ee9
Issue #3007 - remove some obsolete HTML files in xpcom
2026-03-28 08:46:49 -04:00
Basilisk-Dev
a8a68383cb
Issue #3007 - Remove bitrig support from XPCOM.
2026-03-28 08:44:21 -04:00
Basilisk-Dev
e3f67c01a2
Issue #3007 - remove remaining HP-UX references in XPCOM
2026-03-28 08:39:01 -04:00
Moonchild
a1fe345c98
No issue - Add 10.4 and 26.* SDK versions to KNOWN_SDK_VERSIONS
...
For Mac builds as requested by dbsoft.
Sorted the entries by major version for readability.
2026-03-28 08:37:42 +01:00
Basilisk-Dev
a1caa316a7
Issue #2551 - implement TypedArray.prototype.toSorted
2026-03-27 13:35:04 -04:00
Moonchild
1011058248
Merge pull request 'Update document.currentScript implementation to align with current spec' ( #3021 ) from currentScript-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3021
2026-03-26 14:59:30 +00:00
athenian200
b9842306a4
merge upstream
2026-03-26 02:29:44 +00:00
Jeremy Andrews
5d63edee09
Issue #2974 - Part 66: client.mk and configure.in shouldn't invoke Python 2.
...
This was unneeded on my system because I made sure the build system couldn't
find Python 2 on the PATH, forcing it to use Python 3. Many developers may
be in environments with both available, so this should be changed.
2026-03-25 21:06:01 -05:00
Moonchild
dc9a5cd350
Merge pull request 'Implement window.MathMLElement global.' ( #3022 ) from dbsoft/UXP:mathmldom-work6 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/3022
Reviewed-by: Moonchild <moonchild@palemoon.org >
2026-03-25 21:52:41 +00:00
Jeremy Andrews
017e021c37
Issue #2974 - Part 65: Last-minute Linux fixes.
...
Forgot to test packaging on Linux this whole time.
Also, kept forgetting to commit these random changes to mozbuild
files that just refer to GNU/kFreeBSD consistently as kFreeBSD.
Not because it's the right thing to call it, but because it's
what we have in the enums that works consistently right now.
And ripping out support entirely would be out of scope.
2026-03-25 11:47:07 -05:00
Jeremy Andrews
12641659e6
Issue #2974 - Part 64: Use venv in VirtualenvManager.
...
I felt like this was a cheat when I did it in my hacky build, and
seriously thought ChatGPT was just suggesting this because it was too
lazy to figure out how to fix virtualenv. I learned several things:
- The approach virtualenv 15.x uses to simulate a Python environment
does not work after Python 3.10. So we'd need a newer virtualenv
anyway, which has different quirks. I got it to "work" on Python 3.11...
but only by copying (almost) the whole stdlib and a bunch of DLL files to
bootstrap it. Which is no longer a virtualenv, it's... just an env.
- VirtualenvManager is Mozilla's code, not a part of virtualenv itself.
Which means everything we need is now contained within our own code,
no third-party module like virtualenv required.
- Our build system doesn't depend on virtualenv quirks at all. In
a pinch, if you copy all the .pth files it generates into the
system's site-packages directory (after turning them all into
absolute paths), it would even run under system Python. It really
only "needs" virtualenv to find its own modules because of how it
was designed.
- I've tested venv extensively across a wide range of Python 3 versions.
not a single one has any issues or behaves in a noticably different
fashion from a build based on a repaired virtualenv extended up to
Python 3.10, which means no regressions were introduced by the switch.
- Python's devs want the venv route over the way virtualenv did things.
PEP 405 was very critical of virtualenv's design, and PEP 587 created a
a new configuration mechanism precisely so no application would have to
do what virtualenv did to get isolation without copying
the whole interpreter into another directory.
- Mozilla also did something similar in BZ 1766497, so they clearly
thought venv had enough features for their build system.
2026-03-25 04:33:16 -05:00
Jeremy Andrews
16f351a14c
Issue #2974 - Part 63: Bring in lex and yacc from "dirty" migration.
...
These versions work on 3.14, my attempt at a cleaner solution did not.
Besides, they apparently were designed for Python 3 to start with.
The mid-to-late parts of that migration were mostly correct, it seems.
Ref: https://repo.palemoon.org/athenian200/UXP/commit/4117ccfc36284845cb4c75cf4e3d5a8997417225#diff-48dc6c6013e343ba4e196819d2cd873b3d576140
2026-03-25 01:27:12 -05:00
Brian Smith
80c7d08eee
Issue #2548 - Part 5 - Implement the HTMLOrForeignElement mixin.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1577660
Add 'preventScroll' option to HTMLElement's, SVGElement's and XULElement's 'focus' method.
https://bugzilla.mozilla.org/show_bug.cgi?id=1374045
2026-03-24 19:38:41 -05:00
Brian Smith
a8c59c38d4
Issue #2548 - Part 4 - Fix some missed changes for ElementCSSInlineStyle.
...
Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin.
https://bugzilla.mozilla.org/show_bug.cgi?id=1579457
2026-03-24 19:38:41 -05:00
Brian Smith
9bf46d80f1
Issue #2548 - Part 3 - Fix some MathML issues encountered since WebIDL works.
...
Add an nsContentUtils API for getting the CallerType of a JSContext.
https://bugzilla.mozilla.org/show_bug.cgi?id=1316616
Also added a Fetch() change that was not in the Mozilla patch.
2026-03-24 19:38:41 -05:00
Brian Smith
638c7f07f7
Issue #2548 - Part 2 - Collection of WebIDL parsing updates in an attempt to fix partial interface mixin error.
...
We should ensure, at build-time, that partial interfaces are defined in the same file as the interface they extend.
Since our build system doesn't really support correct dep builds if they're placed in a different file.
https://bugzilla.mozilla.org/show_bug.cgi?id=1333117
WebIDL: Better error message for trying to inherit from a mixin.
https://bugzilla.mozilla.org/show_bug.cgi?id=1575384
Fix webidl identifier conflicts involving typedefs to produce saner exceptions.
https://bugzilla.mozilla.org/show_bug.cgi?id=1531623
Disallow nullable types for WebIDL constants.
https://bugzilla.mozilla.org/show_bug.cgi?id=1535647
Add support for extended attributes on types in Web IDL
https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
Allow LenientFloat to be only in a specific overload
https://bugzilla.mozilla.org/show_bug.cgi?id=1020975
2026-03-24 19:38:41 -05:00
Brian Smith
8e01b2d181
Issue #2548 - Part 1 - Implement MathML DOM and pre-requisites.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1571487
Introduce interface mixins.
https://bugzilla.mozilla.org/show_bug.cgi?id=1414372
Switch XPathEvaluator to using IDL mixins and remaining users of IDL "implements" over to mixin syntax.
https://bugzilla.mozilla.org/show_bug.cgi?id=1574195
Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin.
https://bugzilla.mozilla.org/show_bug.cgi?id=1579457
Introduce DocumentAndElementEventHandlers to more closely align with the HTML spec.
https://bugzilla.mozilla.org/show_bug.cgi?id=1330457
Remove the use of IsCallerChrome in FetchRequest.
https://bugzilla.mozilla.org/show_bug.cgi?id=1335368
2026-03-24 19:38:41 -05:00
Jeremy Andrews
235db83ca0
Issue #2974 - Part 62: Replace cgi.escape with html.escape.
...
The cgi module was removed from Python 3.14. html module has almost
the exact same thing, and this was apparently used to format html
rather than cgi anyway, so it's probably more correct.
Ref: PEP 594
https://peps.python.org/pep-0594/#cgi
2026-03-24 18:39:27 -05:00
Jeremy Andrews
160e956ab5
Issue #2974 - Part 61: Python 3.14 AST changes.
...
This was done sloppily in my initial work, this is a bit more clean.
Ref: https://docs.python.org/3/deprecations/pending-removal-in-3.14.html
2026-03-24 05:11:44 -05:00
Jeremy Andrews
2cecbc0e7f
Issue #2974 - Part 60: Last fixes for virtualenv.
...
After 3.10, it won't work anymore... thankfully lack of virtualenv
wasn't the cause of busted symlinks on Linux after all.
2026-03-24 05:04:58 -05:00
Jeremy Andrews
11226f5308
Issue #2974 - Part 59: Make backend file generation more deterministic.
...
This led to a lot of false positives while trying to resolve the other
issue. The changes don't seem to cause harm, so I'd like to keep them...
they make debugging easier.
2026-03-23 12:14:25 -05:00
Jeremy Andrews
8ff0eb3b1c
Issue #2974 - Part 58: Fix regexes and lexer on Python 3.11+
...
Newest versions of Python 3 do not like lex.py or the regexes used by
xpidl. These workarounds allow it to work anyway.
2026-03-23 12:09:24 -05:00
Jeremy Andrews
2bb084e824
Issue #2974 - Part 57: Prevent backend regeneration loop.
...
Sometimes Python 3.11+ keeps thinking the backend has changed due to
excessively precise timestamps or something. This workaround makes sure
that make doesn't regenerate the backend more than once per run.
2026-03-23 12:07:25 -05:00
Jeremy Andrews
c089567185
Issue #2974 - Part 56: Full Python 3.10 support.
...
Deal with rU full deprecation and collections.abc move being enforced.
2026-03-22 05:18:14 -05:00
Jeremy Andrews
62397ff43e
Issue #2974 - Part 55: Remove pip from build system, fix Linux builds.
...
pip was apparently breaking Linux builds and I didn't even notice. Turns out
virtualenv doesn't even need pip, and Python ships its own pip so I don't know
why this was even needed...
2026-03-22 04:53:47 -05:00
Jeremy Andrews
458f60d071
Issue #2974 - Part 54: Replace distutils.strtobool with custom implementation.
...
Another sys.path.append hack in virtualenv made necessary by an stdlib
deprecation. Sigh.
Ref: BZ 1877347
2026-03-20 20:21:45 -05:00
Jeremy Andrews
63752e83a5
Issue #2974 - Part 53: Replace distutils.sysconfig with sysconfig.
...
Fairly straightforward. Not too many problems here.
2026-03-20 18:09:10 -05:00
Jeremy Andrews
033b7f5219
Issue #2974 - Part 52: Read /etc/os-version manually to fill in missing logic.
...
There are third-party packages that will do this... but every distro
we support uses /etc/os-version now, and we only check in one place.
2026-03-20 14:36:23 -05:00
Jeremy Andrews
9c10d36094
Issue #2974 - Part 51: Replace imp with importlib.
...
imp was actually still available up until Python 3.9 or so. Ripping
it out made me go through the headache of debugging our import logic.
Granted, it was deprecated long ago and there was plenty of warning, but
since we are doing the migration now it's all hitting at once if we want
to support any semi-modern Python.
2026-03-20 13:29:08 -05:00
Jeremy Andrews
19f0115559
Issue #2974 - Part 50: Remove distutils.version and replace.
...
Python no longer provides any version-related utilities in stdlib.
Did a thorough grep and made absolutely sure to replace every last
use. This was the work I was avoiding during my first port...
Ref: PEP 632, BZ 1777414, BZ 1858065, BZ 1766085
2026-03-20 04:14:03 -05:00
Jeremy Andrews
5188aa4874
Issue #2974 - Part 49: Various logging fixes.
...
Try to ensure error messages from mozbuild are readable...
2026-03-17 03:42:38 -05:00
Jeremy Andrews
4e11fab9b4
Issue #2974 - Part 48: Python 3.8+ related fixes.
...
Got everything working under older Python 3, to deal with fewer issues at once.
Now the following had to be done:
- time.clock had to be replaced with time.process_time
- Drive letters now need explicit normalization because they are uppercase
by default (was the reason why I had to turn everything into a relpath before).
- Virtualenv works, but needs a couple extra modules because of new includes
in newer Python 3 versions.
2026-03-17 03:10:33 -05:00
Jeremy Andrews
8cb419166a
Issue #2974 - Part 47: Fix packaging.
...
Tested ./mach package, ./mach mozpackage, ./mach installer, and ./mach mar
Everything should work.
2026-03-16 19:28:14 -05:00
Jeremy Andrews
e431c0cb13
Issue #2974 - Part 46: Linux-related fixes.
...
Also moved the Windows version of my NSDISTMODE=copy thing where
I meant to have it in the first place, it was misplaced before.
2026-03-16 05:25:34 -05:00
Jeremy Andrews
889a1c39c5
Issue #2974 - Part 45: Miscellaneous build system tweaks.
...
Most notably, these tweaks were needed to fix ./mach build faster.
Also chose to set NSDISTMODE=copy by default for Windows, since
wildcards will be symlinks otherwise. This will always fail
because our binaries have the symlinked MSVC DLLs in their import
tables, and Windows loader silently fails in this situation.
2026-03-15 19:01:00 -05:00
Jeremy Andrews
6c77f329da
Issue #2974 - Part 44: Make ppCheck Python 3 compatible.
...
I also wound up having it point out files that can't be decoded as UTF-8.
Not sure if it was the right move, can remove that feature if it's not wanted.
2026-03-15 18:51:24 -05:00
Jeremy Andrews
0e0823a4df
Issue #2974 - Part 43: Import random NSIS installer file from Mozilla.
...
This file was already ported to Python 3 by them, and hasn't seen breaking
changes, so it was safe to use.
Ref: BZ 1633016, BZ 1751990
2026-03-15 15:58:44 -05:00
Jeremy Andrews
f335e05ff6
Issue #2974 - Part 42: Jar and preprocessor changes.
...
For strings/bytes issue, used a similar strategy to what I saw in our old
layout code, having a flag set to be false by default as it's passed from
function to function, eventually being activated and doing something at
a specific point in the loop if it's ever true. The datetime stuff is
simply because in Python 3, integer comparisons were failing so I had
to make both sides be an integer Unix timestamp.
2026-03-15 15:49:04 -05:00
Jeremy Andrews
74762d6567
Issue #2974 - Part 41: Update configobj to version 5.
...
This version is compatible with Python 3 already.
2026-03-14 20:12:48 -05:00
Jeremy Andrews
1545a33858
Issue #2974 - Part 40: Miscellaneous build system tweaks prior to new configobj.
...
More small tweaks mostly related to decoding/encoding, some not even related to
failures but are more anxiously done in anticipation of something going wrong.
Even though these are called commits, I often revise little things several
times because I am not sure what the most robust approach would be.
2026-03-14 19:57:16 -05:00
Jeremy Andrews
1801a9148d
Issue #2974 - Part 39: Fix early WebIDL generation issues.
2026-03-14 19:55:21 -05:00
Jeremy Andrews
deff79b573
Issue #2974 - Part 38: Fix early IPDL generation issues.
...
This is fewer issues than I remember encountering last time... 2to3 must have
helped. Though I won't hold my breath that newer Python 3 will be this
forgiving when I get around to that near the end.
2026-03-14 19:54:14 -05:00
Jeremy Andrews
0dbe65d6af
Issue #2974 - Part 37: Fix malformed track files.
...
The issue was essentially that the fourth field was being stripped due to the
way Python 3 handles text. I solved the problem originally with a "pad" hack to
add the extra space back in, since that actually gets interpreted as a reference
to the current directory. The eventual solution mostly involved using . instead of
a blank space to refer to the current directory. Don't know if the other stuff
was needed, may remove later if it causes any issues.
2026-03-14 18:51:21 -05:00
Jeremy Andrews
04e6f86a60
Issue #2974 - Part 36: Fix XPIDL and XPT generator.
...
Most of this is taken from my original port, but I did revisit xpt.py
and rework the way cmp was translated to Python 3 by using a
ComparableMixin class.
2026-03-14 01:27:31 -05:00
Jeremy Andrews
214fc9bdfb
Issue #2974 - Part 35: FileAvoidWrite changes and other tweaks after new gyp.
...
Most notable changes are the ugly stuff I had to do in FileAvoidWrite and
everything that interacts with it, which is where I expect a lot future pain
and revision to enter the picture from, if I have to revisit this part of the
work again.
2026-03-11 02:17:23 -05:00
Jeremy Andrews
3dd092c8d8
Issue #2974 - Part 34: Import new version of gyp, ensure it finds six.
...
Dropping this in actually just works for NSS (no promises this will hold true
with Basilisk), because gyp's design is a lot more conservative and consistent
compared with upstream Mozilla code. For some reason, the new gyp couldn't find
the six library it relies on that's already in our tree, and the library also
needed a small update. Also incorporates a few simple Python 3 tweaks to our
gyp_reader code.
2026-03-11 01:59:39 -05:00
Jeremy Andrews
cb559a5eb2
Issue #2974 - Part 33: Miscellaneous build system tweaks prior to new gyp.
...
Not really sure how to categorize these, except they are either
language-related cleanups, small bug fixes, or are careful to decode
things using the preferred OS encoding where reasonable. A lot of UTF-8 only
worked by luck because it only tried to decode ASCII bytes, or had good
replacements for bad chars due to explicit error handling.
I'm basically just commiting the last state before I update gyp, because
I can't really proceed without updating it, and that's a big enough step I want
it to have its own commit... and also don't want it mixed in with other stuff.
2026-03-09 23:28:50 -05:00
Jeremy Andrews
313dcc69fa
Issue #2974 - Part 32: Fix configure sandbox builtins, update encoding guards.
2026-03-09 18:40:53 -05:00
Jeremy Andrews
367505a1b0
Issue #2974 - Part 31: Fix indented_repr and TypedTuple, remove encode.
...
indented_repr and encode were introducing corruption into config.status
blocking the build. TypedTuple's logic needed to change a bit due to Python 3.
encode can just be removed because it does more harm than good now.
indented_repr was fixed. Note it was always limited to ASCII range because
that's the "safe zone" CP1252 and UTF-8 have in common. Investigate replacing
this with pprint and repr if we ever need Unicode in config.status...
2026-03-09 17:44:33 -05:00
Jeremy Andrews
fb669b392c
Issue #2974 - Part 30: Address strict EnumString handling in OS_ARCH/OS_TARGET.
2026-03-09 17:16:11 -05:00
Jeremy Andrews
b818d7905a
Issue #2974 - Part 29: More fixes to virtualenv.
...
Wasn't as hard as I expected to get this working. Mostly just missing imports,
and they are only missing because Mozilla added a couple to the base import
that caused no issues on Python 2, but require an additional slew of imports
on Python 3.
2026-03-09 16:13:55 -05:00
Jeremy Andrews
827b1052ea
Issue #2974 - Part 28: Further fixes to processhandler and winprocess.
...
This is apparently the one place we can't use UTF-8 on Windows, we absolutely
need CP1252 here. Mozilla originally avoided a lot of these encoding issues by
treating everything as bytes. That trick won't fly in Python 3, so we now
have to deal with text streams and face Windows and Unicode issues.
Ref: BZ 1585702
2026-03-09 16:01:44 -05:00
Jeremy Andrews
04b9a2f949
Issue #2974 - Part 27: Actually fix processhandler.py.
...
This is the work I was trying to avoid in my initial port... now it's time to
actually do it.
Ref: BZ 1473498, BZ 1428713, BZ 1799483
2026-03-07 22:49:29 -06:00
Jeremy Andrews
d9821226cf
Issue #2974 - Part 26: Clean up more bytestrings and fix busted logging system.
...
Also modified virtualenv.py just enough to see the next failure mode.
2026-03-07 22:20:02 -06:00
Jeremy Andrews
17e3d48201
Issue #2974 - Part 25: Logic changes in decorators and string_version.
...
In decorators.py, the original logic fails because cls.__init__ is now a
function instead of a method in Python 3.
In string_version.py, the issue is that str.__init__(self, args) is no longer a
valid way of referencing the parent class of the function, the no-argument
super() can do that in Python 3 properly by using the __class__ cell variable.
Ref: PEP 3135
https://peps.python.org/pep-3135/
2026-03-06 21:35:00 -06:00
Jeremy Andrews
151ca2805b
Issue #2974 - Part 24: Stop encoding strings to bytes in configure and clobber.
2026-03-06 20:06:10 -06:00
Jeremy Andrews
93272b0ac0
Issue #2974 - Part 23: Clean up old string logic in configenvironment/mozinfo.
...
No real logic changes here, just obvious work.
2026-03-06 19:57:51 -06:00
Jeremy Andrews
763e812c4c
Issue #2974 - Part 22: Fix-up main.py and config.py.
...
The bytestrings seem to break the build system. Also, get_hex is no longer a
thing, those two basestrings can become str (had to check), and
also noticed load_settings was ignoring its own argument.
Ref: BZ 1473498, BZ 1739556
https://hg-edge.mozilla.org/mozilla-central/rev/fa5e23975029
2026-03-06 18:39:10 -06:00
Jeremy Andrews
6433d1d7a4
Issue #2974 - Part 21: Disable old Win32 hack on Python 3.4+
...
The issue requiring this only affected older versions of Python 3.
Newer Python 3 no longer requires this. Mozilla also did this in their
initial Python 3 support, after moving the hack itself from mach to
somewhere in mozbuild. This commit also unblocks newer Python versions.
Ref: BZ 1473498
https://hg-edge.mozilla.org/mozilla-central/rev/fa5e23975029
2026-03-06 03:14:53 -06:00
Jeremy Andrews
ae877638e8
Issue #2974 - Part 20: Use last few fixers.
...
Just rush through the last ones I semi-trust...
2to3 . --fix methodattrs -wpn
'' funcattrs ''
'' has_key ''
'' renames ''
'' types ''
'' nonzero ''
Ref:
https://docs.python.org/3/whatsnew/3.0.html
2026-03-06 02:08:07 -06:00
Jeremy Andrews
e12d6ebd5e
Issue #2974 - Part 19: Use various fixers.
...
Mostly exec and execfile, but also StandardError and sys_exc.
2to3 . --fix exec -wpn
'' execfile ''
'' sys_exc ''
'' standarderror ''
Ref:
https://docs.python.org/3/whatsnew/3.0.html
2026-03-05 22:10:28 -06:00
Jeremy Andrews
7abb343363
Issue #2974 - Part 18: Use str instead of unicode.
...
The standard str is unicode now...
2to3 . --fix unicode -wpn
Ref:
https://docs.python.org/3/whatsnew/3.0.html
2026-03-05 21:38:47 -06:00
Jeremy Andrews
af6ae6a1d3
Issue #2974 - Part 17: Use new unittest names.
...
2to3 . --fix asserts -wpn
Ref:
https://docs.python.org/3.11/library/unittest.html#deprecated-aliases
2026-03-05 21:11:31 -06:00
Jeremy Andrews
69d2d3f47d
Issue #2974 - Part 16: Adapt apply.
...
Syntax change, also cleaning up stuff from previous change.
2to3 . --fix apply -wpn
Ref:
https://docs.python.org/3/whatsnew/3.0.html
2026-03-05 20:00:40 -06:00
Jeremy Andrews
0ce9d8f121
Issue #2974 - Part 15: Adapt itertools.
...
Ordinary versions of these functions are iterators now,
rather than lists...
2to3 . --fix itertools -wpn
2to3 . --fix itertools_imports -wpn
Ref:
https://docs.python.org/3/whatsnew/3.0.html#range
2026-03-05 19:46:43 -06:00
Jeremy Andrews
0c61ee391c
Issue #2974 - Part 14: Moved libraries and imports.
...
reduce is moved to functools, urllib reogranized.
2to3 . --fix urllib -wpn
2to3 . --fix reduce -wpn
2to3 . --fix import -wpn
2to3 . --fix imports -wpn
2to3 . --fix imports2 -wpn
Ref: PEP 3108, PEP 3100
https://peps.python.org/pep-3108/
https://peps.python.org/pep-3100/
2026-03-04 20:24:12 -06:00
Jeremy Andrews
5fdc8dd723
Issue #2974 - Part 13: Adapt octal number syntax.
...
Used to be like C, with 0755 or something, now it's
0o755. Also, long and int are the same type now.
2to3 . --fix numliterals -wpn
2to3 . --fix long -wpn
Ref: PEP 3127, PEP 237
https://peps.python.org/pep-3127/
https://peps.python.org/pep-0237/
2026-03-04 20:03:01 -06:00
Jeremy Andrews
5af8e3ba5c
Issue #2974 - Part 12: Adapt metaclass syntax.
...
It seems to have moved out of the body of the function,
into the class definition. Hit this a couple times...
2to3 . --fix metaclass -wpn
Ref: PEP 3115
https://peps.python.org/pep-3115/
2026-03-04 18:55:13 -06:00
Jeremy Andrews
2f37a44b8f
Issue #2974 - Part 11: Adapt iterator.next().
...
2to3 . --fix next -wpn
Ref: PEP 3114
https://peps.python.org/pep-3114/
2026-03-04 18:39:49 -06:00
Jeremy Andrews
6454d7492f
Issue #2974 - Part 10: Adapt tuple unpacking.
...
2to3 . --fix tuple_params -wpn
They actually had a fixer for this?! Anyway... yeah,
Py2 allowed tuple parameter unpacking. Py3 doesn't.
However, the adaptations are fairly mechanical.
Ref: PEP 3113
https://peps.python.org/pep-3113/
2026-03-04 15:52:40 -06:00
Jeremy Andrews
c77e0a8cec
Issue #2974 - Part 9: Adapt input and raw_input
...
2to3 . --fix input -wpn
2to3 . --fix raw_input -wpn
Py2 input is the new Py3 input wrapped in eval tags.
The new input is the old raw_input.
This lets you have the old behavior. Mechanical.
Ref: PEP 3111
https://peps.python.org/pep-3111/
2026-03-04 15:16:45 -06:00
Jeremy Andrews
46f126c10c
Issue #2974 - Part 8: Adapt except
...
2to3 . --fix except -wpn
Python 3 exception syntax is different. Comma-based syntax is gone,
much like print syntax is changed.
This lets you have the old behavior. Mechanical.
Ref: PEP 3110
https://peps.python.org/pep-3110/
2026-03-04 15:00:58 -06:00
Jeremy Andrews
4906a75883
Issue #2974 - Part 7: Adapt raise
...
2to3 . --fix raise -wpn
Python 3 raise syntax is different. Three-argument raise is
deprecated, much like print syntax is changed.
This lets you have the old behavior. Mechanical.
Ref: PEP 3109
https://peps.python.org/pep-3109/
2026-03-04 14:16:18 -06:00
Jeremy Andrews
8c0f0ccdcf
Issue #2974 - Part 6: Adapt dict
...
2to3 . --fix dict -wpn
Py2 dict was a list by default, the iterator versions
were switched around to be the default.
This lets you have the old behavior. Mechanical.
Ref: PEP 3106
https://peps.python.org/pep-3106/
2026-03-04 13:56:53 -06:00
Jeremy Andrews
112c119477
Issue #2974 - Part 5: Adapt zip
...
2to3 . --fix zip -wpn
Py2 zip was a list, now zip is an iterator.
This lets you have the old behavior. Mechanical.
Ref:
https://www.artima.com/weblogs/viewpost.jsp?thread=208549
2026-03-04 13:29:40 -06:00
Jeremy Andrews
ec4f21e5e3
Issue #2974 - Part 4: Adapt map
...
2to3 . --fix map -wpn
Py2 map was a list, now map is an iterator.
This lets you have the old behavior. Mechanical.
Ref:
https://www.artima.com/weblogs/viewpost.jsp?thread=208549
2026-03-04 13:22:20 -06:00
Jeremy Andrews
42fbdd74fd
Issue #2974 - Part 3: Adapt filter.
...
2to3 . --fix filter -wpn
Py2 filter was a list, now filter is an iterator.
This lets you have the old behavior. Mechanical.
Ref:
https://www.artima.com/weblogs/viewpost.jsp?thread=208549
2026-03-04 13:13:03 -06:00
Jeremy Andrews
49615281cd
Issue #2974 - Part 2: Adapt range/xrange.
...
2to3 . --fix xrange -wpn
range takes the place of Py2 xrange.
Py2 range was a list. Mechanical, did
it by hand several times...
Ref:
https://docs.python.org/3/whatsnew/3.0.html#range
2026-03-04 08:33:16 -06:00
Jeremy Andrews
e11fc9b4cf
Issue #2974 - Part 1: Adapt all print statements.
...
2to3 . --fix print -wn
Essentially, print is a function instead of statement.
Ref:
PEP 3105
https://peps.python.org/pep-3105/
2026-03-04 03:48:01 -06:00