Commit graph

4,397 commits

Author SHA1 Message Date
Moonchild
43ebe6d86f [docshell] Stop loading of the document if network load is stopped.
After all, stop means stop.
2021-03-25 09:05:42 +08:00
athenian200
da2461fa57 Issue #1752 - Implement "prefers-color-scheme" as a user preference.
This PR passes all current tests for this feature, and implements the "prefers-color-scheme" media query as an enumerated keyword that is controlled by an integer preference.

Currently, the possible options are 0 to see a website's fallback code and essentially behave like this isn't implemented (our current behavior), 1 to express a preference for a light theme (the default for spec reasons), and 2 to express a preference for a dark theme. Over time, this list may expand to include other preferences like a preference for a sepia theme or something, and this leaves us prepared for that future.
2021-03-25 09:05:20 +08:00
Moonchild
407a983af1 Issue #1751 - Remove MacOS support from configure 2021-03-25 09:05:02 +08:00
Moonchild
b8f2ada817 Issue #1053 - Remove __ANDROID__ defines (except in third party code) 2021-03-25 09:04:29 +08:00
Moonchild
a29e342411 [CSS] Enable scrollbar-width keyword by default.
I totally forgot this <.<
2021-03-19 09:07:46 +08:00
Moonchild
0e51c60953 [Basilisk] [SSUAO] Update UA override for YT studio 2021-03-17 09:13:55 +08:00
Moonchild
21c13ce7d1 [Toolkit] Update TwemojiMozilla font to 0.5.1 (Twemoji 12.1.6) 2021-03-17 09:04:21 +08:00
Moonchild
ed26fe34af Issue #1746 - Update pkix code with later NSS code. 2021-03-16 09:49:44 +08:00
Moonchild
849d42280b [Pale-Moon] [SSUAO] Update override for Citi 2021-03-13 06:59:36 +08:00
Moonchild
0e8947001f [Pale-Moon] [SSUAO] Add override for kroger 2021-03-13 06:59:02 +08:00
Moonchild
ccc2fcc8ae [Pale-Moon] [SSUAO] Add override for spotify 2021-03-13 06:58:42 +08:00
Moonchild
348c6604be Issue #1053 - Remove MOZ_WIDGET_ANDROID and IDB_MOBILE 2021-03-12 08:59:50 +08:00
Moonchild
0ced696351 Issue #1053 - Remove Android-specific blocks from system headers and /dom 2021-03-12 08:57:47 +08:00
Moonchild
1feafdc819 Issue #1053 - Remove mobile-specific graphics "optimizations" (=compromises) 2021-03-11 10:13:55 +08:00
Moonchild
9985a44c41 Issue #1053 - Remove android blocks from configure. 2021-03-11 10:13:51 +08:00
Moonchild
50653a7c4c Issue #1053 - Remove build system MOZ_ANDROID_* defines and related code. 2021-03-11 10:13:09 +08:00
Moonchild
650abe2cb9 [Pale-Moon] Issue #1862 - Add media format controls in Preferences -> Content 2021-03-05 09:09:02 +08:00
roytam1
0d8d9b881b libaom: restore NT5-friendly aom_thread.h 2021-03-05 09:07:18 +08:00
Moonchild
148bd3547b Issue #1737 - Update build config and mozbuild files. 2021-03-04 09:29:44 +08:00
roytam1
7537b4d23a Issue #1737 - Import libaom 2.0.2 source (excluding aom_ports/aom_once.h) 2021-03-04 09:29:28 +08:00
Moonchild
9031ee4017 [parser] run java translation. 2021-03-04 09:21:34 +08:00
Gaming4JC
99cde7ce7b [widget] MailNews Followup: Require user interaction when picking files or folders v2
98f6ad61f4f3c66209036db4bc7a4ae6ff4d1d3d introduced a boolean, this just passes it down and fixes build bustage of mailnews.
2021-03-04 09:21:25 +08:00
Moonchild
ed1e3a5fcc [Pale-Moon] [SSUAO] Shut twitter's pointless nagging up. 2021-02-26 07:27:32 +08:00
Moonchild
88a2541365 [OTS] Backport some upstream OTS commits. 2021-02-25 09:27:02 +08:00
Moonchild
63637d3f81 [MFBT] Update lz4 to 1.9.3 2021-02-25 09:26:54 +08:00
Moonchild
9fd40b1c93 Issue #457 - Remove duplicate PKCS11 definitions 2021-02-25 09:26:44 +08:00
Moonchild
ef29cca224 [security] Hold mutex when accessing TSI fields. 2021-02-25 09:26:42 +08:00
Moonchild
8a55eab0f0 [DOM] Don't reveal error details for CORS-cross-origin decoding errors. 2021-02-25 09:26:41 +08:00
Moonchild
5934c74a3f [html parser] Check for integer overflow when computing new buffer sizes. 2021-02-25 09:26:39 +08:00
Moonchild
d86d1256bc [dom] Update noscript serialization to the changed spec.
Make <noscript> escaping conditional on whether scripting is enabled.
2021-02-25 09:26:37 +08:00
Moonchild
79d90233cd Issue #1722 - Update about:license
Mostly making parts conditional and removing blocks that are no longer
applicable, and a few minor edits otherwise to update links and text.

Resolves #1722
2021-02-25 09:26:34 +08:00
Moonchild
d867f26c0e [widget] Require user interaction when picking files or folders v2
Now with extra sauce to make it work cross-platform and cross-versions and
for HTML input elements only.
2021-02-25 09:25:17 +08:00
Moonchild
62df9eb775 [Pale-Moon] Issue #1737 - Format some Windows specific browser jsm modules 2021-02-18 21:58:04 +08:00
Moonchild
20ba0b34ec Issue #1743 - Update CK_GCM_PARAMS use for PKCS11 v3.0 in WebCryptoTask 2021-02-18 21:57:45 +08:00
Moonchild
51c4b1838c Issue #1688 - Add flood guard to state change logic. 2021-02-18 21:57:43 +08:00
Moonchild
d6c1cc53ba [js] Add XMMRegName for invalid_xmm 2021-02-16 14:03:47 +08:00
Moonchild
bd0f8a2eca Issue #1739 - Implement numeric separators.
Resolves #1739
2021-02-16 14:03:45 +08:00
Moonchild
dc1d14fcb9 Issue #1738 - Follow-up: Update comment (no code changes) 2021-02-16 14:03:44 +08:00
Moonchild
9efe3a15b9 [Pale-Moon] Issue #1860 - Fix blocklist typo 2021-02-12 10:50:59 +08:00
Moonchild
23c9fab20d Issue #1738 - Part 2: Implement well-formed JSON stringify
This implements the ES2019 spec for JSON stringification, including
lower-casing, properly escaping lone surrogates, etc.
2021-02-12 10:50:21 +08:00
Moonchild
feab62b009 Issue #1738 - Part 1: Improve performance of JSON stringify
- Use some pointer voodoo and instead of stringbuffer append()
- Use a lookup table instead of char comparisons for chr < 256
- Stop using a Hashtable/MovableCellHasher for JSON CycleDetector
2021-02-12 10:50:19 +08:00
Moonchild
ebf2abb0e3 Update tzdata to 2021a
Because people are apparently never satisfied with the time zones on the planet!
2021-02-12 10:50:02 +08:00
Olivier Certner
5edc686524 Issue #1699 - Follow-up: mozjemalloc: Fix build by excluding some irrelevant init_lock code
This had been initially dealt with in issue #1699's commits, but one of them
was in the end reverted, which caused this problem (this change should have
been done there).
2021-02-12 10:49:53 +08:00
Olivier Certner
346b804fda Issue #1730 - Part 2: harfbuzz: Remove some useless define causing a build error
Defining _POSIX_C_SOURCE to 199309L on FreeBSD causes compile errors, because of
an obscure interaction between system wrappers and libc++ headers. The source
doesn't seem to need it at all, which tests confirm.

I bet that this is not needed either on other modern systems (even those based
on glibc), and that the define could probably be entirely removed. Not trying
it because I can't test it myself.
2021-02-12 10:49:51 +08:00
Olivier Certner
387487ffb6 Issue #1730 - Part 1: Interpose malloc even on RTLD_DEEPBIND presence
New FreeBSD versions have introduced RTLD_DEEPBIND (see dlopen(3)), which
triggers a provoked build error to be on the "safe" side.

Indeed, improper use of RTLD_DEEPBIND could cause malloc interposing not to
work on specific libraries. This would happen for libraries that provide their
own malloc/free and exchange pointers with other libraries or the main program,
one allocating an area and another one deallocating it.

It seems it happened for glibc, which is not a concern on FreeBSD, and for the
Flash Player (not a concern either, there is no native Flash Player). Moreover,
there is only a single reference to RTLD_DEEPBIND in the whole platform
currently, namely in the WebRTC code, but the corresponding code chunk is
compiled-in only on Linux (and this library doesn't seem to redefine malloc
functions anyway). So I don't see how a problem could happen. Additionally,
Pale Moon, which is my focus, doesn't use WebRTC.

Corresponding Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=493541
2021-02-12 10:49:50 +08:00
Olivier Certner
5d2e8f06f4 Issue #1729 - Support building/linking against libc++ 9+
Including <cstdlib> must never trigger inclusion of "mozalloc.h", because the
first thing this one does is precisely to include <cstdlib>.

It is now the case that, in libc++ 9 and beyond, <cstdlib> includes <math.h>
which then tries to include <type_traits>, which the STL wrapper intercepts,
trying to load "mozalloc.h". Same problem happens with <limits>.

Fix pulled from: https://bugzilla.mozilla.org/show_bug.cgi?id=1594027.
2021-02-12 10:49:48 +08:00
Moonchild
8fe6e9636d [angle] Cherry-pick compressed tex depth stride fix. 2021-02-12 10:49:20 +08:00
Moonchild
34dc51690f Issue #1732 - Implement JSON superset proposal.
This change makes unicode line and paragraph separators allowed in JS strings,
removing the only quirk of the JS string definition that made JSON not a valid
subset of JS.

Resolves #1732
2021-02-12 10:49:19 +08:00
Moonchild
4ff9d87cb4 Issue #1726 - Add verification test for string.replaceAll() 2021-02-05 07:35:08 +08:00
meatloaf
00a689060f Issue #1726 - Implement String.replaceAll()
This also implements IsRegExp, as this demands it.
Ported from https://bugzilla.mozilla.org/show_bug.cgi?id=1540021
2021-02-05 07:35:06 +08:00