Commit graph

6,120 commits

Author SHA1 Message Date
Martok
a382c2aa66 Issue #2305 Part 3c: Merge repeated loops over MatchPairs 2024-11-13 23:23:59 +08:00
Martok
6dbe2de6db Issue #2305 Part 3b: Create .indices and .indices.groups 2024-11-13 23:23:27 +08:00
Moonchild
2d8696c4fe Issue #2305 Part 3a: Pass ResultTemplateKind through CreateRegExpMatchResult
This sets up the MatchResult with the proper structure to contain indices
when necessary.
2024-11-13 23:23:00 +08:00
Moonchild
845d36d582 Issue #2305 Part 2: Support .indices in match result template objects
Before match indices, all match results had the same shape. (If there are
no named capture groups, `.groups` exists but is undefined.) Match results
with `.indices` have a distinct shape, so we need a distinct template
object. We also need a template object for `.indices` itself.
2024-11-13 23:21:30 +08:00
Moonchild
47ef1701b3 Issue #2305 Part 1: Add support for hasIndices to RegExpFlags (/d)
Adds recognition and parsing of the /d RegExp flag.
Drive-by correction: add missing "s" for dotAll to RegExpObject::toString.
Tag #1284 and #2008
2024-11-13 23:20:49 +08:00
Karl Tomlinson
9ba1057e54 Bug 1920800 - Remove oldImages from check for flushed old principal handle
The logic should be equivalent when frame IDs on aImages are contiguously
increasing from IDs on previously set frames.

There are currently no callers passing empty aImages, but the logic in this
case would now be as described in the documentation of
UpdatePrincipalHandleForFrameID():

> We will notify mElement that aPrincipalHandle has been applied when all
> FrameIDs prior to aFrameID have been flushed out.
2024-10-31 21:47:54 +08:00
Moonchild
5c0c0c02d9 Issue #2648 - Inherit the content disposition of the multipart response 2024-10-31 21:47:41 +08:00
Moonchild
6fe326c7bb Issue #2648 - Apply CSP to documents sent through multipart/x-mixed-replace 2024-10-31 21:47:28 +08:00
Moonchild
8d536c0cc7 Issue #2646 - Parse "variations" keywords.
Resolves #2646
2024-10-31 21:47:14 +08:00
Moonchild
8bbcb50b62 Revert "Issue #2645 - Fix type confusion for ResumeKind"
This reverts commit 12e9db2481d2b542e4f32f9b5ba63a4c72b874d5.
2024-10-31 21:46:55 +08:00
Moonchild
e665b30629 Issue #2645 - Return null if getName() PC is invalid. 2024-10-24 07:37:47 +08:00
Moonchild
7d978ccd71 Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy)
Resolves #2641
2024-10-24 07:37:31 +08:00
Moonchild
f6f046930d Issue #2641 - Speculative load changes for referrerpolicy 2024-10-24 07:37:15 +08:00
Moonchild
19c4996881 Issue #2645 - Fix type confusion for ResumeKind
It used a mix of uint8_t and uint16_t. Set it to uint16_t.
Also don't allow non-typeset to simplify stubs used in compound opcodes.
2024-10-24 07:36:44 +08:00
Andy
cee682b980 PR #2643 - The border-radius Directive Should Apply to Outlines
However, `-moz-outline-radius` should still override any `border-radius`.
This is primarily done for backward compatibility with some themes.
Additionally, it also allows for more advanced outline control than the CSS spec provides, without breaking spec.
Finally, if the spec is ever updated to include `outline-radius`, we'll be ready to drop the `-moz-` prefix!

Note: BZ 315209 has an inadvertent double-negative in nsDisplayList.cpp:
HasRadius() essentially returns the opposite value it should.
2024-10-24 07:36:08 +08:00
Moonchild
a1d0cf1e05 [Pale-Moon] Issue #1972 - Follow-up: include Ci with nsIWebNavigation flag.
For code consistency.
2024-10-11 10:31:27 +08:00
Moonchild
b848a924bc [GMP] Factor out more detailed CheckDimensions function for CreateFrame. 2024-10-03 14:35:40 +08:00
Steve Fink
9a6e3bc30d [js] Disallow deserializing structured clone buffers with transferables more than once. 2024-10-03 14:35:12 +08:00
Boris Zbarsky
32498a0694 Bug 1493449 - Change the default credentials mode for module scripts from 'omit' to 'same-origin'
Resolves #2642
2024-10-01 10:27:55 +08:00
Moonchild
ea2268b5e8 Bug 1900191 - Use nestegg advertised default duration if it exists. 2024-10-01 10:27:39 +08:00
Moonchild
8cb68d8ea8 Bug 1878510 - Follow-up: Explicitly pass values through variadic functions
While MSVC has no issue with this and understands values should be passed,
clang doesn't like it and aborts.
2024-10-01 10:27:24 +08:00
Moonchild
60c31a5473 Bug 1878510 - When recreating WebM demuxer when encountering a new segment, propagate media time 2024-10-01 10:27:11 +08:00
Martin Husemann
7fe8b63b5c libjpeg: add NetBSD/powerpc spcific Altivec cpu feature detection 2024-10-01 10:26:45 +08:00
Martin Husemann
545b4401c5 Hardcode '-maltivec' as compiler flag for powerpc/altivec support 2024-10-01 10:26:07 +08:00
Moonchild
e1c64b1bb8 [Pale-Moon] Issue #1972 - Halt only closing tab activity before closing, not everything browser-wide. 2024-09-22 20:53:59 +08:00
Moonchild
03c56728d9 [Pale-Moon] Issue #1972 - Disable forcing GC on memory pressure. 2024-09-22 20:53:33 +08:00
Moonchild
cf29319f78 [Pale-Moon] Issue #1972 - Make sure all tab activity is halted before removal. 2024-09-22 20:53:03 +08:00
Moonchild
fa2fdbe24e [Pale-Moon] Issue #1972 - Implement ghostbuster 2024-09-22 20:52:34 +08:00
Moonchild
d004b26d7f [Pale-Moon] Warn before using external handler for usenet protocols
We normally ask for confirmation before asking the operating system to
find an application to handle a scheme that the browser does not support.

It did not ask before doing so for the Usenet-related schemes news: snews:
and nntp:. Since most operating systems in 2024 don't have a trusted
newsreader installed by default, an unscrupulous program that the user
downloaded could register itself as a handler.
The website that served the application download could then launch that
application at will. Of course, all bets are off if a user runs such a
program to begin with, but in some situations (looking at you, MacOS!)
just downloading/unpacking could already result in registration as a
protocol handler without the user actually executing anything.
2024-09-22 20:50:49 +08:00
Moonchild
1d9b68afa8 [Pale-Moon] Issue #1967 - Enable prefetching and provide interface.
- Expose network.dns.disablePrefetch to UI.
- Set the pref to false by default (DNS prefetch enabled)

Resolves #1967
2024-09-22 20:50:12 +08:00
Martin Husemann
b1fd3b72cf Make NetBSD/powerpc use the powerpc atomic ops.
NetBSD/powerpc gcc does not predefine __ppc__, but only __powerpc__,
so add that to the preprocessor ifdef cascade to select atomic
ops.
2024-09-22 20:45:12 +08:00
Martin Husemann
37f260bbd4 Make NetBSD use the same xptcall support as others.
These functions are only ELF ABI specific, not really OS specific.
Add powerpc, powerpc64 and sparc64 support for NetBSD
by using the same code as other ELF systems do.
2024-09-22 20:44:57 +08:00
Moonchild
efad094b02 Make inaccurate GC stats reporting non-fatal in debug builds.
Not sure why this was fatal as it only hinders being able to report memory
issues to a debugging dev :P
2024-09-22 20:44:32 +08:00
FranklinDM
814a769541 Issue #2251 - Expose unlink ghost windows to about:memory 2024-09-22 20:44:18 +08:00
FranklinDM
97a40adc75 Issue #2251 - Expose ghost window unlinking to release builds. 2024-09-22 20:43:48 +08:00
Moonchild
2b4e577d8e No issue - Fix asserts in debug.
Hashbang parser changes allow more than one EOL which screws up these
assertions' premise. Just remove them as the preconditions are no longer
valid.
2024-09-22 20:43:23 +08:00
Brian Smith
27e66e3f82 No Issue - Fix building for Apple Silicon Mac with Xcode 16. Due to the following LLVM change labels need to be outside .cfi_start/endprocs: https://reviews.llvm.org/D155245 Solution pointed out here is to move the label above .cfi_startproc: https://github.com/libffi/libffi/issues/807 2024-09-22 20:42:53 +08:00
Nia Alarie
4637e2319c media/libcubeb: Use Sun audio backend also on NetBSD 2024-09-22 20:40:46 +08:00
Nia Alarie
6627f8e932 Fix bashism in old-configure.in 2024-09-22 20:40:18 +08:00
FranklinDM
290489edda Issue #2578 - Part 3: Expose CORS and CORS bypass preflight requests preferences. 2024-09-13 10:04:22 +08:00
FranklinDM
2d60c54926 Issue #2578 - Part 2: Implement preference for disabling CORS preflight requests if CORS is disabled 2024-09-13 10:03:53 +08:00
FranklinDM
09b3c7a2d8 Issue #2578 - Part 1: Implement preference for controlling same-origin policy 2024-09-13 10:03:25 +08:00
Nia Alarie
dd6526daae js: Support for the MPROTECT security feature (PaX and NetBSD)
On such platforms, remapping memory that was once writable
to executable is forbidden unless the initial mmap() is declared
to change in such a way using the PROT_MPROTECT macro.
2024-09-13 10:02:50 +08:00
Moonchild
ec8793a094 [js xpconnect] Fix error handling in xpc::CreateSandboxObject 2024-09-06 09:17:32 +08:00
Moonchild
8f31479968 [js] Simplify with-env handling in FetchName 2024-09-06 09:16:51 +08:00
Moonchild
b9e7ecd8bc [DOM] Stop exposing NotifyPaintEvent to web content.
There's no reason this should be available to the web, as it's an
indicator of browser internals.
2024-09-06 09:16:23 +08:00
Moonchild
7cc9551e79 Issue #2559 - Implement hashbang grammar
This adds special-case #! comment handling at the top level, treating
any hashbang line as a single-line comment in the parser.
This only applies to Eval(), module script or global context.
2024-09-06 09:15:51 +08:00
Moonchild
9d6ffb5814 Issue #1810 - Add DOMMatrix {get|set}Transform WebIDL interfaces 2024-08-21 10:48:36 +08:00
Moonchild
18f039543a Issue #1810 - Allow superfluous [LenientFloat] extended attributes.
This changes the way the extended attribute [LenientFloat] behaves, so
that overloading functions can match extended attributes while not
having restricted float type arguments themselves.
2024-08-21 10:48:21 +08:00
Moonchild
71bd54891a Issue #1810 - Implement {get|set}Transform with DOMMatrix arguments.
We already had part of the plumbing for other canvas manipulations, so
this is somewhat simplified.

This excludes the interface as that is breaking the build at this stage.
Some more research is required.
2024-08-21 10:48:06 +08:00