roytam1
2b0cdc7b62
Merge remote-tracking branch 'origin/tracking' into custom
2024-09-22 20:54:25 +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
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
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
roytam1
1b648cc1d8
Merge remote-tracking branch 'origin/tracking' into custom
2024-09-13 10:04:42 +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
roytam1
a088e79f72
js/xpconnect: pre-C++17 fix
2024-09-06 09:30:05 +08:00
roytam1
8a8546f49f
Merge remote-tracking branch 'origin/tracking' into custom
2024-09-06 09:18:37 +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
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
roytam1
688fa00ac4
Merge remote-tracking branch 'origin/tracking' into custom
2024-07-02 22:08:41 +08:00
Moonchild
ef1f142cde
Issue #2531 - Adjust rounding in toExponential (and kin) to round up at midpoint.
...
Resolves #2531
2024-07-02 22:08:14 +08:00
Moonchild
f4b6cee0cc
Issue #2543 - adjust toFixed precision range according to spec update.
...
As pointed out in the ecma-262 spec change discussion, the behavior is
inconsistent for negative numbers because the exponential fallback assumes
all the digits will be displayed. The negative support was motivated just
by consistency, without any particular concrete use cases, and it's not
supported in other browsers, so this patch removes negatives.
Resolves #2543
2024-07-02 22:07:55 +08:00
roytam1
f4188fb54e
HACK: jsgc: check nullptr before call member function in mayBeOwnedByOtherRuntime()
2024-06-30 13:22:11 +08:00
roytam1
d835b252d7
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-13 11:32:08 +08:00
Moonchild
40c9102d6d
[js gc] Suppress GC during JSObject::swap
...
We already suppressed GC for part of this, but we may sweep before the pre-write
barrier is established.
The simplest and safest thing is to suppress GC for the whole method.
2024-06-13 11:30:25 +08:00
roytam1
5f2d0b3c95
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-04 10:16:58 +08:00
Martok
2128ac642e
Issue #2519 - Use parser error reporter to report missing module exports
2024-06-04 10:16:36 +08:00
roytam1
de7e7860ff
tzdata: update to 2024a
2024-04-21 07:47:52 +08:00
roytam1
552db66da0
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-19 09:37:04 +08:00
Moonchild
dc52303799
[js] Simplify tracing of arguments in MarkThisAndArguments.
2024-04-19 09:34:45 +08:00
roytam1
4f792793c2
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-08 11:13:25 +08:00
Moonchild
6176bd62d9
Issue #2490 - Part 12: Convert CSSStyleRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here, aligning us with
the behavior of Blink and Gecko.
2024-04-08 11:01:02 +08:00
Moonchild
525606c15d
Issue #2490 - Part 11: Convert CSSImportRule to WebIDL.
...
Note that the .media PutForwards is a new feature coming along for the ride, now
that we're using the spec IDL.
2024-04-08 10:59:42 +08:00
roytam1
a944026bae
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-02 22:57:21 +08:00
FranklinDM
6d154eee11
Issue #58 - Follow-up: Remove Rust binding leftovers
2024-04-02 22:46:00 +08:00
roytam1
0db181d2b7
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-29 15:31:31 +08:00
Moonchild
9e3d38b642
Issue #618 - Follow-up: Fix missed constant refactor preventing ExportEntries from working.
2024-01-29 15:28:56 +08:00
roytam1
80c4f1d745
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-11 09:52:46 +08:00
Brian Smith
5b068f3726
Issue #2402 - CSP Violation events should have the correct sample for inline contexts. https://bugzilla.mozilla.org/show_bug.cgi?id=1473587 Add preference to increase max length of CSP report source sample. https://bugzilla.mozilla.org/show_bug.cgi?id=1415352 Return valid columnNumber value in CSP violation events. https://bugzilla.mozilla.org/show_bug.cgi?id=1418246
2024-01-11 09:50:12 +08:00
Brian Smith
0e0ec8cb20
Issue #2402 - CSP should throw EvalError when blocking eval() and Function(). https://bugzilla.mozilla.org/show_bug.cgi?id=1473024 https://bugzilla.mozilla.org/show_bug.cgi?id=1490165
2024-01-11 09:47:08 +08:00
roytam1
d4a80aa2c4
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-09 12:01:14 +08:00
Martok
90eb83819c
Issue #2435 - Re-Implement rejected Promises events according to spec
...
Own implementation; upstream gets several things wrong.
2024-01-09 12:00:53 +08:00
Martok
9126a4836f
Issue #2435 - Implement notifying of rejected promises
...
Based-on: m-c 1362272
2024-01-09 12:00:33 +08:00
Martok
f059bb0a59
Issue #2240 - Align Microtasks and promises scheduling with spec
...
Microtasks, resolved Promises and Observers are handled after the sync
task that caused them, in the order they were generated.
Also simplifies reentrancy handling.
Based-on: m-c 1193394
2024-01-09 11:59:32 +08:00
roytam1
fa72b197d9
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-05 10:11:42 +08:00
Gaming4JC
10a37ae467
Issue #1442 Follow-up: Fix debug assertion in JSFun
...
Change in d5020b69bd introduced a debug build crash, this fixes the crash by properly porting the changes to an assertion as mentioned in issue #2410 .
2024-01-05 10:09:09 +08:00
Matheus Marinho
2e330af8c4
No Issue - Fix syntax in js/src/jsapi-tests/moz.build
2024-01-05 10:07:09 +08:00
roytam1
c889903081
Merge remote-tracking branch 'origin/tracking' into custom
2023-11-30 10:05:11 +08:00
Brian Smith
eef37b2cd5
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-11-30 09:51:50 +08:00
Basilisk-Dev
ae5bfc9ff2
No Issue - StructuredClone serialize and deserialize should treat back reference consistently
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1538622
2023-11-10 15:31:51 +08:00
Basilisk-Dev
727a24d78e
No issue - Structured clone algorithm doesn't serialize Array Length contrary to HTML spec, resulting in truncation of trailing sparse arrays like [1,2,3,,]
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1476955
2023-11-10 15:31:33 +08:00
roytam1
f08dd1422d
Merge remote-tracking branch 'origin/tracking' into custom
2023-11-04 11:42:50 +08:00
Brian Smith
cd66a17327
Issue #2354 - Restore ARM32 buildability on Linux. Fix ION breakages due to BigInt changes. Fix breakages from libjpeg, libyuv and libvpx upgrades. Restore ARM(32/64) NEON FPU support in libyuv.
2023-11-04 11:36:56 +08:00
roytam1
e7c5600d7d
ported from mozilla: Bug 1538622 - StructuredClone serialize and deserialize should treat back reference consistently r=jorendorff (aca6f427e0)
2023-10-23 07:10:46 +08:00
roytam1
a553551082
ported from mozilla: Bug 1476955 - Structured clone algorithm doesn't serialize Array Length contrary to HTML spec, resulting in truncation of trailing sparse arrays like [1,2,3,,] (length=4) to [1,2,3] (length=3); r=sfink (958b3cdb98)
2023-10-22 22:44:55 +08:00
roytam1
ce8751185f
Merge remote-tracking branch 'origin/tracking' into custom
2023-10-21 11:22:34 +08:00