Moonchild
a0843d52b4
Revert "[XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget"
...
This reverts commit 188f61505f .
2023-12-21 14:03:31 +01:00
Kershaw Chang
977a8cbed8
Bug 1736385 - Make sure thread is alive in CacheIOThread::ThreadFunc
2023-12-21 11:44:50 +01:00
Moonchild
1e85085305
[dom] Better handling of aborted websocket workers.
...
Catch the case where we are in worker-shutdown but are still connecting
and make filing and closing connections a bit more robust with a RefPtr.
2023-12-21 11:44:42 +01:00
Barret Rennie
188f61505f
[XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget
2023-12-21 11:44:32 +01:00
Moonchild
a514d7f6a4
[layout] Always check against fragment length in nsTextFrame
2023-12-21 11:44:21 +01:00
Moonchild
47c2c75ceb
Bug 1868901
2023-12-21 11:44:12 +01:00
Moonchild
7082ec8a9a
No issue - Allow redirects for requests that require preflight
...
Spec update, see Bug 1312864
2023-12-21 11:43:58 +01:00
Brian Smith
2907a84362
Issue #2387 - Remove a missed AddRef() which could cause leaks.
...
Update comments explaining how the reference counting works.
2023-12-10 23:58:08 +01:00
Brian Smith
b8d1ee05c3
Issue #2387 - Collection of fixes related to a crash while canceling a dynamic import.
...
Add AddRef/Release hooks for embedding's script or module private value and set this script source object where appropriate.
https://bugzilla.mozilla.org/show_bug.cgi?id=1519140 Partial, no Value passing changes.
Clear the list of dynamic import requests after cancelling them in ScriptLoader::ParsingComplete as we do for other requests.
https://bugzilla.mozilla.org/show_bug.cgi?id=1291535
ScriptLoader::OnStreamComplete never returns a failure.
https://bugzilla.mozilla.org/show_bug.cgi?id=1627275
Also cancel the correct kind of parser for Modules.
2023-12-10 23:57:54 +01:00
Moonchild
0b625e624a
[DOM] Fix double-free crash in MessagePort.cpp
2023-12-10 17:02:28 +01:00
Moonchild
a4da712f91
Issue #2281 - Exclude throw wrapping on modern libcpp.
...
As discussed.
2023-11-25 18:17:35 +01:00
Moonchild
185f124e87
Issue #2381 - Remove system-nspr/nss leftovers (release port)
2023-11-25 17:15:01 +01:00
Moonchild
8633077691
[WebGL] Flip the validation state for gl_KHR_no_validation.
...
The original state was inverted due to confusion due to a double
negative (not:no_error).
This validation should only be enabled on Windows (for now).
Future tracking and discussion in BZ 1862039
2023-11-24 12:24:55 +01:00
Moonchild
39a1899045
[DOM] Improve MessagePort state machine.
2023-11-24 12:24:32 +01:00
Moonchild
4dc011a187
[Network] Fix relative URL path starting with multiple slashes
2023-11-24 12:24:19 +01:00
Moonchild
ccb12e1dda
[DOM] Check if rootDoc is secure context for web compat
2023-11-24 12:24:04 +01:00
Moonchild
63f0d3e295
[WebGL] Turn on more validation/error checking in webgl (when not on Win)
2023-11-24 12:23:49 +01:00
Moonchild
09d598c496
Revert "No Issue - add mutex in EventSource"
...
This reverts commit 10b3237e52 .
Apparently causes deadlocks in Linux.
2023-11-15 12:22:11 +01:00
Moonchild
7e60482d80
No issue - Stop supporting data: scheme in SVG <use> elements.
2023-11-14 12:42:58 +01:00
Moonchild
10b3237e52
No Issue - add mutex in EventSource
...
Potentially avoids a gc crash when load is high.
2023-11-14 12:42:26 +01:00
athenian200
99af7cc028
Issue #1824 - Support SunOS Linker mapfiles.
...
Generating OS-appropriate mapfiles from a provided SYMBOL_FILE is
apparently required to work with newer ffvpx. Nothing else in our
codebase actually seemed to require it. Also seems to reduce the amount
of console spam I see relating to symbol visibility during the build
process, and I think it even makes libxul.so link a bit faster.
2023-11-04 01:47:00 -05:00
athenian200
76b360b5d1
Issue #1824 - Move to GCC 10.
...
It seems to work, but it is a lot slower than compiling with GCC 7.
2023-11-04 01:38:20 -05:00
Moonchild
4001b58a3e
[DOM] For now, use C++11 static_asserts only.
...
Single-param static_assert is C++17 or later.
Follow-up to 3d92b82125
2023-10-27 14:20:10 +02:00
Moonchild
134a8aac87
Issue #35 - Follow-up: undo locale changes so they aren't pre-processed.
...
Pre-processing loses our localization notes and licensing headers for
l10n which is not a good thing. It's not a big deal having a few unused
strings in these files in the resulting locales.
2023-10-26 22:47:13 +02:00
Moonchild
3e2e48872a
Merge branch 'master' into release
2023-10-25 22:51:58 +02:00
Moonchild
622b43cbc5
Merge branch 'master' into release
2023-10-25 22:49:37 +02:00
Moonchild
75b44ef620
Merge branch 'master' into release
...
# Conflicts:
# js/src/wasm/WasmBinaryIterator.cpp
# media/libvpx/vp8/encoder/onyx_if.c
2023-10-05 23:43:10 +02:00
Basilisk-Dev
00084ea49c
Cherry-pick upstream libvpx fix
...
Backport of https://hg.mozilla.org/releases/mozilla-esr115/rev/5241232a3292943bd59ff1704eab60fee3cbc9d1
Addresses CVE-2023-5217
2023-09-28 16:18:01 +02:00
Moonchild
b6fae24296
[network] Refactor TransactionObserver::OnDataAvailable()
2023-09-27 21:55:28 +02:00
André Bargull
13c6b7422d
[js] Handle dead wrappers
2023-09-27 21:55:19 +02:00
Moonchild
24f2e663cd
Restore incorrect SIMD Op removals.
2023-09-25 10:48:42 +02:00
Brian Smith
f96b155988
Issue #2313 - Implement WebAssembly sign extension opcodes. (uplift)
2023-09-25 10:46:25 +02:00
Brian Smith
d5cc24e916
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Doubles in Ion.
2023-09-20 03:34:06 +02:00
Brian Smith
8eba271c5f
Issue #2308 & #1240 Follow-up - Replace JSOP_POS in ++/-- with JSOP_TONUMERIC.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1519135
2023-09-20 03:33:57 +02:00
Brian Smith
19955c82b3
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Ion on Intel32/64.
2023-09-20 03:33:50 +02:00
Brian Smith
80ae8aec7c
Issue #2308 & #1240 Follow-up - Add BigInt support to JSOP_INC and JSOP_DEC.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1526309
2023-09-20 03:33:41 +02:00
Brian Smith
d8441d7c81
Issue #2308 & #1240 Follow-up - Introduce new increment and decrement operations.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1508521
2023-09-20 03:33:33 +02:00
Brian Smith
c2446f2478
Issue #2308 - Fix JSON BigInt regressions.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1522433
2023-09-20 03:33:23 +02:00
Brian Smith
6efb7a1904
Issue #2282 - Performance observer safety checks.
...
Both fixes from later revisions, without the Dispatch API changes.
2023-09-20 03:33:14 +02:00
Brian Smith
fa0b03a10f
Issue #2026 Follow-up: Fill in missing BigInt64 cases in js::IsTypedArrayConstructor().
...
Hopefully fixes RSA errors on ProtonMail.
2023-09-20 03:32:41 +02:00
Moonchild
3ae2972950
Issue #2309 - Cherry-pick upstream libwebp fix.
...
Backport of: https://chromium.googlesource.com/webm/libwebp.git/+/2af26267cdfcb63a88e5c74a85927a12d6ca1d76
Resolves #2309
2023-09-13 10:22:50 +02:00
Moonchild
2d48de9998
Merge branch 'master' into release
2023-09-01 15:44:29 +02:00
Moonchild
3b029cdfe4
Merge branch 'master' into release
2023-07-15 16:01:39 +02:00
Moonchild
ea9077a8a5
Merge branch 'master' into release
2023-07-07 19:41:06 +02:00
Moonchild
b4af6b6265
No issue - Set the default for incremental cycle collector to be off.
...
Negative performance impact if enabled.
2023-06-05 21:17:24 +02:00
Moonchild
ae1d53ceb1
Issue #2257 - Remove rematerialized frames after bailouts and exceptions.
...
This ensures that rematerialized frames used by the devtools debugger
are properly removed so that no stale data is used during bailouts.
2023-06-05 21:17:13 +02:00
Brian Smith
c3f4709d5e
Issue #2252 - Prevent crash when attempting to load a script with execution disallowed.
...
This issue is due to the ExecutionContext added in Issue #1691 not handling GetScript()
in a context where script execution is not allowed. This expressed itself in crashes when
playing MP4s with the NoScript extension installed and enabled.
2023-06-05 21:16:57 +02:00
FranklinDM
a7bb3fc175
Issue #1592 - Follow-up: Ensure topmost scope marker is cleaned up
2023-06-05 21:16:43 +02:00
FranklinDM
6a0203f25f
Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching is restricted or if the current element is under a shadow host
...
This only affects debug builds.
2023-06-05 21:16:31 +02:00
FranklinDM
b0dfcb147f
Issue #2250 - Part 1: Return early if the element being tested for is likely an ancestor and does not have an assigned slot
2023-06-05 21:16:22 +02:00
Job Bautista
06fd4c9357
Issue #2221 - Follow-up: Simplify jit_ioncheck{1|2|3}_deunified_sources assignment.
2023-06-05 21:15:52 +02:00
Job Bautista
b9ea7fd9ee
Issue #2221 - Follow-up: Ensure jit_ioncheck{1|2|3}_deunified_sources is defined.
...
Should fix build bustage in armhf, as well as prevent bustage in mips32.
2023-06-05 21:15:33 +02:00
Moonchild
58308a5c7a
Merge branch 'master' into release
...
# Conflicts:
# python/mozbuild/mozpack/dmg.py
2023-05-11 17:35:14 +02:00
Brian Smith
88c7d54975
No Issue - Fix FreeBSD build failure with WebRTC enabled. (release uplift)
...
Tag #2227
2023-05-01 22:12:11 +02:00
Timothy Valldeperas
eadb5678b3
Issue #2175 - Fix build bustage in WebRTC. (release uplift)
...
Resolves #2227
2023-05-01 19:04:57 +02:00
Moonchild
54e3e60796
Revert "[devtools] Don't allow sourcemap URLs to redirect"
...
This reverts commit 2a05494abe .
2023-04-17 10:25:45 +02:00
Moonchild
2a05494abe
[devtools] Don't allow sourcemap URLs to redirect
2023-04-13 10:54:34 +02:00
Moonchild
bc89e58def
[network] Improve checks while parsing MIME parameters.
2023-04-13 10:54:27 +02:00
Moonchild
3a009b97f6
Issue #1911 - Follow-up: Filter out illegal characters in more locations.
2023-04-13 10:54:10 +02:00
Moonchild
a105f6d5e9
No issue - Fix off-by-one of kLargeDatasetSize
2023-04-13 10:54:02 +02:00
Sandra
5db241c0c0
Increase size of data over which we write the data to disk rather than keep it around in memory
2023-04-13 10:53:53 +02:00
Sandra
d38dca10e5
Use nsAnonymousTemporaryFile for clipboard cache
...
Base on https://github.com/mozilla/gecko-dev/commit/ecc04a9245b409d7eed7df63ba733cd2073180de
2023-04-13 10:53:14 +02:00
Moonchild
54fc723126
Issue #2180 - Follow-up: Move sentinel check up a bit.
2023-04-02 15:39:05 +02:00
Moonchild
9b8ca17ee4
Issue #2180 - Add pref to control NSS TLS 1.3 protocol downgrade sentinel
2023-04-02 15:38:57 +02:00
Moonchild
cddc95b39b
Issue #2176 - Don't reconstruct the parent when tearing down
...
display:contents nodes with pseudo-elements.
We need to use StyleChildrenIterator which iterates over them, instead.
This is a bit of a hack but we can't always have our cake.
We need to be a bit careful though, since ::before and ::after are owned
by their own frame, and thus could be unbound from the tree or even dead
after removing the frame.
This basically ports bugs 1435566 and 1438467
2023-04-02 15:38:31 +02:00
Moonchild
5676529793
Issue #2171 - Skip over shadow nodes that don't have an owning node.
...
Resolves #2171
2023-04-02 15:37:44 +02:00
Moonchild
ce68156cf4
Revert "[widget] Linux GTK3: Detach accessible from moz_container before it's deleted"
...
This reverts commit 465a18f342 .
Resolves #2168
2023-03-18 19:57:56 +01:00
Moonchild
5032ad9593
Issue #2117 - Follow-up: Run precomplete cmd during package staging
...
We rely on this for all OSes except Mac where precomplete should not
be in the root (it uses Mozilla's fallback packaging that places it in
$RESPATH)
2023-03-17 22:11:30 +01:00
Moonchild
b55f765f2e
Issue #1911 - Follow-up: Filter out illegal file extensions also.
...
We already did this for file names, just not extensions.
2023-03-17 12:02:55 +01:00
Moonchild
856078d435
[widget] Linux GTK3: Detach accessible from moz_container before it's deleted
2023-03-17 12:02:46 +01:00
Moonchild
c74c262d2f
[GFX] Add some sanity checks and clamps to SurfaceData calculations.
2023-03-17 12:02:38 +01:00
Moonchild
787e29e374
No Issue - Ensure more OsiSpace
...
ensureOsiSpace(); was very much under-used. This adds more instances
where it makes sense to ensure Osi space before placing masm calls.
2023-03-17 12:02:31 +01:00
FranklinDM
e439896c9b
Issue #2148 - Shrink Vector from (usually) four pointers in size to three
...
when no inline storage is used.
See Bug 1338374
2023-03-17 12:02:20 +01:00
FranklinDM
15b508f1fb
Issue #2148 - Make Vector not use AlignedStorage for its inline element storage
...
See Bug 1338374 1/2
2023-03-17 12:02:12 +01:00
Job Bautista
5651ebfc76
Issue #2148 - Discard RegExpShared data tables when discarding regexp JIT code.
...
Based on Mozilla bug 1378736's part 2.
Should fix the double-free.
Follow-up for #2083
2023-03-17 12:02:04 +01:00
Job Bautista
593bfc1ce8
Issue #2148 - Don't null out RegExpObject -> RegExpShared pointer on GC.
...
Follow-up for issue #2083 .
Taken from Mozilla bug 1378736.
2023-03-17 12:01:50 +01:00
Brian Smith
28953cda7a
Issue #2160 - Initial support for notarizing during DMG package.
...
Added --with-macbundle-idenity configure option to set a codesign identity.
If no identity is set or cross-compiling from Linux no codesigning will be
done. Currently doing a full deep bundle v2 sign, instead of limited v1.
2023-03-15 15:10:52 +01:00
Moonchild
516f3f545d
Merge branch 'master' into release
...
# Conflicts:
# CLOBBER
# js/src/vm/RegExpObject.cpp
# security/nss/lib/nss/nss.h
# security/nss/lib/pkcs12/p12d.c
# security/nss/lib/softoken/softkver.h
# security/nss/lib/util/nssutil.h
2023-03-13 13:11:20 +01:00
Moonchild
83aff65a42
Force clobber
2023-02-19 17:53:31 +01:00
Moonchild
5bd97df957
[NSS] Update NSS to 3.52.9 to pick up fixes.
2023-02-19 17:51:26 +01:00
Moonchild
8772711181
[DOM] Check whether module load request was already cancelled when a load fails
2023-02-19 17:51:18 +01:00
Moonchild
dc9526f4c6
[widget] Properly test for and handle errors in target-surface creation
...
and mapping.
2023-02-19 17:51:10 +01:00
Moonchild
9ab36e7ae0
Issue #2103 - Fix typo in RegExp Parser
...
This corrects the typo where the left-hand character would determine if
the right-hand character would be added or not.
Resolves #2103
2023-02-02 10:50:47 +01:00
Job Bautista
e8d30841e7
Issue #2091 - Parse \p{Extended_Pictographic} too.
...
This is essentially a follow up to Issue #1286 . We already have
UCHAR_EXTENDED_PICTOGRAPHIC in our in-tree ICU, so there's no reason to comment
this case out.
2023-01-27 05:01:53 +01:00
Martok
9faf29374e
Issue #2093 - Trace HeapPtr<RegExpShared::groupsTemplate_> for GC move/compact events, regression from #2072
2023-01-26 20:11:28 +01:00
Moonchild
75e4818d36
Merge branch 'master' into release
2023-01-19 00:42:00 +01:00
Moonchild
a65144e9e0
Fix merge conflicts.
2023-01-13 12:55:52 +01:00
Moonchild
4f29548526
Merge branch 'master' into release
...
# Conflicts:
# image/decoders/nsJXLDecoder.cpp
# js/src/irregexp/NativeRegExpMacroAssembler.cpp
# js/src/irregexp/RegExpAST.h
# js/src/irregexp/RegExpEngine.cpp
# js/src/irregexp/RegExpParser.cpp
# js/src/irregexp/RegExpParser.h
# xpcom/io/nsLocalFileUnix.cpp
2023-01-13 12:11:56 +01:00
Moonchild
528db2cbd8
Issue #1818 - Remove obsolete path hack in widget code.
2022-12-16 09:13:48 +00:00
Moonchild
84e6bcc1e6
[network] Align cookie checks with RFC 6265 (bis)
2022-12-16 09:13:38 +00:00
Moonchild
0dc9ff518d
[libjar] Add some extra sanity checks to our Zip reader.
2022-12-16 09:13:25 +00:00
Moonchild
a2e3bd44aa
[network] move some generic websocket code to the baseclass
2022-12-16 09:13:09 +00:00
Moonchild
163a0e7caf
Revert "Issue #1279 - Implement regular expressions lookbehind (v2)"
...
This reverts commit d10e8a5b06 .
2022-12-15 09:11:02 +00:00
Moonchild
49a86db5f3
Issue #2040 - Pre-multiply the alpha values in our JXL decode buffer. (uplift)
...
Using selective calculation (only if not opaque) and fast integer
math here should optimize well in compilers.
2022-12-15 09:09:19 +00:00
Moonchild
2640953d8b
Issue #2019 - Follow-up: Make nsPluginInstanceOwner also listen to keypress events in the system event group.
...
nsPluginInstanceOwner only listens to keypress events in the default event group.
However, in our changed operating mode, keypress events are not fired in the
default event group if the key does not result in something printable.
This means that nsPluginInstanceOwner should also listen to keypress events
in the system event group and should handle each keypress that way, but
only once. I.e., if a printable keypress event is received in the system event
group, it should be ignored, since it would've already been handled in the
default event group in that case.
2022-11-26 18:18:09 +00:00
Moonchild
7eb7d67f7a
Issue #2033 - Temporary fix of R<->B channel swap.
...
We have a BGR/RGB channel ordering mismatch here. to at least
provide proper display, a quick&dirty byte swap on the output
buffer will fix this for now, but we should look into seeing where
the surface mismatch is caused.
std::swap() should optimize pretty well in any of the used
compilers, but if necessary, a full buffer ASM routine can be
slotted in (although on current hardware I doubt this will be
even noticeable as it is)
2022-11-26 02:43:18 +00:00
Moonchild
e28860ba7f
Revert "[XPCOM] Deal with lstat potentially lying in nsLocalFileUnix."
...
This reverts commit c127f58ef3 .
2022-11-20 14:14:48 +00:00
Moonchild
49a96b1d91
Merge branch 'master' into release
2022-11-19 20:15:23 +00:00
Moonchild
3130812693
Merge branch 'master' into release
2022-11-12 18:34:07 +00:00
Moonchild
71ae69aea8
[WebGL] Implement webgl.max-size-per-texture-mib
2022-10-26 14:50:05 +00:00
Moonchild
9e34d697c7
[XPCOM] Fix Base64 off-by-one issue and safeguard against this mistake in the future.
2022-10-26 14:49:55 +00:00
Moonchild
8fa9125d02
[No issue] Hold some strong references on nsRefreshDriver
2022-10-26 14:49:46 +00:00
Brian Smith
4b4488c3e4
Issue #2022 - Part 2 - Add Ventura version detection.
...
Also add Monterey and Ventura to the graphics driver blocklist.
2022-10-26 14:49:33 +00:00
Brian Smith
248db7d301
Issue #2022 - Part 1 - Fix transparent windows on MacOS 13 Ventura.
...
During the BaseWindow creation contenView is nil on Ventura...
So create a NSView with the requested dimensions and set is as the contenView.
2022-10-26 14:49:23 +00:00
Moonchild
e199f2949b
[No issue] Ensure LockImpl::Try() returns the correct bool value.
2022-10-26 14:45:39 +00:00
Moonchild
456b5450a4
Issue #2010 - Ensure raw tagnames are safe exiting internalEntityParser
...
This resolves #2010
2022-09-28 13:50:10 +00:00
Moonchild
d8e629c4a3
Merge branch 'master' into release
2022-09-27 20:12:40 +00:00
Moonchild
4898c4f297
Merge branch 'master' into release
2022-09-24 12:16:59 +00:00
Moonchild
7cd578bbc6
Merge branch 'master' into release
2022-09-22 13:16:48 +00:00
Moonchild
1e91df628a
Merge branch 'master' into release
2022-09-22 11:52:16 +00:00
Moonchild
b110549cbd
Merge branch 'master' into release
2022-07-27 06:07:45 +00:00
Moonchild
971047835a
Merge branch 'master' into release
...
# Conflicts:
# config/milestone.txt
# toolkit/mozapps/extensions/internal/XPIProvider.jsm
2022-07-25 20:47:06 +00:00
Moonchild
dd4d9eb032
[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-03 15:49:44 +00:00
Moonchild
8b94f1e480
[DOM] use the sanitizer to restrict href in svg:use to fragment-only URLs
2022-07-03 15:49:34 +00:00
Moonchild
c89610a5c7
[network] Clear PAC loader when the load failed
2022-07-03 15:49:23 +00:00
Moonchild
217963cbed
Update NSS to 3.52.7
2022-07-03 15:49:14 +00:00
Moonchild
c4f4e18340
[DOM media] Remove potentially unsafe type accesses when debug logging
2022-07-03 15:49:04 +00:00
Moonchild
8a7c0e7345
[network] Clean up and update the list of external protocol handlers.
2022-07-03 15:48:54 +00:00
Moonchild
52e304d450
Issue #1053 - Follow-up: Correct conditional define on POSIX systems. (uplift)
...
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-28 13:28:20 +00:00
Moonchild
cfc0eeca53
Revert "Issue #1909 - Guard against empty update manifest URL"
...
This reverts commit d7fadcdef9 .
2022-06-07 11:59:07 +00:00
Moonchild
ebd3dd9228
Merge branch 'master' into release
2022-06-03 21:50:44 +00:00
Moonchild
cb40e4e7ef
Merge branch 'master' into release
2022-06-01 13:54:11 +00:00
Moonchild
662dba55fd
Merge branch 'master' into release
2022-05-29 11:13:44 +00:00
Moonchild
8760ce023c
Issue #1895 - Implement queueMicroTask(callback()) (uplift)
2022-05-07 14:40:14 +00:00
Moonchild
b86e148bb7
Roll back milestone version to release.
2022-05-06 12:43:43 +00:00
Moonchild
9e83721e5e
Merge branch 'master' into release
2022-05-06 12:43:00 +00:00
Moonchild
dc2d6c2e60
Revert "No Issue - Make content-type on JAR channels behave the same as HTTP channels."
...
This reverts commit 425677ada7 .
2022-05-03 17:38:19 +00:00
Moonchild
4ada6f6762
Update 7zSD for v31
2022-05-03 17:38:12 +00:00