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
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
Moonchild
e65b46ba0f
Issue #2350 - Part 2: Allow "maximumFractionDigits" option in Intl.NumberFormat to be less than the default minimum fraction digits.
...
This implements the changes from the "has consensus" PR in TC39
The second pair of `DefaultNumberOption()` calls was inlined, because
only the fallback case is relevant anyway.
Steps 12.d and 12.e from the spec PR were combined into a single
`if`-block. That way it also matches step 12.f more closely.
Also changed the single `if` steps into an `if-else if` chain, because
the steps are mutually exclusive.
2023-10-21 11:04:15 +08:00
Moonchild
be81bae5b7
Issue #2350 - Part 1: Apply "minimumIntegerDigits" to number-formatters with fraction-digits.
...
Implements the changes to `SetNumberFormatDigitOptions` and
`FormatNumberToString`, except for the support of the new
"compact-rounding" mode.
This also includes a few minor fixes for edge cases (like -0 vs. 0)
2023-10-21 11:03:56 +08:00
Moonchild
735bb78c28
Issue #2350 - Part 0: Add a helper function DefaultNumberOption
...
This is the abstract operation that converts an option value to a number
value, checking whether it is in the allowed range, and filling in a
fallback value if necessary.
2023-10-21 11:03:34 +08:00
roytam1
ca9d8d3960
Merge remote-tracking branch 'origin/tracking' into custom
2023-10-18 10:03:32 +08:00
Brian Smith
46024cd872
Issue #1442 Follow-up: Stop pretending proxies have a JSNative call/construct hook. https://bugzilla.mozilla.org/show_bug.cgi?id=1471924 Part 1 Also remove an erroneous debug assert and guard against future issues. This fixes crashes on vk.com but still does not behave correctly.
2023-10-18 09:48:01 +08:00
roytam1
a55674f653
Merge remote-tracking branch 'origin/tracking' into custom
2023-10-04 10:06:04 +08:00
Brian Smith
41409ab613
Issue #1442 & #1691 Follow-up - Part 22 - Changes that came with Dynamic Module Import. At the time we did not have ReadableStreams in our tree so these changes were left out. https://bugzilla.mozilla.org/show_bug.cgi?id=1499140 Implement support for dynamic module import in the interpreter.
2023-10-04 10:03:49 +08:00
Brian Smith
0701dccaca
Issue #1442 - Part 5: Implement WebIDL bindings for Streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-10-04 09:54:00 +08:00
Brian Smith
9b9075eef6
Issue #1442 - Part 4: Add JSAPI functions for working with ReadableStream. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-10-04 09:53:45 +08:00
Brian Smith
54e84f0f1d
Issue #1442 - Part 3: Implement ReadableStream and associated classes in the JS engine. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-10-04 09:53:29 +08:00
Brian Smith
62467428a3
Issue #1442 - Part 2: Add a run-time preference for toggling the streams API. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-10-04 09:53:12 +08:00
Brian Smith
90ca1f569a
Issue #1442 - Part 1: Change ArrayBufferCopyData self-hosting intrinsic to take a start offset for the destination. This will be needed to manage stream chunks. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-10-04 09:52:57 +08:00
roytam1
7a3845abaf
Merge remote-tracking branch 'origin/tracking' into custom
2023-09-29 10:05:50 +08:00
Brian Smith
6d1b63e21b
No Issue - IonMonkey: Don't test for a 3-byte opcode in a 2-byte opcode predicate. https://bugzilla.mozilla.org/show_bug.cgi?id=1390214 Silence increasingly loud warnings from clang, also could cause errant behavior.
2023-09-29 09:42:05 +08:00
roytam1
ad0a69ae15
Merge remote-tracking branch 'origin/tracking' into custom
2023-09-28 11:51:45 +08:00
André Bargull
51e4b86e6d
[js] Handle dead wrappers
2023-09-28 11:50:55 +08:00
roytam1
e9d4ea8fbf
Merge remote-tracking branch 'origin/tracking' into custom
2023-09-26 16:14:15 +08:00
Brian Smith
61b73a894a
Issue #2313 - Implement WebAssembly sign extension opcodes. https://bugzilla.mozilla.org/show_bug.cgi?id=1389461
2023-09-26 16:06:17 +08:00
Moonchild
3798308cff
Issue #2307 - Follow-up: remove some missed SIMD scalar types.
2023-09-26 16:03:23 +08:00
roytam1
cd21720e06
wasm: follow-up rev 50a44127
2023-09-22 10:15:39 +08:00
roytam1
ae589c4f39
Merge remote-tracking branch 'origin/tracking' into custom
2023-09-22 09:57:31 +08:00
Moonchild
45c19ce1c5
Issue #2307 - Part 3b: Fix build bustage.
2023-09-22 09:57:05 +08:00
Moonchild
50a4412750
Issue #2307 - Part 3: Remove SIMD.js support
...
This gets rid of the SIMD-specific scalar types in JS.
This considerably deviates from Mozilla's work because of our divergent
path.
2023-09-22 09:56:35 +08:00
Moonchild
b086ec848b
Issue #2307 - Part 2b: Remove superfluous dev comment
2023-09-22 09:52:53 +08:00
Moonchild
20f39d9450
Issue #2307 - Part 2: Move SIMD code generation to masm methods
2023-09-22 09:52:31 +08:00
Moonchild
ba51ff6a74
Issue #2307 - Part 1: Extend masm with the pmovmskb SSE2 instruction.
2023-09-22 09:52:02 +08:00
roytam1
30236b0f05
Merge remote-tracking branch 'origin/tracking' into custom
2023-09-20 09:31:36 +08:00
Brian Smith
8f44226445
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Doubles in Ion.
2023-09-20 09:31:08 +08:00
Brian Smith
209d714434
Issue #2308 & #1240 Follow-up - Replace JSOP_POS in ++/-- with JSOP_TONUMERIC. https://bugzilla.mozilla.org/show_bug.cgi?id=1519135
2023-09-20 09:30:06 +08:00
Brian Smith
2b637c564f
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Ion on Intel32/64.
2023-09-20 09:29:46 +08:00
Brian Smith
e12e377e51
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 09:29:18 +08:00
Brian Smith
5c8a6c5bb8
Issue #2308 & #1240 Follow-up - Introduce new increment and decrement operations. https://bugzilla.mozilla.org/show_bug.cgi?id=1508521
2023-09-20 09:29:01 +08:00