Commit graph

4,831 commits

Author SHA1 Message Date
Jeremy Andrews
dca7d2ff62 Issue #1962 - Follow-up: Fix 32-bit build and remove unused clang-cl codepath. 2022-07-30 08:43:38 +08:00
Job Bautista
2a1f9e3ef3 Issue #1962 - Follow-up: Fix build issues on Windows.
Do not pass -Wno-type-limits to MSVC.
Restore MSVC check for x86_vc
2022-07-30 08:43:38 +08:00
Job Bautista
be2516a091 Issue #1962 - Update libtheora.
Removed some obsolete patches that were either backports from newer
 svn revisions, or a fix for older, non-applicable assemblers.
Update our own README to account for upstream's migration to git.
I didn't remove the bug 703135 patch as it's for MSVC it seems, and
 we still use MSVC for Windows.
Also deleted some unneeded upstream code deleted by Mozilla as well.
2022-07-30 08:43:38 +08:00
Job Bautista
1694b1b762 Issue #1967 - Remove moz://a from mochitest
While we don't use mochitest AFAIK, we still want a clean removal.
2022-07-30 08:43:37 +08:00
Job Bautista
584cfbd809 Issue #1967 - Remove mozprotocol handler (moz://a easter egg). 2022-07-30 08:43:37 +08:00
Job Bautista
34d0e86b61 Issue #1964 - Update libtremor.
Also removed mozilla patches that are already applied upstream.
2022-07-26 22:28:32 +08:00
Moonchild
065e8bc77b Issue #1805 - Follow-up: Include the same headers for Solaris as well to future-proof gcc versions. 2022-07-26 22:27:50 +08:00
Moonchild
3571cc8de0 Issue #1805 - Follow-up: provide for Linux builds using rlimit and min/max. 2022-07-26 22:27:12 +08:00
Moonchild
5ed7e7d56d Issue #1805 - Improve stack size limits for all targets.
This allows us to use a greater rendering depth for exceedingly-deep DOM trees
in layout, better matching what mainstream browsers are capable of. Note that
for 32-bit Windows the stack size MUST be set to larger than the default or Bad
Things Will Happen™ - we use 1.5 MB for this as a carefully-tuned value.

This needs to be capped specifically for JS use because some JavaScript
obfuscators deliberately trigger stack overflows and would lock up the browser
otherwise as long as there's still stack space to abuse. For web compatibility
we therefore limit this to 2MB in JS only (3x for ASAN) while still allowing
a greater depth for the layout engine.
2022-07-26 22:26:38 +08:00
Jeremy Andrews
d50a7a5394 Issue #1956 - Fix symbol visibility issue more elegantly.
All it needed was __declspec(dllexport) on the function I was copy/pasting all over the place...
2022-07-15 08:53:16 +08:00
Jeremy Andrews
b6fc7e7ae6 Issue #1956 - Fix AV1 on MSVC2022 32-bit build. 2022-07-15 08:51:23 +08:00
Moonchild
8831656c85 Issue #1959 - Don't apply CSPs to explicit data documents and images.
This resolves #1959
2022-07-15 08:50:41 +08:00
athenian200
1022f11503 No Issue - Insert missing typedef for SunOS.
We definitely have uint64_t on SunOS. Someone probably just forgot to finish filling out the list...
2022-07-15 08:50:15 +08:00
Moonchild
37d0ffa172 [XPCOM] Crash safely when TArray replacements are OOB.
In the unlikely event of TArray element replacement calls are OOB, crash safely
with a debug breakpoint instead of corrupting memory.
2022-07-05 17:25:29 +08:00
Moonchild
c0429c9a0f [DOM] use the sanitizer to restrict href in svg:use to fragment-only URLs 2022-07-05 17:25:00 +08:00
Moonchild
991e2ffb4b [network] Clear PAC loader when the load failed 2022-07-05 17:24:31 +08:00
Moonchild
2706ef696d Update NSS 2022-07-05 17:21:07 +08:00
Moonchild
6066cc36cd [DOM media] Remove potentially unsafe type accesses when debug logging 2022-07-05 17:20:51 +08:00
Moonchild
7c429f525e [network] Clean up and update the list of external protocol handlers. 2022-07-05 17:20:22 +08:00
Martok
887e6d0ab3 Issue #1952 - m-c 1440468: Proxied functions can't be passed to Function.prototype.toString.call() 2022-07-03 06:55:36 +08:00
Martok
85af7f6e80 Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler 2022-07-03 06:55:19 +08:00
Martok
1e753237e5 Issue #1952 - m-c 1380962/2: Remove unnecessary lambda function in FunctionToString 2022-07-03 06:54:52 +08:00
Martok
70eee9b0df Issue #1952 - m-c 1380962/1: Merge append calls when assembling the source string for native functions 2022-07-03 06:54:38 +08:00
Martok
fc6c505da8 Issue #1952 - m-c 1371593: Avoid repeated string atomizations when retrieving the unresolved name of a bound function 2022-07-03 06:54:25 +08:00
Martok
53d6173cfb Issue #1952 - m-c 1365387: Optimize FinishBoundFunctionInit by delaying atomizing the function name 2022-07-03 06:54:09 +08:00
Job Bautista
f170360d10 Issue #1949 - Part 2: Disable exceptions in soundtouch's STTypes.h.
I don't know how Mozilla was able to build this without defining
 ST_NO_EXCEPTION_HANDLING, but looks like we have to do it so that
 the compiler doesn't complain about -fno-exceptions
2022-07-02 17:01:15 +08:00
Job Bautista
e98c7b8f67 Issue #1949 - Part 1: Update soundtouch library to 2.3.1. 2022-07-02 17:01:01 +08:00
Job Bautista
b7a771fce6 Issue #1948 - Update nestegg library.
I separated out the AVC and AAC support code into a patch file so that
 the upstream code can be updated freely without having to re-add AVC
 and AAC support again. At least if the upstream changes are not too
 extensive...
This should effectively backport Mozilla bug 1539686, which allows the
 browser to parse the color information from WebM videos that uses HDR.
2022-07-02 17:00:36 +08:00
Job Bautista
6f97a5012d Issue #1937 - Follow-up: Remove some unnecessary includes and sources from sources.mozbuild
These were used only by the encoder, which has been excluded from the build.
2022-06-29 08:56:08 +08:00
Moonchild
932e9d8fc6 Issue #1937 - Follow-up: Exclude aom_encoder.c/h from our build
We don't need an encoder!
2022-06-29 08:55:53 +08:00
Job Bautista
463a502764 Issue #1937 - Follow-up: Add missing sources, and remove unneeded ones in sources.mozbuild
This should (hopefully) fix building for Windows.
The ones I removed are not used for decoding, but for encoding, which
 we don't need.
2022-06-29 08:55:33 +08:00
Job Bautista
8c7e76360f Issue #1937 - Follow-up: Add missing sources and includes in sources.mozbuild 2022-06-29 08:55:15 +08:00
Job Bautista
49696a7887 Issue #1937 - Follow-up: Fix sources.mozbuild not having exports
Thankfully I already redundantly edited this file myself before to
 account for updates in the source, and backed this up to another
 location just in case the shell script breaks my build files,
 which it did!
2022-06-29 08:55:02 +08:00
Job Bautista
ecb7ec7377 Issue #1937 - Part 2: Update libaom source. 2022-06-29 08:54:41 +08:00
Job Bautista
d09a5eeca2 Issue #1937 - Part 1: Update build system for libaom. 2022-06-29 08:52:26 +08:00
Job Bautista
5b40dbab42 Issue #1944 - Follow-up: Make it clear that volume is a float.
1. => 1.0, 0. => 0.0
2022-06-28 21:13:11 +08:00
Job Bautista
ef4db6f2aa Issue #1944 - Fix volume handling in sndio backend.
Backported from Mozilla bug 1467882.
2022-06-28 21:12:58 +08:00
Job Bautista
b29aa5d557 Issue #1933 - Follow-up: Remove cmakedefine directives from neon-compat.h.
Apparently it wasn't preprocessed yet. Just took the version from
 mozilla-central, and it worked, according to dbsoft.
2022-06-28 08:58:37 +08:00
Job Bautista
0eece8e5bc Issue #1933 - Follow-up: Fix building on ARM.
neon-compat should be imported as a .h header, not an .in file.
2022-06-28 08:58:28 +08:00
Moonchild
c43ed8d93e Issue #21 - Follow-up: Remove some left-over telemetry plumbing. 2022-06-27 21:48:09 +08:00
Moonchild
c0f4b97fab Issue #1053 - Follow-up: Correct conditional define on POSIX systems.
This conditional was incorrectly changed when removing Android support.
This potentially causes issues on Linux systems by not using pthreads correctly,
which may lead to high idle CPU usage.
2022-06-27 21:47:53 +08:00
Job Bautista
191a010f68 Issue #1941 - Update libvorbis to 1.3.7. 2022-06-27 21:45:53 +08:00
Job Bautista
8038505d6c Issue #1939 - Part 2: Update libwebp source. 2022-06-27 21:45:28 +08:00
Job Bautista
56d49fd570 Issue #1939 - Part 1: Update build system for libwebp. 2022-06-27 21:45:05 +08:00
Job Bautista
9f598a8abc Issue #1935 - Update libogg to 1.3.5
I've also added some notes in the update.sh script that should've been
 documented, as well as changed README to README.md which Mozilla
 somehow forgot to do when they updated to 1.3.3...
2022-06-27 21:44:51 +08:00
Job Bautista
fc2133f4d1 Issue #1933 - Part 2: Update libjpeg-turbo source. 2022-06-27 21:44:36 +08:00
Job Bautista
75e223e3bf Issue #1933 - Part 1: Update build system for libjpeg-turbo. 2022-06-27 21:43:59 +08:00
Job Bautista
8ad8bfb4ba Issue #326 - Part 6: Regenerate Unicode data tables with the stripped-down tool 2022-06-27 21:35:27 +08:00
Job Bautista
b8e7234b73 Issue #326 - Part 5: Simplify the genUnicodePropertyData.pl tool to generate only the data we need to supplement ICU properties
Backported from Mozilla bug 1402271.
Some removals were already done by Part 1b.
2022-06-27 21:35:13 +08:00
Job Bautista
54489c3029 Issue #326 - Part 4: Update Unicode data to release 10.0
genUnicodePropertyData.pl's output:
 unknown ICU script MASARAM_GONDI at ../tools/genUnicodePropertyData.pl line 442, <FH> line 2641.
 unknown ICU script SOYOMBO at ../tools/genUnicodePropertyData.pl line 442, <FH> line 2663.
 unknown ICU script ZANABAZAR_SQUARE at ../tools/genUnicodePropertyData.pl line 442, <FH> line 2679.
 Data for CharProp2 = 14864
 Data for FullWidth = 2176
 Data for FullWidthInverse = 2688
 Total data = 19728
2022-06-27 21:34:53 +08:00