Moonchild
610e44320c
Issue #2342 : Remove MOZ_MUST_USE macro
2023-11-05 12:38:11 +01:00
Moonchild
10476e27da
Issue #2342 : Use [[nodiscard]] in /mfbt
2023-11-05 12:37:04 +01:00
Moonchild
a4777b1c21
Issue #2342 : Use [[nodiscard]] in /xpcom and xpidl parser
2023-11-05 10:41:52 +01:00
Moonchild
9f6e448f78
Issue #2342 : Use [[nodiscard]] in /uriloader /widget
...
Also a few misc low-volume places.
2023-11-05 00:59:31 +01:00
Moonchild
19a21bac1b
Issue #2342 : Use [[nodiscard]] in /netwerk
2023-11-04 23:42:53 +01:00
Moonchild
c7867ce130
Issue #2342 : Use [[nodiscard]] in /memory and remove Sun Studio hack
2023-11-04 22:57:30 +01:00
Moonchild
34c068e611
Issue #2342 : Use [[nodiscard]] in /media
2023-11-04 22:28:58 +01:00
Moonchild
a48e621048
Issue #2342 : Use [[nodiscard]] in /js
2023-11-04 20:06:50 +01:00
Moonchild
de5d3b1034
Issue #2342 : Use [[nodiscard]] in IPDL generation and fix warnings
...
DOM plugin code had two warning in IPC caught by [[nodiscard]], these
were fixed in one go.
2023-11-04 01:24:20 +01:00
Moonchild
f8737bbf4f
Issue #2342 : Use [[nodiscard]] in /ipc
2023-11-04 01:22:37 +01:00
Moonchild
d9c70eaba2
Issue #2342 : Use [[nodiscard]] in /hal /image and /intl
2023-11-04 01:21:57 +01:00
Moonchild
9308c63ce6
Issue #2281 - Remove the use of non-standard namespace std::tr1 in
...
Google's WebRTC gtest code
2023-11-04 00:13:32 +01:00
Moonchild
6314e01691
Issue #2342 : Use [[nodiscard]] in /accessible and /caps
2023-11-03 12:17:29 +01:00
Moonchild
b7b2f1de84
Issue #2342 : Use [[nodiscard]] in /gfx and /layout
2023-11-03 00:34:37 +01:00
Moonchild
b838d6634c
Issue #2342 : Use [[nodiscard]] in /dom
2023-11-03 00:17:31 +01:00
Moonchild
dc4ea7f680
Merge branch 'master' into c++17-work
2023-11-02 12:20:37 +01:00
Moonchild
2132ea4a22
Merge pull request 'Improve boxshadow rendering' ( #2367 ) from boxshadow-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2367
2023-11-02 00:27:19 +00:00
Moonchild
33bff10b1c
[devtools] Make ECMA v6 the default for devtools pretty-printing.
2023-11-01 14:27:24 +01:00
Moonchild
9493e8c3de
Issue #2364 - Limit the growth of scaling for animated nsDisplayTransform
...
in the fallback case.
This ensures we don't scale the underlying size of the layer beyond what
is close to the current display size. When box shadows get much larger
than this, they start taking so much time to render that successive
frames grow in scale too fast for any inter-frame reuse to be possible.
With this, we avoid that and no longer get crushed by re-rendering
gigantic box shadows every single frame.
See BZ 1383825
2023-11-01 10:32:04 +01:00
Moonchild
7631297112
[gfx] Add Min() and Max() convenience functions for 2d point types.
...
This will return (min(x1,x2), min(y1,y2)) and equivalent max from 2
passed-in (x1,y1) (x2,y2) points
2023-11-01 10:31:19 +01:00
Moonchild
5e381b021c
[gfx] Fix a bug in SizeTyped templating
...
A second template parameter 'F' was previously added to SizeTyped, but
was not correspondingly added to the argument passed for the 'Sub'
parameter of BaseSize.
2023-11-01 10:31:18 +01:00
Moonchild
5c9a1efa7c
Issue #2364 - Only use HWA AlphaBoxBlur when targets are large enough.
...
There's considerable cost associated with creating HWA draw targets
which would negate and regress the performance won by it if used for
too small targets (like small spans of text).
This only uses HWA if >= 8K SurfaceAllocationSize to balance HWA draw
target cost with box blur cost.
2023-11-01 10:31:18 +01:00
Moonchild
93ddeb613e
Issue #2364 - Optimize the software-based box blur implementation.
2023-11-01 10:31:17 +01:00
Moonchild
2fae5d3e6b
Issue #2364 - use DrawTarget::DrawSurfaceWithShadow to render box
...
shadows on platforms that accelerate it.
2023-11-01 10:31:16 +01:00
Moonchild
5fd365cb76
Issue #2364 - Re-factor AlphaBoxBlur
...
Only blur one quadrant of a box-shadow and mirror it to the other quadrants.
This applies only if the corners are symmetrical (square corners or equal
corner radii) otherwise we'll fall back to the old method.
2023-11-01 10:31:16 +01:00
Moonchild
d7f8e56f04
Merge pull request 'Update ffvpx to version 6.0' ( #2363 ) from trav90/UXP-contrib:ffvpx60-rebased into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2363
2023-11-01 09:27:31 +00:00
trav90
6ee56b0a60
Issue #2317 - Part 9 - "send" before "receive"-ing when decoding audio using FFmpeg
...
This is what the documentation says we should be doing. We miss decoding a packet otherwise.
2023-10-27 10:16:08 -05:00
trav90
165ef56547
Issue #2317 - Part 8 - Update compiler flags used for ffvpx
2023-10-27 10:15:42 -05:00
trav90
9d333be11b
Issue #2317 - Part 7 - Don't use -ffreestanding flag when building with clang
...
This was added by Mozilla as a workaround for an automated build system (one that they no longer use) for building on Linux with clang (which is not our target compiler for that platform). No need for us to keep this workaround.
2023-10-27 10:15:10 -05:00
trav90
aff6fbf36c
Issue #2317 - Part 6 - Remove old workaround for clang-cl
...
This was added back in 2016 to work around issues with clang-cl. Shouldn't be needed anymore.
2023-10-27 10:14:45 -05:00
trav90
ef8447ad4b
Issue #2317 - Part 5 - Build ffvpx against the FFmpeg 6.0 headers
2023-10-27 10:14:24 -05:00
trav90
21face45d3
Issue #2317 - Part 4 - Regenerate config* files for ffvpx
2023-10-27 10:14:02 -05:00
trav90
ff4d550c80
Issue #2317 - Part 3 - Update symbols list for FFmpeg 6.0
2023-10-27 10:13:46 -05:00
trav90
45b9cfbe93
Issue #2317 - Part 2b - Clip constants used with shift instructions within inline assembly
...
Cherry-pick of upstream commit: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/effadce6c756247ea8bae32dc13bb3e6f464f0eb
2023-10-27 10:13:23 -05:00
trav90
4321dbddcc
Issue #2317 - Part 2a - Update changes.patch for ffvpx
2023-10-27 10:13:06 -05:00
trav90
3a67a9510b
Issue #2317 - Part 2 - Import FFmpeg 6.0 source files for ffvpx
2023-10-27 10:12:44 -05:00
trav90
ea464a764f
Issue #2317 - Part 1 - Update and cleanup ffvpx documentation in preparation for lib update.
2023-10-27 10:11:11 -05:00
Moonchild
72a2a5f2bd
[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:18:57 +02:00
Moonchild
0b70c77657
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-10-26 22:46:45 +02:00
Moonchild
ca04aefa67
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:45:36 +02:00
Moonchild
89dec27643
Merge pull request 'Restore ARM32 buildability.' ( #2360 ) from dbsoft/UXP:arm-2354 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2360
2023-10-26 12:10:38 +00:00
Moonchild
53a8a408f2
Bump Goanna version to 6.5.0
2023-10-25 22:51:24 +02:00
Moonchild
a653f74576
Merge pull request 'No Issue - Implement crypto.randomUUID' ( #2359 ) from Basilisk-Dev/UXP-contrib:crypto-randomuuid into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2359
2023-10-25 20:48:01 +00:00
Brian Smith
5fa394b169
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-10-25 19:01:38 +00:00
Basilisk-Dev
3d92b82125
No Issue - Implement crypto.randomUUID
...
We already have code in the platform to generate random UUIDs. This simply exposes that functionality via the crypto.UUID function
2023-10-25 13:39:53 -04:00
Moonchild
ccb41c645c
[WebRTC] Give ::Terminated() the same treatment as ::Close_g
2023-10-25 18:30:38 +02:00
Moonchild
98c3aa5743
[XPCOM] Add several app/msi file types to the executables list (Win).
...
This errs on the side of caution for what are installer packages, but
people getting conned into thinking this is safe is a bit too common.
They are akin in danger to .exe files in that respect as it installs
software, and should be treated similarly, so, warn about the potential
danger.
2023-10-25 18:20:53 +02:00
Moonchild
2c2ddd98d2
[DOM] Drop mWrappedRunnable early in workers.
...
This should prevent some intermittent crashes.
2023-10-25 18:04:26 +02:00
Moonchild
b15a36452d
[WebGL] Add preffed limit to WebGL vertCount
...
Defaults to 30M, working around driver bugs (looking at you, Mesa)
2023-10-25 07:53:57 +02:00
Moonchild
a71597905c
[widget] Change RegisterDragDrop to be called on idle.
...
This is a low-priority init function that should not be called with
immediate dispatch to the current thread, for performance reasons.
Additionally, do not call RegisterDragDrop for hidden windows.
2023-10-25 06:09:09 +02:00
Moonchild
028aa731ed
[network] Block more invalid cookie name characters.
...
This blocks the following characters from use in the cookie name:
0x3B (semi-colon), 0x3D (equals) and 0x7F (del)
2023-10-25 04:31:47 +02:00
Moonchild
688ed9a114
[DOM] Ignore status 206 and vary header checking for opaque responses in
...
the Cache API.
2023-10-25 04:29:37 +02:00
Moonchild
c30be25773
Merge pull request 'Implement support for WebM transparency/alpha channel.' ( #2358 ) from athenian200/UXP:webm_alpha_work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2358
Reviewed-by: Travis W. <travawine@palemoon.org >
2023-10-25 02:19:47 +00:00
Moonchild
72f30730e7
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-10-25 03:59:44 +02:00
Moonchild
782202963e
[media] Use RefPtr<TrackBuffersManager> instead of raw pointers
2023-10-25 03:59:10 +02:00
Moonchild
dd2fbc763a
Merge pull request 'Treat all GLSL versions >=450 as 450' ( #2356 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2356
2023-10-24 13:55:41 +00:00
Jeremy Andrews
f4d408dffe
Issue #2357 - Add reftest for WebM alpha.
...
I figured I should include the reftest for the sake of completeness, though I have already verified the feature working from the site mentioned in the forum thread that prompted me to look into this in the first place.
Ref: BZ 1331528
2023-10-24 00:59:20 -05:00
Jeremy Andrews
f7c0599e1e
Issue #2357 - WebM w/alpha renders black if WMF decoder is enabled.
...
Mozilla forgot to force use of VPXDecoder on Windows in their initial implementation, this is pretty much what they did for Android as well. Straight port of the Firefox 67 fix.
Ref: BZ 1528652
2023-10-24 00:59:11 -05:00
Jeremy Andrews
855109b028
Issue #2357 - Paused WebM videos w/alpha are 100% transparent if HA is disabled.
...
Mozilla found a bug in their initial implementation, causing paused WebM videos with alpha to become totally transparent if hardware acceleration is disabled. Straight port of the Firefox 54 fix.
Ref: BZ 1332952
2023-10-24 00:59:00 -05:00
Jeremy Andrews
c48055d6ea
Issue #2357 - VPXDecoder does not decode alpha frames.
...
Another requirement to have transparency in videos. Straight port of Firefox 53 implementation, save for some oddities relating to needing to put uint8_t instead of uint8 in yuv_convert to get this to compile.
Ref: BZ 1321076, 1329104
2023-10-24 00:58:50 -05:00
Jeremy Andrews
8b746b6c12
Issue #2357 - WebM demuxer can't tell when a video wants to be transparent.
...
Required to have an alpha channel (which in the strange world of graphics seems to refer to transparency, and not experimental code) in WebM videos. Straight port of Firefox 53 implementation, adapted slightly for a couple of patches previously taken without this.
Ref: BZ 1320829
2023-10-24 00:58:15 -05:00
Basilisk-Dev
1889edcea8
Treat all GLSL versions >=450 as 450
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1446548
2023-10-23 13:52:25 -04:00
Moonchild
6df4c18747
Issue #2355 - Apply self-transforms to the frame of top level <svg>
...
We previously didn't do this because we relied on our anonymous wrapper
to perform transforms. However, that resulted in only the children
transforming, and the frame's cliprect wouldn't be updated,
giving the impression of the z-ordering being wrong.
Also adds reftests from the relevant BZ bug found later.
Resolves #2355
2023-10-22 09:33:22 +02:00
Moonchild
d5231ca7e7
Issue #2346 - Follow-up: restore erroneously removed GMP mCrashHelper.
2023-10-21 17:06:43 +02:00
Moonchild
93823836d7
Merge pull request 'Implement some NumberFormat spec updates' ( #2352 ) from 2350-numberformat-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2352
2023-10-20 20:57:39 +00:00
Moonchild
1e3301e987
Merge pull request 'Align the Performance Observer navigation and resource with the spec.' ( #2353 ) from dbsoft/UXP:po-navres-2282 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2353
2023-10-20 13:01:08 +00:00
Brian Smith
ccbeea30aa
Issue #2282 - Part 2 - Re-add some timer clamping that got clobber erroneously.
2023-10-20 05:00:04 -05:00
Brian Smith
398486a64b
Issue #2282 - Align the Performance Observer navigation and resource with the spec.
...
This now passes the conformance tests.
https://bugzilla.mozilla.org/show_bug.cgi?id=1425458
Resource timing entries Workers - part 2 - PerformanceTimingData.
https://bugzilla.mozilla.org/show_bug.cgi?id=1462605
PerformanceNavigationTiming.name must be the value of the address of the current document.
https://bugzilla.mozilla.org/show_bug.cgi?id=1462883
Update PerformanceTimingData::mReportCrossOriginRedirect in SetPropertiesFromHttpChannel.
https://bugzilla.mozilla.org/show_bug.cgi?id=1462879
PerformanceNavigationTiming must be notified correctly - part 1 - notify.
2023-10-20 04:21:49 -05:00
Moonchild
4554cb9929
Merge pull request 'Clean up the rest of EME' ( #2348 ) from 2346-EME-cleanup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2348
2023-10-19 18:41:58 +00:00
Moonchild
8f62ed27eb
Merge pull request 'Issue #2332 - Hyphenate rtc stats type as per spec' ( #2349 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2349
2023-10-19 15:33:23 +00:00
Moonchild
3e71cd6b93
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-19 15:46:27 +02:00
Moonchild
6c6c16b7f0
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-19 15:19:55 +02:00
Moonchild
6ad6cc9c2d
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-19 10:17:11 +02:00
Basilisk-Dev
5b5672fd56
Issue #2332 - Hyphenate rtc stats type as per spec
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1322503
2023-10-18 16:30:27 -04:00
Moonchild
0e427867e3
Issue #2281 - Force clobber
...
Without a clobber, mozconfigure doesn't properly pick up the /std:c++17
or -std=gnu++17 compiler switches needed to put them into C++17 mode.
2023-10-18 14:40:16 +02:00
Moonchild
8137a4e122
Issue #2281 - Add some deduction guides for class template arguments.
...
This is necessary if we want to start using Span() constructors
instead of the MakeSpan() kludge.
2023-10-18 14:35:59 +02:00
Moonchild
f2ec6ef34d
Issue #2346 - Remove IsWaitingOnCDMResource stub
2023-10-18 10:59:39 +02:00
Moonchild
42c8b9470c
Issue #2346 - Remove EME PDM factory creation.
2023-10-17 16:37:46 +02:00
Moonchild
d0d6e8edf5
Issue #2346 - Clean up EME code in toolkit extension manager (GMP)
2023-10-17 16:37:45 +02:00
Moonchild
30d3325148
Issue #2346 - Remove stub for setting decryptor ID
2023-10-17 16:37:45 +02:00
Moonchild
0451648c60
Issue #2346 - Remove MDSM "Wait for CDM" state
...
Without EME we don't need the machinery to wait for an external
CDM module to be ready in our mediadecoder.
2023-10-17 16:37:44 +02:00
Moonchild
7a10dcaadf
Issue #2346 - Update tests
2023-10-17 16:37:43 +02:00
Moonchild
a63cf31989
Issue #2346 - Update build configuration and remove --{en|dis}able-eme
2023-10-17 16:37:43 +02:00
Moonchild
ea3785a6d7
Issue #2346 - Remove EME WebIDL interfaces
2023-10-17 16:37:42 +02:00
Moonchild
d0d9e63809
Issue #2346 - Update license (remove OpenAES)
2023-10-17 16:37:42 +02:00
Moonchild
e80bbcfe91
Issue #2346 - Remove unused EME components
...
This removes:
dom/media/eme code
GMP CDM proxies
GMP WideVine adapter code
EME media platform code
GMP clearkey module
2023-10-17 16:37:41 +02:00
Moonchild
08406731e5
Issue #2346 - Remove MOZ_EME conditional code
2023-10-17 16:37:41 +02:00
Moonchild
6076431d7c
Merge pull request 'Backport of Mozilla tooltip bugs' ( #2347 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2347
2023-10-17 14:30:19 +00:00
Moonchild
60b4d804bd
Issue #1721 - Follow-up: Properly protect GPC header
...
Make it a singleton so it cannot be overwritten.
2023-10-17 16:26:18 +02:00
Basilisk-Dev
2b1281f2c9
Backport of Mozilla tooltip bugs:
...
Bug 148624 - only show tooltip when document has focus
Partial Bug 1857513 - Use window activeness rather than document.hasFocus() to display chrome-only tooltips
2023-10-16 10:13:10 -04:00
Moonchild
087febcc4b
Merge pull request 'Stop pretending proxies have a JSNative call/construct hook.' ( #2345 ) from dbsoft/UXP:readablestreams-crash into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2345
2023-10-16 06:51:06 +00:00
Moonchild
6430adfb2d
Restore EME WebIDL for proper cleanup later.
2023-10-16 08:39:28 +02:00
Brian Smith
d5020b69bd
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-16 01:10:26 -05:00
Moonchild
46138995f6
Issue #2281 - Default to C++17 when building.
...
Configure the toolchain to default to C++17 language standard with
optional gnu extensions (if on GCC)
2023-10-15 15:12:23 +02:00
Moonchild
aeb9de40a5
Issue #2281 - Avoid class-static constexpr in TypedArrayObject
2023-10-15 01:54:25 +02:00
Moonchild
3d693801f9
Issue #2281 - Build LZ4 as C instead of including it as C++.
2023-10-15 00:19:13 +02:00
Moonchild
3b39358c84
Clean up dom\webidl
...
Fix CRLF line endings in some files, and remove EME interface leftovers.
2023-10-14 15:16:41 +02:00
Moonchild
4df8e7664a
Issue #2340 - Return an array (actually frozen sequence) for {border|content}BoxSize
...
Resolves #2340
2023-10-14 14:16:26 +02:00
Moonchild
14fa712b8c
Issue #2281 - The 'register' storage class is no longer a thing in c++17
2023-10-13 23:12:37 +02:00
Moonchild
7d93034fd0
Issue #2281 - Mark mozalloc new() as noexcept to aligh with what the VC
...
runtime expects.
Currently spams warnings but may actually error out if not fixed, or
result in undefined behaviour if mismatching signatures are treated as
redeclarations with different exception specifications.
2023-10-13 23:12:00 +02:00
Moonchild
1769e74839
Issue #2281 - Replace std::iterator inheritance with iterator traits
...
definitions (as required by C++17).
2023-10-13 23:07:22 +02:00
Moonchild
cdfd243b5a
Merge pull request 'Issue #2332 - WebRTC Spec Updates' ( #2338 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2338
2023-10-10 11:13:22 +00:00
Moonchild
b326873871
Merge pull request 'Issue #2332 - Fix CamerasChild helper to return by value instead of out-of-scope reference' ( #2339 ) from Basilisk-Dev/UXP-contrib:bugzilla-1318132 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2339
2023-10-10 11:12:08 +00:00
Basilisk-Dev
0ea78ba5fa
Issue #2332 - Fix CamerasChild helper to return by value instead of out-of-scope reference
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318132
2023-10-09 22:13:50 -04:00
Basilisk-Dev
95a8edc5fc
Issue #2332 - Update most tests to skip RTCSessionDescription construction
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 6
2023-10-09 17:09:04 -04:00
Basilisk-Dev
38dfadad45
Issue #2332 - Update most tests to skip RTCIceCandidate construction
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 5
2023-10-09 17:08:07 -04:00
Basilisk-Dev
9bee3a8b72
Issue #2332 - Have createOffer/Answer resolve with dictionaries
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 4
2023-10-09 17:07:05 -04:00
Basilisk-Dev
c8218f73b7
Issue #2332 - Have set(Local|Remote)Description take dictionaries
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 3
2023-10-09 17:06:12 -04:00
Basilisk-Dev
81cf4413e2
Issue #2332 - Have addIceCandidate take a dictionary
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 2
2023-10-09 17:04:07 -04:00
Basilisk-Dev
09e6d13d6b
Issue #2332 - Update RTCIceCandidate to spec
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 - part 1
2023-10-09 17:02:11 -04:00
Basilisk-Dev
69cfed48da
Issue #2332 - Add deprecation warnings to writable RTCSessionDescription
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1313966
2023-10-09 17:00:40 -04:00
Moonchild
1b2c1d8eac
Merge pull request 'Correct overzealous GMP checks' ( #2336 ) from mrnhmath/UXP:2301fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2336
2023-10-08 09:24:21 +00:00
Moonchild
e0746ccf31
Merge pull request 'Issue #2332 - Do some cleaning around direct listeners and video sinks' ( #2335 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2335
2023-10-08 09:21:07 +00:00
Matheus Marinho
8f6d5c5ba0
Correct overzealous GMP checks
2023-10-06 23:04:36 -03:00
Moonchild
78120a7693
[DOM] Fix deprot in PerformanceMark.cpp
2023-10-05 23:10:36 +02:00
Basilisk-Dev
ecc90c09ef
Issue #2332 - Use only one listener in MediaPipelineTransmit
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1305949 part 3
2023-10-05 16:51:40 -04:00
Basilisk-Dev
8698518416
Issue #2332 - Use the same path for passing on missed data to video sink, as during normal operation
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1305949 part 2
2023-10-05 16:48:52 -04:00
Basilisk-Dev
cf178171a4
Issue #2332 - Refactor code that feeds video stream sink when it gets added
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1305949 part 1
2023-10-05 16:47:30 -04:00
Moonchild
92ad63b579
Merge pull request 'Issue #2332 - Update libvpx to 1.6.1' ( #2333 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2333
2023-10-05 18:07:43 +00:00
Moonchild
8c63b950f5
Merge pull request 'Issue #2332 - Remove unimplemented and non-spec getStreamById from RTCPeerConnection' ( #2334 ) from Basilisk-Dev/UXP-contrib:bz-1318163 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2334
2023-10-05 18:02:14 +00:00
Basilisk-Dev
9aed582fc1
Issue #2332 - Remove unimplemented and non-spec getStreamById from RTCPeerConnection
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318163
2023-10-05 10:27:12 -04:00
Basilisk-Dev
1b5b970a53
Issue #2332 - libvpx upgrade followup part 5
...
Port commits 39f9ab375b and ed7b08e608 to new libvpx version
2023-10-04 22:11:29 -04:00
Basilisk-Dev
bf6ed5545d
Issue #2332 - libvpx upgrade followup part 4
...
Port commit babeb5c556 to new libvpx version
2023-10-04 22:11:29 -04:00
Basilisk-Dev
302411b4df
Issue #2332 - libvpx upgrade followup part 3
...
Port commit d5a2c45aad to new libvpx version
2023-10-04 22:11:29 -04:00
Basilisk-Dev
2cb4813adb
Issue #2332 - libvpx upgrade followup part 2
...
Port commit ca36e991ea to new libvpx version
2023-10-04 22:11:28 -04:00
Basilisk-Dev
c5ba4dd2a4
Issue #2332 - libvpx upgrade followup part 1
...
Port commit a8f45aba81 to new libvpx version
2023-10-04 22:11:28 -04:00
Basilisk-Dev
322bbcad1b
Issue #2332 - Update to libvpx 1.6.1
...
Backport of Bugzilla 1223692 and 1331498
2023-10-04 22:10:42 -04:00
Moonchild
a2f69c22f8
Merge pull request 'No Issue - Remove deprecation errors for obsolete RTCOfferOptions' ( #2325 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2325
2023-10-04 09:19:58 +00:00
Basilisk-Dev
9d69fa3c37
No Issue - Remove deprecation errors for obsolete RTCOfferOptions
...
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1197021
2023-10-03 16:55:28 -04:00
Moonchild
5d76f35990
Merge pull request 'Initial implementation of readable streams' ( #2324 ) from dbsoft/UXP:readablestreams into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2324
2023-10-03 17:23:19 +00:00
Brian Smith
054f135a54
Issue #1442 - Part 26 - FetchStreamReader needs to cancel its reader when it encounters write errors.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1416879 Part 5
Also same fix as in Part 24 for FetchStream but in FetchStreamReader.
2023-10-03 01:45:08 -05:00
Brian Smith
5c8336d123
Issue #1442 - Part 25b - Second try that hopefully doesn't break Windows.
2023-10-02 18:38:02 -04:00
Brian Smith
0f0adfa1b4
Issue #1442 - Part 25 - Fix bustage on X11 platforms.
2023-10-02 18:08:46 -04:00
Brian Smith
ec38250eea
Issue #1442 - Part 24 - Prevent FetchStream from incorrectly running on the main thread.
...
This prevents a deadlock and JSContext related crashes, however this should eventually
be replaced by an EventTargetFor() call when the Dispatcher API is implemented.
Also now that ReadableStream appears stable, toggle the preferences true by default.
2023-10-02 04:42:24 -05:00
Moonchild
682e5a4727
Merge branch '2323-timerclamp-workers'
...
This resolves #2323
2023-10-01 22:08:45 +02:00
Moonchild
16e405f818
Issue #2323 - Part 3: Exclude chrome workers from worker timer clamping.
2023-10-01 20:54:48 +02:00
Moonchild
bfae2ed943
Issue #2323 - Part 2: Implement timer nesting and clamping for workers.
2023-10-01 19:42:45 +02:00
Botond Ballo
1337373ee1
Issue #2323 - Part 1: Add Min()/Max() methods to TimeDuration.
...
Just some helper functions to make time comparisons in the correct data
format easier.
See BZ 1321885
2023-10-01 19:37:49 +02:00
Moonchild
efc3e99b90
Merge pull request 'Fall back to 0 if setInterval interval not supplied' ( #2322 ) from martok/UXP-contrib:mr/2321-setInterval into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2322
2023-10-01 12:57:10 +00:00
Martok
eaf9a3cc57
Issue #2321 - Fall back to 0 if setInterval interval not supplied
2023-10-01 02:21:53 +02:00
Brian Smith
b7a5d73ba9
Issue #1442 - Part 23 - Align FetchStream with Firefox 68ESR.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1612308
https://bugzilla.mozilla.org/show_bug.cgi?id=1445587
Partial part 2 implementing synchronization changes.
2023-09-30 11:19:06 -05:00
Brian Smith
aa1caf5ade
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-09-29 15:34:10 -05:00
Brian Smith
bc4d5cec6a
Issue #1442 - Part 21 - Fix debug builds by removing an invalid assert.
2023-09-29 13:09:28 -05:00
Brian Smith
7d55641d43
Issue #1442 - Part 20 - FetchStream should not have an extra JS::Heap<ReadableStream>.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1390717
2023-09-29 09:25:52 -05:00
Brian Smith
3f799def4d
Issue #1442 - Part 19 - FetchStream must support multiple read requests.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1395220
2023-09-29 09:12:08 -05:00
Brian Smith
796863b719
Issue #1442 - Part 18 - Cycle collect FetchStreamReader.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 22:17:06 -05:00
Brian Smith
aced9bbc94
Issue #1442 - Part 17 - Creating FetchStream as a out param in order to avoid JS hazards
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 22:06:25 -05:00
Brian Smith
b1d111ab6b
Issue #1442 - Part 16 - Report stream errors during consumption.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 21:18:27 -05:00
Brian Smith
99c25d8e98
Issue #1442 - Part 15 - Setting the correct global when ReadableStream.getReader() is called.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 19:51:09 -05:00
Brian Smith
8a45238908
Issue #1442 - Part 14 - Starting body consuming and passing the JSContext down
...
from the binding entrypoints to where the ReadableStream could be read.
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 19:35:59 -05:00
Moonchild
1b588e0d73
Merge pull request 'Issue #2058 - Upgrade usrsctp library' ( #2297 ) from Basilisk-Dev/UXP-contrib:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2297
2023-09-28 23:22:41 +00:00
Brian Smith
c9020fed9c
Issue #1442 - Part 13 - Implement FetchStreamReader.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
2023-09-28 17:36:52 -05:00
Brian Smith
4c6e382f47
Issue #1442 - Part 12b - Allow idle worker shutdown while Cache/CacheStorage DOM objects exist, but block it during Cache operation.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1362444
Pre-requisite for Part 13.
2023-09-28 17:35:26 -05:00
Brian Smith
26cb9b0802
Issue #1442 - Part 12a - Allow idle worker shutdown to begin for an opt-in WorkerHolder mode.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1362444
Pre-requisite for Part 13.
2023-09-28 17:34:54 -05:00
Brian Smith
1fd5023fdc
Issue #1442 - Part 12 - Label FetchBody.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1363318
FetchSignal is not in our tree so this is a partial patch to get mOwner changes.
Pre-requisite for Part 13.
2023-09-28 16:54:19 -05:00
Brian Smith
8a0c7bde63
Issue #1442 - Part 11 - Response.body handling.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Use BufferSource in webIDL.
https://bugzilla.mozilla.org/show_bug.cgi?id=1337722
2023-09-28 14:05:55 -05:00
Moonchild
cc43ec658c
Merge pull request 'Intel Ion: Don't test for a 3-byte opcode in a 2-byte opcode predicate.' ( #2319 ) from dbsoft/UXP:ion-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2319
2023-09-28 14:25:56 +00:00
Moonchild
07df24f00f
Merge pull request 'Cherry-pick upstream libvpx fix for CVE-2023-5217' ( #2320 ) from Basilisk-Dev/UXP-contrib:libvpx-cve into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2320
2023-09-28 14:14:15 +00:00
Basilisk-Dev
ed7b08e608
Cherry-pick upstream libvpx fix
...
Backport of https://hg.mozilla.org/releases/mozilla-esr115/rev/5241232a3292943bd59ff1704eab60fee3cbc9d1
Addresses CVE-2023-5217
2023-09-28 09:49:10 -04:00
Brian Smith
1a429629d2
Issue #1442 - Part 10c - Use application/octet-stream for arrayBuffer in sendBeacon.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Pre-requisite for Part 11.
2023-09-27 23:40:02 -05:00
Brian Smith
03ec9c095b
Issue #1442 - Part 10b - Use nsIXHRSendable instead Blob/FormData/URLSearchParams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Pre-requisite for Part 11.
2023-09-27 23:22:06 -05:00
Brian Smith
24edfc1652
Issue #1442 - Part 10a - Unify body extraction in Fetch/Beacon/XHR.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1329298
Pre-requisite for Part 11.
2023-09-27 22:58:24 -05:00
Brian Smith
efd2b96387
Issue #1442 - Part 9: Stream shutdown handling.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 19:24:08 -05:00
Brian Smith
4a179ff885
Issue #1442 - Part 8: Fetch implementation of streams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
+worker-friendly pref checking for the DOM API.
2023-09-27 19:20:08 -05:00
Brian Smith
8c5a0f0de9
Issue #1442 - Part 7: Use of ReadableStream in WebIDL files.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 19:08:24 -05:00
Brian Smith
cc8f43bf79
Issue #1442 - Part 6: binding codegen naming alignment for Streams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 19:04:02 -05:00
Brian Smith
552d964ae7
Issue #1442 - Part 5: Implement WebIDL bindings for Streams.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-27 18:25:48 -05:00
Brian Smith
0099fc1627
Issue #1442 - Part 4: Add JSAPI functions for working with ReadableStream.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-09-27 17:33:34 -05:00
Brian Smith
8ce17f02ee
Issue #1442 - Part 3: Implement ReadableStream and associated classes in the JS engine.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-09-27 16:00:10 -05:00
Brian Smith
269a703200
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-27 14:29:07 -05:00
Brian Smith
582fd0dd81
Issue #1442 - Part 2: Add a run-time preference for toggling the streams API.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
2023-09-27 10:45:00 -05:00
Moonchild
395caa8780
[network] Refactor TransactionObserver::OnDataAvailable()
2023-09-27 16:37:30 +02:00
Brian Smith
f31471e689
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-09-27 09:36:44 -05:00
André Bargull
be4b71b580
[js] Handle dead wrappers
2023-09-27 15:23:57 +02:00
Moonchild
de91800956
Merge branch 'alloc-cleanup-work'
2023-09-27 00:53:54 +02:00
Moonchild
7a48dfc066
[memory] Guard OOM reporter from incorrectly reported (too small) size.
2023-09-26 21:07:29 +02:00
Moonchild
4769b2a9fa
[memory] Remove likely/unlikely duplication in mozalloc.
...
We already have this in mozilla/Likely.h, use that instead.
2023-09-26 21:02:11 +02:00
Moonchild
b12c222c61
[memory] Remove MOZALLOC_INLINE
...
MOZ_ALWAYS_INLINE_EVEN_DEBUG is always defined through
mozilla/Attributes.h, so the fallbacks are never used in practice.
2023-09-26 20:56:11 +02:00
Moonchild
2ac006763b
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-09-26 15:23:20 +02:00
Moonchild
3edbfa6b6e
Merge branch '2316-drawimage-svg-work'
...
Resolves #2316
2023-09-26 15:22:52 +02:00
Moonchild
fcb74a0fb6
Issue #2316 - Part 3: Clarify comment
2023-09-26 15:21:34 +02:00
Moonchild
bfda40bce9
Issue #2316 - Part 2: Add reftests
2023-09-26 15:15:45 +02:00
Moonchild
8b4aae99b4
Issue #2316 - Part 1: Use fallback element sizes for w/h-less SVG
...
Instead of completely failing the call, use the CSS specified intrinsic
default width/height of 300x150.
2023-09-26 15:15:31 +02:00
Basilisk-Dev
4e1d7760d5
Issue #2058 - add patches from dbsoft to fix Mac and FreeBSD builds
2023-09-25 18:22:49 -04:00
Moonchild
1b2961f93f
Merge pull request 'Replace libav's FFT functions with the ones from FFmpeg and remove now unused libav source files.' ( #2312 ) from trav90/UXP-contrib:media-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2312
2023-09-25 16:39:24 +00:00
Moonchild
8775eedca5
Merge pull request 'Implement WebAssembly sign extension opcodes.' ( #2315 ) from dbsoft/UXP:wasm-sign2313 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2315
2023-09-25 08:38:17 +00:00
Basilisk-Dev
8ffb592b72
Issue #2058 - restore FBSDID
2023-09-23 13:53:52 -04:00
trav90
522d8c66a5
Issue #2311 - Part 7 - Unset CONFIG_DCT and CONFIG_FFT
...
These functions aren't be needed at the moment and disabling them should fix builing on Windows.
2023-09-22 15:34:15 -05:00
Basilisk-Dev
7df5060161
Issue #2058 - fix OS defines for Windows builds
2023-09-22 16:17:40 -04:00
Basilisk-Dev
73a150b1c1
Issue #2058 - fix typo
2023-09-22 14:38:38 -04:00
Basilisk-Dev
89f280a78e
Issue #2058 - fix issues with sctp_bsd_addr.c memory allocation causing breakage
2023-09-22 14:36:28 -04:00
Brian Smith
6aeae2ba74
Issue #2313 - Implement WebAssembly sign extension opcodes.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1389461
2023-09-22 13:23:36 -05:00
Moonchild
5fd783135d
Issue #2307 - Follow-up: remove some missed SIMD scalar types.
2023-09-22 12:36:34 +02:00
Moonchild
1b2be9536f
Clobber and goanna version bump.
2023-09-22 10:00:52 +02:00
Moonchild
2ad1f8f08d
Merge branch 'simdjs-removal'
2023-09-21 10:26:10 +02:00
trav90
85734b9adf
Issue #2311 - Part 6 - Remove now unused libav source files
2023-09-20 17:17:43 -05:00
trav90
2b46202164
IIssue #2311 - Part 5 - Only load function pointer in FFTBlock once
2023-09-20 17:16:35 -05:00
trav90
18ec63e459
Issue #2311 - Part 4 - Use FFTBlock from ffvpx instead of libav
2023-09-20 17:16:01 -05:00
trav90
004a3d003b
Issue #2311 - Part 3 - Add accessor for ffvpx real DFT functions
2023-09-20 17:15:46 -05:00
trav90
9c72ce666b
Issue #2311 - Part 2 - Link ffmpeg real DFT functions
2023-09-20 17:15:23 -05:00
trav90
47f213c878
Issue #2311 - Part 1 - Add ffmpeg's own floating point real FFT functions to ffvpx
...
Instead of using Libav's.
2023-09-20 17:14:31 -05:00
Moonchild
d2eb2ce9f4
Merge branch 'master' into simdjs-removal
2023-09-20 11:56:31 +02:00
Moonchild
dba1e36601
Merge pull request 'Collection of BigInt related fixes from working on Proton Mail issue' ( #2310 ) from dbsoft/UXP:bigint-incdec into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2310
2023-09-20 00:40:04 +00:00
Moonchild
bb39e1e38f
Issue #2307 - Part 3b: Fix build bustage.
2023-09-19 16:53:12 +02:00
Moonchild
7003ea7dc4
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-18 16:57:09 +02:00
Brian Smith
dca8417ba7
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Doubles in Ion.
2023-09-18 01:10:07 -05:00
Brian Smith
99184b1764
Issue #2308 & #1240 Follow-up - Replace JSOP_POS in ++/-- with JSOP_TONUMERIC.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1519135
2023-09-17 12:39:03 -05:00
Brian Smith
8f26f1a873
Issue #2308 & #1240 Follow-up - Fill in missing JSOP_INC/DEC cases for Ion on Intel32/64.
2023-09-17 06:21:49 -05:00
Brian Smith
53ce814858
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-17 04:23:57 -05:00
Brian Smith
33d4be58a5
Issue #2308 & #1240 Follow-up - Introduce new increment and decrement operations.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1508521
2023-09-16 05:38:42 -05:00
Moonchild
8635073418
Issue #2307 - Part 2b: Remove superfluous dev comment
2023-09-13 17:09:54 +02:00
Moonchild
f122b231e5
Issue #2309 - Cherry-pick upstream libwebp fix.
...
Backport of: https://chromium.googlesource.com/webm/libwebp.git/+/2af26267cdfcb63a88e5c74a85927a12d6ca1d76
Resolves #2309
2023-09-13 10:20:51 +02:00
Moonchild
1a7f79ef9a
Issue #2307 - Part 2: Move SIMD code generation to masm methods
2023-09-12 23:28:49 +02:00
Moonchild
281497201e
Issue #2307 - Part 1: Extend masm with the pmovmskb SSE2 instruction.
2023-09-12 23:26:44 +02:00
Brian Smith
dce6745dec
Issue #2308 - Fix JSON BigInt regressions.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1522433
2023-09-11 04:01:25 -05:00
Moonchild
a9bb437550
Merge pull request 'Make Gecko Media Plugins optional when not building EME or WebRTC' ( #2301 ) from mrnhmath/UXP:optgmp3 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2301
2023-09-09 19:09:32 +00:00
Brian Smith
01ee4539cb
Issue #2282 - Performance observer safety checks.
...
Both fixes from later revisions, without the Dispatch API changes.
2023-09-07 15:31:26 -05:00
Brian Smith
47fbe9552a
Issue #2026 Follow-up: Fill in missing BigInt64 cases in js::IsTypedArrayConstructor().
...
Hopefully fixes RSA errors on ProtonMail.
2023-09-06 11:18:05 -05:00
Moonchild
ee97a5dad4
[DOM] Follow-up: fix refcounting in FilePickerParent.
2023-09-01 09:54:03 +02:00
Matheus Marinho and Moonchild
c94c303447
Make Gecko Media Plugins optional when not building EME or WebRTC
...
Co-authored-by: Moonchild <moonchild@palemoon.org >
2023-08-31 17:04:44 -03:00
Basilisk-Dev
a15cbf9256
Issue #2058 - apply additional patches from dbsoft for OS defines
2023-08-31 08:44:34 -04:00
Moonchild
7a4b850150
[gfx] Check if we have a valid texture before trying to delete it.
2023-08-31 10:02:50 +02:00
Moonchild
7de2732e7f
[DOM] Make IORunnable::mFilePickerParent into a RefPtr.
2023-08-30 19:30:17 +02:00
Moonchild
f20e3f4dd1
[network] Hold a strong ref to mChannel in OpenConn
2023-08-30 18:59:32 +02:00
Moonchild
ca691c8d2d
[DOM] Deny web notifications if principal can't resolve.
2023-08-30 17:46:49 +02:00
Moonchild
226f97e2f4
[network] Add locking around access to WebSocketChannel::mPMCECompressor
2023-08-30 16:38:42 +02:00
Moonchild
7fdc866b5a
[XPCOM] Add xll files to the executables list.
2023-08-30 12:48:43 +02:00
Moonchild
e112df8849
Merge pull request 'Implement ergonomic brand check' ( #2300 ) from martok/UXP-contrib:mr/ergo-brand-check into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2300
2023-08-30 09:36:31 +00:00
Moonchild
45ec6b3a86
Issue #2293 - Add preferences to disable CSS animation/transition props.
...
This resolves #2293
2023-08-30 10:52:52 +02:00
Martok
8b9d69f912
Issue #2298 - Support '#x in obj' ergonomic brand check syntax
2023-08-30 09:38:14 +02:00
Martok
92ecaaeaa9
Issue #2298 - Carry private-ness of names through ParseNodeHandler
2023-08-30 09:38:13 +02:00
Basilisk-Dev
ebf4f559e0
Issue #2058 - Apply patches from dbsoft to fix Mac and FreeBSD builds
2023-08-28 12:54:45 -04:00
Basilisk-Dev
d9eb5d3e2b
Issue #2058 - Fix build issues in DataChannel.cpp after sctp upgrade
2023-08-26 23:09:27 -04:00
Basilisk-Dev
9e85eb2816
Issue #2058 - Cleanup obsolete code from netwerk/sctp
...
Port of commit 84fa3f9f72
2023-08-26 22:19:37 -04:00
Basilisk-Dev
32ef10e763
Issue #2058 - Initial update of usrsctp library
2023-08-26 21:58:02 -04:00
Moonchild
ac24db13ef
Merge pull request 'Bug 1274518 - Add IPDL preprocessing support' ( #2296 ) from mrnhmath/UXP:ipdlprep into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2296
2023-08-26 07:07:10 +00:00
Matheus Marinho and Kai-Zhen Li
8ac0957072
Bug 1274518 - Add IPDL preprocessing support
...
Co-authored-by: Kai-Zhen Li <seinlin.maung@gmail.com >
2023-08-25 17:18:15 -03:00
Moonchild
7178ca44ef
Merge pull request 'Add --enable-irc and --enable-inspector to old.configure' ( #2292 ) from mrnhmath/UXP:extflags into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2292
2023-08-19 05:05:16 +00:00
Matheus Marinho
178a43839d
Add --enable-irc and --enable-inspector to old.configure
2023-08-18 23:23:51 -03:00
Moonchild
da947c5045
Merge pull request 'Hunspell must be built into libxul on SunOS.' ( #2291 ) from athenian200/UXP:sunos_hunspell_fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2291
2023-08-18 21:35:17 +00:00
athenian200
6d65f1d192
Issue #2290 - Hunspell must be built into libxul on SunOS.
2023-08-18 10:29:49 -05:00
Moonchild
4ddaf0f490
Merge pull request 'Implement Address Sanitizer for MSVC, Leak, Undefined Behavior and other debug fixes.' ( #2288 ) from dbsoft/UXP:sanitize into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2288
2023-08-16 07:08:19 +00:00
Brian Smith
ff81f4969c
Issue #2266 - Part 2 - Add Leak and Undefined Behavior Sanitizer support.
...
Also fix building on FreeBSD and Linux, from the previous commit.
2023-08-14 23:40:46 -05:00
Brian Smith
369ba2e7d6
Issue #2266 - Part 1 - Allow MSVC and potentially GCC to use Address Sanitizer on Windows.
...
Check for WINNT instead of CLANG-CL, except for the Blacklist that isn't supported by MSVC.
Neither CLANG-CL nor MSVC require -fsanitize=address on the link phase.
2023-08-14 19:56:06 -05:00
Brian Smith
a0fb8c06de
Issue #2255 - Disable untested code path in Stopwatch.(h|cpp).
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1325299
Multiprocessor support in Windows returned bogus times causing debug asserts.
This may or may not be related to the issue but found it trying to debug it.
2023-08-14 13:08:41 -05:00
Brian Smith
d16b014115
No Issue - Fix building WebRTC/Basilisk with --enable-debug
...
A bogus MOZ_ASSERT was added at some point, this should make it work.
2023-08-14 13:06:15 -05:00
Moonchild
3bb0c18a59
Merge branch '2284-flexpercentage-work'
2023-08-14 10:34:09 +02:00
Moonchild
53b548e31a
Issue #2284 - Adjust some in-content CSS to account for flex definite-sizing change.
...
As of this change, flex items in a vertical flex container will sometimes
be considered to have "indefinite" sizes, i.e. percent sizes in them will
no longer resolve.
To work around this, they need to provide a definite flex-basis (e.g. as
part of the "flex" shorthand property) if we want percent sizes to
resolve (instead of being treated as "auto") inside of them.
2023-08-13 22:09:27 +02:00
Moonchild
2a6187709b
Issue #2284 - Update reftest for behaviour change.
...
I've verified this against Edge-latest.
2023-08-13 22:06:13 +02:00
Moonchild
cd98dce5fa
Issue #2284 - Add exception for flex/grid items resolving percentages against parent.
...
This folds in BZ bugs 1578586 and 1092007 part 2.
2023-08-13 22:04:54 +02:00
Moonchild
9bfeaab2e6
Merge pull request 'Fix RegEx GC crash' ( #2287 ) from martok/UXP-contrib:mr/2172-regex-gc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2287
2023-08-10 06:05:46 +00:00
Martok
3b32a66cb6
Issue #2172 - add null zone sanity checks
2023-08-09 22:41:30 +02:00
Martok
edfb29e1a2
Issue #2172 - ensure pointers in RegExpShared are updated after GC compacting
2023-08-08 19:36:21 +02:00
Martok
41f38134f1
Issue #2172 - add missing RegExpShared TraceKind declaration
2023-08-08 19:36:13 +02:00
Moonchild
20ac6059ce
Merge pull request 'Several low risk fixes and improvements' ( #2286 ) from dbsoft/UXP:fixes into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2286
2023-08-07 07:36:53 +00:00
Brian Smith
d9aa76f5c2
No Issue - Fix building with --enable-js-lto
...
Needed to include jscntxt.h due to de-unified building.
2023-08-06 23:22:09 -05:00
Brian Smith
9dda91e5cb
Issue #2285 - Ensure we don't try to treat non-DOM-Node event targets as such,
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1440809
Fix crash on https://beeper.notion.site
2023-08-06 22:35:51 -05:00
Brian Smith
39d52370dc
Issue #2026 - Follow-up: Support Big(U)Int64Array in crypto.getRandomValues.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1718932
2023-08-06 22:28:22 -05:00
Moonchild
8b1222c5f8
Merge pull request 'Properly implement Performance Timeline Level 2 w3c spec.' ( #2283 ) from dbsoft/UXP:perf-l2-2282 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2283
2023-08-06 14:21:18 +00:00
Brian Smith
e748187360
Issue #2282 - - Properly implement Performance Timeline Level 2 w3c spec.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1539006
Do not throw from PerformanceObserver.observe when none of the entryTypes are known.
https://bugzilla.mozilla.org/show_bug.cgi?id=1403027
Implement PerformanceObserver::takeRecords().
https://bugzilla.mozilla.org/show_bug.cgi?id=1436692
"server" is not a valid PerformanceEntry type.
https://bugzilla.mozilla.org/show_bug.cgi?id=1463065
Fix a null ptr crash in PerformanceObserver::Observe.
https://bugzilla.mozilla.org/show_bug.cgi?id=1631346
2023-08-02 02:41:40 -05:00
Moonchild
13cca807e6
Merge pull request 'Implement Big(U)Int64Array and fill in some missing BigInt pieces.' ( #2280 ) from dbsoft/UXP:bigint64-2026 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2280
2023-07-29 08:58:35 +00:00
Brian Smith
7f8ea9ae2f
Issue #1240 - Follow-up: Add missing JSVAL_TYPE_BIGINT cases in JitFrames.cpp.
...
As pointed out by roytam1 during testing with Discord.
2023-07-28 19:57:55 -05:00
Brian Smith
1851f19271
Issue #1240 - Follow-up: Fix incorrect values in Number() constructor.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1466893
Our code base was using the return value to create the Number object.
However with the BigInt changes, it is no longer stored in rval, use args[0].
2023-07-28 19:55:53 -05:00
Brian Smith
3dc659b86d
Issue #2026 - Part 4 - Fill in missing dense elements case and fix a comment.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1456569
Skipped this during the initial implementation, not sure when or if this code path
is used, but I figure it should be there just in case.
Also fix debug builgs by removing an no longer valid MOZ_ASSERT.
2023-07-28 19:54:06 -05:00
Brian Smith
83daf83360
Merge branch 'bigint-devtools-test' of https://repo.palemoon.org/martok/UXP-contrib into bigint64-2026
2023-07-28 19:47:20 -05:00
Martok
5a7348a8d1
Issue #2026 - Part 3c - Add BigInt Devtools support. (new frontend)
2023-07-29 01:39:08 +02:00
Martok
fa32034f30
Issue #2026 - Part 3b - Add BigInt Devtools support. (legacy frontend)
2023-07-28 23:35:59 +02:00
Brian Smith
56a82b8ed4
Issue #2026 - Part 3a - Add support for BigInt in devtools. (Server side)
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1527867
2023-07-25 02:27:03 -05:00
Brian Smith
7a5b68c98e
Issue #2026 - Part 2b - Format BigInts representable as int64_t without first converting them to strings.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1543677
2023-07-25 01:59:56 -05:00
Brian Smith
1edc4e41d3
Issue #2026 - Part 2a - Support BigInt in NumberFormat and toLocaleString.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1543677
2023-07-25 01:41:42 -05:00
Brian Smith
edacbbd965
Issue #2026 - Part 1 - Implement BigInt64 and BigUint64Array.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1456569
2023-07-24 23:30:27 -05:00
Moonchild
a3096d09f9
Update UXP/Goanna version now BigInt has landed.
2023-07-25 01:02:59 +02:00
Moonchild
b4ddadd8b9
Merge pull request 'Add BigInt primitive type.' ( #2276 ) from dbsoft/UXP:bigint-merged into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2276
2023-07-23 23:38:53 +00:00
Brian Smith
f359533b82
Issue #1240 - Part 11 - Fix several issue reported on review.
...
Skip over block delimiters when parsing BigInt literals.
Update BigInt hashing to account for the possibility of moving GC.
https://bugzilla.mozilla.org/show_bug.cgi?id=1531018
Make HashableValue comparison of BigInts infallible.
https://bugzilla.mozilla.org/show_bug.cgi?id=1530406
Fix BigInt constructor API CallArgs usage.
https://bugzilla.mozilla.org/show_bug.cgi?id=1526279
2023-07-23 15:36:19 -05:00
Brian Smith
94609cf97b
Issue #1240 - Part 10 - Implement minimal Ion support for BigInt.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1507484
Implement IC support for BigInt.
https://bugzilla.mozilla.org/show_bug.cgi?id=1522431
2023-07-21 20:25:52 -05:00
Brian Smith
6257513c7e
Issue #1240 - Part 9 - Fix incorrectly parsing decimal BigInt 0n.
...
The decimal parser strips leading 0s, so prevent tokenbuf being empty.
2023-07-21 14:20:11 -05:00
Brian Smith
0587c85114
Issue #1240 - Part 8 - Fix incorrect asserts with debug enabled.
...
Fix BigInt errors in remainder operations
https://bugzilla.mozilla.org/show_bug.cgi?id=1524136
Also fix 2 debug asserts in fallthroughs due to missing BigInt cases.
2023-07-21 04:10:47 -05:00
Brian Smith
f4c134225c
Issue #1240 - Part 7 - Handle BigInt values in XPCVariant code.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1603055
2023-07-20 17:25:46 -05:00
Brian Smith
24e4a09270
Issue #1240 - Part 5g - Implement BigInt comparison operators.
...
Implement BigInt support for equality operators.
https://bugzilla.mozilla.org/show_bug.cgi?id=1486173 Part 3.
Implement BigInt support for relational comparison operators.
https://bugzilla.mozilla.org/show_bug.cgi?id=1492669
2023-07-19 17:10:33 -05:00
Brian Smith
f193a4a7dc
Issue #1240 - Part 6c - Implement asIntN and asUintN methods for BigInt values.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1501104
2023-07-19 16:39:34 -05:00
Brian Smith
2b198142f0
Issue #1240 - Part 6b - Use ToIndex when constructing TypedArray with length argument.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1317383 Part 2.
2023-07-19 16:36:58 -05:00
Brian Smith
700bead8ba
Issue #1240 - Part 6a - Implement BigInt.prototype.toLocaleString.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 5.
2023-07-19 16:00:07 -05:00
Brian Smith
f734e4f724
Issue #1240 - Part 5f - Add DataView methods for BigInt access.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1528582
2023-07-19 15:27:59 -05:00
Brian Smith
32acbcb96b
Issue #1240 - Part 5e - BigInt bitwise operators.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1490387
2023-07-19 14:32:00 -05:00
Brian Smith
0da765e156
Issue #1240 - Part 5d - Use the radix when parsing BigInts.
...
Fixes Hex, Octal and Binary BigInt literal parsing.
Previously it was only parsing in decimal.
2023-07-19 03:02:35 -05:00
Brian Smith
a816a6b6de
Issue #1240 - Part 5c -Implement ToInt32OrBigInt operation.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1490387
2023-07-19 03:00:43 -05:00
Brian Smith
37e02a4bd4
Issue #1240 - Part 5b - BigInt support for basic arithmetic operations.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1471134 Parts 3-5.
2023-07-19 02:19:32 -05:00
Brian Smith
93a10f9e2f
Issue #1240 - Part 5a - BigInt to Number conversion.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1466893
2023-07-19 02:17:04 -05:00
Brian Smith
94240c9002
Merge branch 'master' into bigint-merged
2023-07-18 20:25:54 -05:00
Brian Smith
069fa50258
Issue #1240 - Part 4 - Implement parser support for BigInt literals.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1505849
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1456568
Un-result-ified the BigInt XDR code, so we can enable it.
https://bugzilla.mozilla.org/show_bug.cgi?id=1419094
Uninitialised memory read with BigInt right-shift
https://bugzilla.mozilla.org/show_bug.cgi?id=1679003
2023-07-18 20:23:02 -05:00
Moonchild
7175868124
Merge pull request 'Fix intermittent crash on MacOS 14 Sonoma Beta 3.' ( #2274 ) from dbsoft/UXP:sonomafix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2274
2023-07-17 18:38:50 +00:00
Brian Smith
8c25550baf
No Issue - Fix intermitted crash on MacOS 14 Sonoma Beta 3.
...
Not sure why this is happening but mIOSurface is nullptr.
If we just skip binding, it will be created on the next call to BeginUpdate.
2023-07-17 02:01:35 -05:00
Moonchild
cd0c08484d
Merge pull request 'Fix cloning of self-hosted functions' ( #2273 ) from martok/UXP-contrib:mr/canon-names into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2273
2023-07-14 16:31:37 +00:00
Martok
3c37b8857d
Issue #2271 - Use declared names of self-hosted functions for cloning
...
Ensure that cloning a self-hosted function always has access to the declared
name from the source and that it doesn't get lost on successive clones.
This is done by storing the declared name in an extended slot on rename, and
cloning it with the function.
Based-on: m-c 1546232
2023-07-13 13:57:43 +02:00
Martok
1eccb6f42a
Issue #2271 - Separate cloning of native and interpreted functions
...
Separate code paths make it easier to follow and specialize than a single
one-size-fits-all function.
Based-on: m-c 1405766, 1411954
2023-07-13 13:57:42 +02:00
Brian Smith
cb1aa7f456
Issue #1240 - Part 3c - Fast-forward to the V8 version of BigIntType.
...
Disabling some sections temporarily since the dependencies are not there yet.
Based on the following: https://bugzilla.mozilla.org/show_bug.cgi?id=1502797
https://bugzilla.mozilla.org/show_bug.cgi?id=1471134
https://bugzilla.mozilla.org/show_bug.cgi?id=1441098 Part 3 & 4
Add structured clone support for BigInt and Enable BigInt wrapping from DOM bindings.
https://bugzilla.mozilla.org/show_bug.cgi?id=1522738
2023-07-13 04:07:05 -05:00
Brian Smith
42cf583a57
Issue #1240 - Part 3b - Implement WrappingOperations.h for wraparound math operations & conversions.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1441657
Implement mozilla::WrappingMultiply.
Prerequisite for our V8 fast forward.
2023-07-13 03:27:12 -05:00
Brian Smith
3aeea5f9d0
Issue #1240 - Part 3a - Adjust mozilla::FloatingPoint<T>'s definition.
...
So only the barest details are specified for floating-point encodings,
with every other number, bit mask, &c. mathematically derived.
Also add a bunch of documentation comments.
https://bugzilla.mozilla.org/show_bug.cgi?id=1508725
Prerequisite for our V8 fast forward.
2023-07-13 03:02:29 -05:00
Brian Smith
b2ae4d3885
Issue #1240 - Part 2 - Define the BigIntObject class for BigInt wrapper objects.
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 3.
In our Part 3 we will fast forward to the V8 implementation skipping GMP.
2023-07-13 02:40:25 -05:00
Brian Smith
eb7a856c76
Issue #1240 - Part 1 - Define a new BigInt primitive type.
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 1.0.
However leaving out the --enable-bigint changes.
2023-07-13 01:59:24 -05:00
Moonchild
8e0e86face
Merge pull request 'Further enhance Maybe<> and use it in the Performance API' ( #2272 ) from dbsoft/UXP:maybe-2255-deux into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2272
2023-07-13 05:54:23 +00:00
Brian Smith
0980b1e936
Issue #2255 - Fix build bustage on Linux.
...
Need #include <utility> to ensure std::forward is available.
2023-07-12 17:52:59 -05:00
Brian Smith
f0b08a209d
Issue #2255 - Use Maybe<> in the Performance API.
2023-07-12 14:25:06 -05:00
Brian Smith
3284e449a7
Issue #2255 - Add support for Maybe<T&>
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1620568
Make Maybe<T>::emplace() work when T is const
https://bugzilla.mozilla.org/show_bug.cgi?id=1335780
2023-07-12 14:24:28 -05:00
Moonchild
377625e539
Merge pull request 'Enhance Mac Packaging via mozconfig options and fix ARM Mac debug builds.' ( #2269 ) from dbsoft/UXP:macbundle-2268 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2269
2023-07-11 15:53:23 +00:00
Brian Smith
eae076209f
Issue #2268 - Fix Mac packaging by making the individual parts configurable.
...
Add --with-macbundle-entitlement= to specify alternate entitlements or "none"
Add --with-macbundle-type=hybrid to use the old DMG format.
2023-07-07 17:46:55 -05:00
Brian Smith
7a2f114334
No Issue - Fix debug builds on ARM Mac.
...
mach_override used by the IO Poisoner used in debug mode is not support on ARM.
https://bugzilla.mozilla.org/show_bug.cgi?id=1658385
2023-07-07 17:38:09 -05:00
Moonchild
af5dbfc120
[XPCOM] Win: Update executable extension list
2023-07-05 22:08:40 +02:00
Moonchild
3d87998c59
[DOM] Filter out symlinks for webkitdirectory.
...
This is effectively a back-out of the following patches from Bug 1274959
except we add comments and test coverage:
- Part 1 which made the DirectoryListingTask include symlinks in the
results as exposed by Directory.getFilesAndDirectories.
- Part 3 which made GetFilesHelper include symlinks in the results.
Test coverage for getFilesAndDirectories is provided by
dom/filesystem/tests/test_basic.html by way of changes to its included
file dom/filesystem/tests/filesystem_commons.js and changes to the
createTreeFile helper in dom/filesystem/tests/script_fileList.js.
Test coverage for GetFilesHelper is provided by
dom/filesystem/tests/test_webkitdirectory.html and changes to the
createTestFile helper in dom/filesystem/tests/script_fileList.js.
Commenting out either of the `isLink` test in the relevant C++ code will
cause the given tests to fail on non-windows platforms.
2023-07-05 21:55:00 +02:00
Moonchild
6f46768035
[network] Prepare for requiring Authorization in CORS ACAH preflight
...
The Authorization header with a JSON Web Token (JWT) can be sent via
XMLHttpRequest without explicit authorization via Access-Control headers.
According to the spec, this must always explicitly be mentioned in ACAH
request headers and isn't allowed to be wildcarded. However, nobody
currently obeys this rule and many websites are misconfigured because
Chromium and Firefox always allowed it.
This patch adds the more stricter code but keeps it behind an #ifdef 0
to be released later on if and when there is enough consensus on the web
to obey this spec. This patch explicitly avoids the added complexity
Mozilla added to educate web devs since our role in that respect is not
significant. it's not preffed and it won't throw an explicit deprecation
warning.
See Mozilla bugs 1687364 and 1841019.
2023-07-05 19:27:03 +02:00
Moonchild
b98ca4be18
Merge pull request 'Simplify and enhance Maybe and Some().' ( #2267 ) from dbsoft/UXP:maybesome-update into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2267
2023-07-04 21:17:52 +00:00
Brian Smith
d9c5b3bde5
Issue #2255 & #1240 - Simplify and enhance Maybe and Some().
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1325351
This is a prerequisite for our BigInt V8 fast forward and potential #2255 fix.
2023-07-04 13:58:36 -05:00
Moonchild
b3f6b7a224
[multiple] Update Intl tests.
2023-07-02 11:36:47 +02:00
Moonchild
05d58b4aa1
Issue #1656 - Follow-up: Re-nuke the vim lines introduced in #2265
2023-07-02 10:28:09 +02:00
Moonchild
90aaa1fdfb
Merge pull request 'Intl API Updates' ( #2265 ) from martok/UXP-contrib:intl-upgrades into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2265
2023-07-02 08:18:10 +00:00
Moonchild
e40bea1e04
Merge pull request 'Improve incremental GC sweeping' ( #2264 ) from gcsweep-work into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2264
2023-07-02 08:16:54 +00:00
Martok
569f23eb6a
Issue #2046 - Implement Intl.DateTimeFormat's date-/timeStyle and hourCycle options
...
- remove mozExtensions flag and expose to client code
Based-on: m-c 1557718
2023-06-30 00:01:36 +02:00
Martok
af47a256b5
Issue #1819 - Further align Intl.Locale to spec
...
- Reference updates (UTS 35)
- variant subtag and transform extension canonicalisation
2023-06-30 00:01:35 +02:00
Martok
e96f965422
Issue #2259 - Performance improvements for LanguageTag parsing
...
- parsing: dont normalise things that don't need to be normalised anymore:
extension, private-use, variant, language, script, and region subtags
- Add missing() and present() methods to LanguageSubtag
- Change mozilla::Range to mozilla::Span for slightly better code
Based-on: m-c 1592588
2023-06-30 00:01:35 +02:00
Martok
7c3aa6a8b6
Issue #2259 - Performance improvements in Locale
...
- Move BestAvailableLocale function to C++
- Move default locale computation to C++
- Add available-locales set to SharedIntlData
- Remove separate sets for DateFormat and NumberFormat available locales.
Based-on: m-c 1373089
2023-06-30 00:01:35 +02:00
Martok
1a9d6d6372
Issue #1819 - Implement Intl.Locale proposal
...
This is according to spec for the mozilla71 cycle, a follow-up will further adjust to spec.
- Add Intl.Locale as native C++
- Port Unicode BCP 47 locale identifier parser to C++
- Port language tag parser to C++
- adjust make_intl_data to generate the data
Based-on: m-c 1433303, 1570370
2023-06-30 00:01:35 +02:00
Martok
2f940bdc9d
Issue #2259 - process Unicode langtags and locale identifiers according to BCP 47
...
Major spec change: text references are to BCP47 (not the implementing RFCs) and
the single source of truth is now Unicode CLDR.
- Switch from IANA to CLDR for make_unicode
- Update grandfathered tag handling directly in the parser
- Don't support extlang, irregular, privateuse or 4-letter subtags
- Adjust comments to refer to Unicode BCP 47 locale identifiers, remove RFC 5646
- Canonicalize/order langtags correctly
- Tokenize BCP47 in reusable class
Based-on: m-c 1407674(partial), 1451082, 1530320, 1522070, 1531091
2023-06-30 00:01:34 +02:00
Martok
6808e659ad
Issue #2195 - Add support for hourCycle to Intl.DateTimeFormat
...
Based-on: m-c 1386146, 1430809
2023-06-30 00:01:34 +02:00
Martok
371ae1639a
Issue #2259 - Improve ResolveLocale performance when initializing the default Intl objects
...
Based-on: m-c 1365650
2023-06-30 00:01:27 +02:00
Martok
33ec3d04f2
Issue #2259 - Support Unicode extensions with multiple value subtags in BCP47 language tags
...
Based-on: m-c 1321789
2023-06-30 00:01:18 +02:00
Martok
f168e0afe9
Issue #2259 - Reimplement String.prototype.toLocale{Lower,Upper}Case per ECMAScript Intl specification
...
- Update make_unicode to output SpecialCasing
- Handle special casing
- Use realloc instead of malloc when resizing a newly created string buffer
Based-on: m-c 1318403, 1431957
2023-06-29 23:05:33 +02:00
Martok
9eb285a9fb
Issue #2259 - Implement caseFirst option in Intl.Collator
...
Based-on: m-c 866473
2023-06-29 23:03:12 +02:00
Martok
bbe3b8e12f
Issue #2046 - Introduce mozIntl.DateTimeFormat with mozExtensions
...
Based-on: m-c 1329904
2023-06-29 23:02:37 +02:00
Martok
73c366766a
Issue #2259 - Update Intl.* Object-ness to ECMA-402, 4th edition
...
- turn each Intl object into a NativeObject subclass
- create them as PlainObject
- ensure correct type is passed in self-hosted code
- implement legacy constructor semantics for DateTime&NumberFormat
- store internals on object slot instead of JS WeakMap
Based-on: m-c 1328386, 1332604
2023-06-29 23:02:11 +02:00
Martok
388733cd1d
Issue #2259 - Introduce helper for self-hosted hasOwnProperty calls in intl
2023-06-29 22:27:29 +02:00
Martok
35f1a49cf2
Issue #2259 - Adjust self-hosted Array.prototype.sort to ES2018
...
The comparator to ArraySort must be optional also in self-hosted code, where calling the
implementation directly is generally faster than calling between JS and C++ multiple times.
2023-06-29 22:27:29 +02:00
Martok
c2019fa28c
Issue #2259 - Add JS::StackGCVector and JS::RootedVector
...
Based-on: m-c 1521732/{1,3}, 1527881
2023-06-29 22:27:29 +02:00
Martok
bed754c21c
Issue #2259 - Add mozilla::Result<V, E> and JS::Result<> for fallible return values
...
Based-on: m-c 1283562, 1277368/1, 1324828
2023-06-29 22:27:28 +02:00
Martok
85efbc0c1e
Issue #2259 - Add mozilla::Vector -> mozilla::Span implicit conversion
...
Based-on: part of m-c 1578339
2023-06-29 22:27:18 +02:00
Martok
93bd7fc61e
Issue #2259 - Add missing IsAscii* helper functions in mozilla/TextUtils.h
2023-06-29 22:18:07 +02:00
Martok
1ec5d757e6
Issue #1969 Follow-Up: Error reporting arguments in RelativeTimeFormat/DateTimeFormat
2023-06-29 22:18:07 +02:00
Moonchild
1a3f3da99d
Fix debug builds
2023-06-28 19:54:07 +02:00
Moonchild
b238bb079f
Avoid TLS lookups when checking if zones need to be marked for GC.
...
This converts the fromPointer() calls to an object cast to (hopefully)
avoid the GC crashes. Logic is reversed from MustSkipMarking to
ShouldMark with appropriate renames.
2023-06-27 18:39:24 +02:00
Moonchild
c3d4cec8ad
Simplify incremental GC sweeping
...
Splitting several parts of `SweepPhase` into constituent parts to
separate out sweeping code from code that handles yielding to the
mutator and resuming.
2023-06-27 03:04:39 +02:00
Moonchild
a666c05d68
Merge pull request 'Build UXP with C++14 by default' ( #2263 ) from martok/UXP-contrib:build-cpp14 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2263
2023-06-26 09:36:27 +00:00
Martok
14836b0c17
Issue #2262 - Build with C++14 by default
...
Including infrastructure changes to ensure correct opts for future changes.
Based-on: m-c 1325632, 1418047, 1418573
2023-06-21 22:18:07 +02:00
Moonchild
30829b7a07
Merge pull request 'Remove support for "experiment" type extensions' ( #2261 ) from FranklinDM/UXP-contrib:work_telemetry-remove-experiment-extensions into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2261
2023-06-20 09:31:08 +00:00
Moonchild
2fe6bb5c36
Merge pull request 'Follow-up: Print leaking class name and remove crash reporter dependency' ( #2260 ) from FranklinDM/UXP-contrib:work_js-1691-followup-1 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2260
2023-06-20 09:30:39 +00:00
FranklinDM
773cbb1a3e
Issue #21 - Follow-up: Remove experiment category images
2023-06-19 21:59:39 +08:00
FranklinDM
5f6b2407e7
Issue #21 - Part 3: Remove experiments localization
...
This also removes bits from about:support that weren't removed in bf6bb142fc .
2023-06-19 21:55:23 +08:00
FranklinDM
adfb8133d1
Issue #21 - Part 2: Remove experiment extension assets and styling
2023-06-19 21:55:22 +08:00
FranklinDM
559d2ed26f
Issue #21 - Part 1: Remove experiments base code from the Add-ons Manager
...
The experiments manager was already removed in bf6bb142fc and this was imported dead code from Tycho AM.
2023-06-19 21:55:21 +08:00
Moonchild
2004256c89
No issue - Update SQLite lib to 3.42.0
2023-06-19 15:34:01 +02:00
FranklinDM
32751e3d8f
Issue #1691 - Follow-up: Print leaking class name and remove crash reporter dependency
2023-06-19 15:15:47 +08:00
Moonchild
c11311fd5b
No issue - Set the default for incremental cycle collector to be off.
...
Negative performance impact if enabled.
2023-06-04 17:15:36 +02:00
Moonchild
4253a2a893
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-01 18:45:35 +02:00
Moonchild
6e35a8566e
Issue #2256 - Implement Object.hasOwn(object, property)
...
This is a convenience access function to hasOwnProperty.
Trivial, self-hosted implementation providing the interface to the
already existing hasOwnProperty cpp function with additional toObject
for spec compliance.
Resolves #2256
2023-05-29 22:47:26 +02:00
Moonchild
281a8854d0
Merge pull request 'Fix crashes and assertions involving ::slotted() and ancestor matching' ( #2253 ) from FranklinDM/UXP-contrib:work_css-slotted-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2253
2023-05-23 13:32:31 +00:00
Moonchild
370e66ecce
Merge pull request 'Prevent crash when attempting to load a script with execution disallowed.' ( #2254 ) from dbsoft/UXP:noscript2252 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2254
2023-05-23 13:28:22 +00:00
Brian Smith
beabbde706
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-05-21 07:55:37 -05:00
FranklinDM
ac5101015f
Issue #1592 - Follow-up: Ensure topmost scope marker is cleaned up
2023-05-21 19:01:42 +08:00
FranklinDM
0627dc7639
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-05-21 19:01:42 +08:00
FranklinDM
c58f825821
Issue #2250 - Part 1: Return early if the element being tested for is likely an ancestor and does not have an assigned slot
2023-05-21 19:01:41 +08:00
Moonchild
e4eb31879f
Merge pull request 'Ensure jit_ioncheck{1|2|3}_deunified_sources in js/src/moz.build is defined.' ( #2248 ) from jobbautista9/UXP:2221-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2248
2023-05-17 11:09:09 +00:00
Job Bautista
709d0bde73
Issue #2221 - Follow-up: Simplify jit_ioncheck{1|2|3}_deunified_sources assignment.
2023-05-17 19:02:53 +08:00
Moonchild
2a730d59f9
Merge pull request 'Implement Array find from last.' ( #2247 ) from jobbautista9/UXP:array-findlast into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2247
2023-05-17 10:52:33 +00:00
Job Bautista
5ee57767e0
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-05-17 18:13:48 +08:00
Job Bautista
61d8ec5478
Issue #2246 - Implement Array find from last.
...
Based on the implementation from Mozilla bug 1704385.
2023-05-17 17:21:08 +08:00
Moonchild
3f09edfde0
Merge pull request 'Implement geometry .from* static constructors' ( #2242 ) from jobbautista9/UXP:2241-fromrect-nodouble into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2242
2023-05-14 22:05:31 +00:00
Moonchild
b116ab7a1e
Merge pull request 'Implement partial support for calc-in-color' ( #2244 ) from FranklinDM/UXP-contrib:work_css-hack-calc-in-color into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2244
2023-05-14 22:03:43 +00:00
FranklinDM
ddf3f39070
Issue #1765 - Part 3: Provided token type should be used in LookForTokenType
...
I didn't realize this immediately after moving the code into a method. Oops.
2023-05-14 18:31:21 +08:00
FranklinDM
e56b7b826d
Issue #1765 - Part 2: Implement calc() parsing inside rgb/a() and the non-hue component of hsl/a()
...
This also adds a new helper method for checking the type of tokens that will be parsed after the current token, which is useful for determining the unit of values inside calc() functions.
Partially based on https://github.com/roytam1/UXP/commit/8a0897d23f5b51526f8a2c6ef63cb26968e6b985
2023-05-13 19:22:42 +08:00
FranklinDM
19650c6f8a
Issue #1765 - Part 1: Move ReduceNumberCalcOps struct up higher, rename IsCSSTokenCalcFunction to CSSParserImpl::IsCalcFunctionToken
2023-05-13 19:22:42 +08:00
Job Bautista
d2a86d81f3
Issue #2241 - Part 7.2 Follow-up: Fix build bustage due to unified building in Basilisk.
...
Tag #80
2023-05-12 19:04:16 +08:00
Job Bautista
ccb51f2f40
Issue #2241 - Part 8: Remove non-working layout.css.DOM*.enabled prefs.
...
A follow-up to fdfe7a8245 .
2023-05-12 16:28:57 +08:00
Job Bautista
ecf05312e6
Issue #2241 - Part 7.2: Implement .fromRect and .fromQuad.
...
Backported from Mozilla bug 1558101.
2023-05-12 16:26:06 +08:00
Job Bautista
c7ca649bd1
Issue #2241 - Part 7.1: Implement .fromFloat{32/64}Array.
...
Backported from Mozilla bug 1558101.
2023-05-12 16:26:06 +08:00
Job Bautista
b2889d844f
Issue #2241 - Part 6: Implement DOMMatrix.fromMatrix.
...
Also fixes .multiply() to use DOMMatrixInit.
Backported from Mozilla bug 1560462.
2023-05-12 16:26:06 +08:00
Job Bautista
fdfe7a8245
Issue #2241 - Part 4&5 Follow-up: Fix WebIDL errors
...
Remove [Pref] attribute from Geometry interfaces as they're now exposed to web
workers too via Part 5.
Remove nonexistent toJSON objects erroneously added in Part 4.1.
2023-05-12 16:26:06 +08:00
Job Bautista
709c34a448
Issue #2241 - Part 5: Expose Geometry interfaces to web workers.
...
Exposes DOMMatrix, DOMPoint, DOMQuad, and DOMRect to workers.
Backported from Mozilla bug 1420580.
2023-05-12 16:26:05 +08:00
Job Bautista
0adb8cc71f
Issue #2241 - Part 4.3: Move devtools over to getBounds().
...
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate state,
but that should be OK for now.
Backported from Mozilla bug 1186265.
2023-05-12 16:26:05 +08:00
Job Bautista
286e18e40c
Issue #2241 - Part 4.2: Resurrect DOMQuad.bounds, but deprecated.
...
This also forces DOMQuad.toJSON() to only return the points.
Backported from Mozilla bug 1186265.
2023-05-12 16:26:05 +08:00
Job Bautista
4c2a1920b8
Issue #2241 - Part 4.1: Get DOMPoint, DOMQuad, DOMRect, DOMMatrix a bit closer to spec.
...
Backported from Mozilla bug 1186265's part 1.
2023-05-12 16:26:05 +08:00
Job Bautista
29bdffbb54
Issue #2241 - Part 3: Extend DOMMatrixReadOnly to allow instantiation with a Matrix4x4.
...
Backported from Mozilla bug 1355675.
2023-05-12 16:26:05 +08:00
Job Bautista
ef31c426b1
Issue #2241 - Part 2: Add SameValueZero implementation to mfbt/FloatingPoint.h
...
Backported from Mozilla bug 1560658.
This is to prevent duplication of code while implementing DOMMatrix operations.
2023-05-12 16:26:04 +08:00
Job Bautista
30b5a4d830
Issue #2241 - Part 1: Move {js::,JS_}{{Strictly,Loosely}Equal,SameValue} into their own header and implementation files
...
Backported from Mozilla bug 1516742.
The .from* methods are going to depend on SameValueZero, which needs to be
visible to /dom. This patch provides the foundation for that.
2023-05-12 16:26:04 +08:00
Moonchild
aed983c97b
No issue - block a few problematic DLLs.
2023-05-11 01:13:44 +02:00
Moonchild
ab3e0ceef7
No issue - Disable ms-cxh and ms-cxh-full protocol handling.
2023-05-11 00:10:27 +02:00
Moonchild
0fcefb9d0a
[widget] Rewrite data-read loop in OnDataAvailable.
...
The read-loop in OnDataAvailable was needlessly baroque and used a very
strange dialect of Hungarian notation. Factored out the zero-element
case for simplicity, and added justification in comments as-appropriate.
2023-05-10 23:15:23 +02:00
Moonchild
8666ce68fc
No issue - Limit JPEG decoder memory allocation to surface cache size.
...
This means that for trivial images whose header specifies large
dimensions but with no image data, we don't waste a lot of memory.
See BZ bug 1277397
2023-05-10 22:50:22 +02:00
Moonchild
f9f3dfd1ac
Merge pull request 'Fix import.meta module error in lambdas by moving parseGoal() into SharedContext.' ( #2238 ) from dbsoft/UXP:importmeta into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2238
2023-05-09 07:44:27 +00:00
Moonchild
8395e1f700
Merge pull request 'Updates to Mac packaging for notarization.' ( #2239 ) from dbsoft/UXP:macentitlements into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2239
2023-05-09 07:36:08 +00:00
Brian Smith
688394928d
No Issue - Updates to Mac packaging for notarization. Add Mac entitlements.
...
Switch to using "create" instead of "makehybrid" when creating the disk image.
This fixes bogus extended attributes which interfere with the code signature.
Finally add any -bin or dylibs in the Resources folder since --deep skips that folder.
2023-05-08 20:18:12 -05:00
Brian Smith
13536bf8c9
Issue #2236 - Fix import.meta module error in lambdas by moving parseGoal() into SharedContext.
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1604792
Also remove ParseGoal being passed through Parser introduced in #1691 Part 2.
2023-05-08 18:28:18 -05:00
Moonchild
2971cffab4
Merge pull request 'Create async function wrapper when instantiating module functions' ( #2235 ) from FranklinDM/UXP-contrib:work_js-async-func-in-modules into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2235
2023-05-06 19:52:30 +00:00
FranklinDM
ca10d0ad23
Issue #2234 - Part 3: Update tests
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1402649 and https://bugzilla.mozilla.org/show_bug.cgi?id=1382306
2023-05-07 01:01:23 +08:00
FranklinDM
e381dd84c2
Issue #2234 - Part 2: Ensure that the created async function wrapper is valid
...
This excludes the GC-related changes (cell pointer asserts) since we don't have them. This bug should be revisited if we'd ever plan on porting those asserts over.
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1402649
2023-05-07 01:01:22 +08:00
FranklinDM
4b516daf13
Issue #2234 - Part 1: Create async function wrapper when instantiating module functions
...
This excludes the change that removes "excessive" rooting from the Lambda* methods in Interpreter.cpp.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1382306
2023-05-07 01:01:21 +08:00
Moonchild
a928dac2f1
Merge pull request 'Parse exported async functions.' ( #2233 ) from jobbautista9/UXP:2232-exportasync into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2233
2023-05-06 08:11:54 +00:00
Job Bautista
42f88e499d
Issue #2232 - Parse exported async functions.
2023-05-06 15:32:59 +08:00
Moonchild
83edd9cfc6
Issue #1691 - Follow-up: Ship dynamic module imports enabled by default.
2023-05-05 16:07:21 +02:00
Moonchild
08a7bb2e70
Merge pull request 'Do not parse or return body for XHRs with HEAD/CONNECT method or content-length=0' ( #2231 ) from martok/UXP-contrib:mr/xhr-parse-body into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2231
2023-05-05 13:55:17 +00:00
Moonchild
e7e10ab287
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from accessible, [root], tools, uriloader, widget, xpcom and
xpfe.
Resolves #1656
2023-05-05 15:53:29 +02:00
Moonchild
b9da018639
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from modules, netwerk, security, storage, testing, toolkit, and
a few scattered misc files. More to come.
2023-05-05 15:20:27 +02:00
Moonchild
5eab50c9f9
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from embedding, extensions, gfx, hal, ipc, layout, mailnews,
media and memory. More to come.
2023-05-04 22:06:35 +02:00
Martok
285cc24da6
No Issue - Do not parse or return body for XHRs with HEAD/CONNECT method or content-length=0
...
Based-on: m-c 1392220, 1437360
2023-05-04 21:03:16 +02:00
Moonchild
1e50ffb192
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from dom. More to come.
2023-05-04 03:33:25 +02:00
Moonchild
ce594b49ca
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from the rest of js, caps, chrome, config, devtools, docshell,
image, intl. More to come.
2023-05-03 22:09:21 +02:00
Moonchild
5d4f11bfaf
Issue #1656 - remove vim control lines from js/src
...
With recent work a bunch more vim control lines were re-introduced.
This nukes them again.
2023-05-03 20:17:09 +02:00
Moonchild
b30d6d72f7
Bump platform version.
2023-05-03 19:56:24 +02:00
Moonchild
127bf5784a
Merge pull request 'JS: Implement Class Fields & Logical Assignment Operators' ( #2224 ) from martok/UXP-contrib:mr/class-fields into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2224
Reviewed-by: Moonchild <moonchild@palemoon.org >
2023-05-03 17:29:59 +00:00
Moonchild
36ea7f9a5c
Merge pull request 'Fix videojs and potentially other problems.' ( #2228 ) from dbsoft/UXP:1691fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2228
2023-05-02 19:06:08 +00:00
Brian Smith
c29f841bdc
Issue #1691 - Follow-up: Fix videojs and potentially other problems.
...
When rewriting the ExecutionContext code in ScriptLoader I accidentally removed some required code.
2023-05-02 10:44:02 -05:00
Martok
63a00fdd25
Issue #2097 - Handle Logical Assignment in Ion CFG
2023-05-01 17:16:22 +02:00
Martok
3d38507c23
Issue #2097 - Implement logical assignment operators
...
Based-on: 1629106/1, 1684020
2023-05-01 17:16:22 +02:00
Martok
12626eeba3
Issue #2142 - Remove the temporary fields option
...
Now that everything is finished, we don't need the feature flag any more.
2023-05-01 17:16:21 +02:00
Martok
5e32190186
Issue #2142 - Implement class static block
...
Based-on: m-c 1712138/{2,3}, 1713155/2
2023-05-01 17:16:21 +02:00
Martok
7b74607f1f
Issue #2142 - Track isFieldInitializer on JSScript instead of Scope
...
Introduce a FunctionSyntaxKind for FieldInitializer since special rules
(around `arguments`) apply. At the same time we can move the flag from the
scope to the JSScript. This is similar to how derived constructors are handled
and makes the initWithEnclosingScope code closer to initWithEnclosingContext.
This version is a bit more complex than Mozilla's due to different storage of
bit flags on JSScript.
Based-on: m-c 1636800
2023-05-01 17:16:21 +02:00
Martok
0f3f695117
Issue #2142 - Parse and process static class fields
...
Based-on: m-c 1535804/{6,7}
2023-05-01 17:16:21 +02:00
Martok
09956fe9e4
Issue #2142 - Support SuperProperty in field initializers
...
Based-on: m-c 1555037/2
2023-05-01 17:16:20 +02:00
Martok
3ceff0d994
Issue #2142 - Optimize .initializers scoping and emitter
...
* Refactor code for emitting the .initializers array into ClassEmitter
* Only emit .initializers scope when actually required
* Remove unfinished code to handle non-present class field initialisers
* Use predicate count_if and any_of of ListNode
* Remove unnecessary parameters for class field parsing
Based-on: m-c 1553744, 1555979, 1555037/1, 1535804/{1-5}
2023-05-01 17:16:20 +02:00
Martok
fc82386ef5
Issue #2142 - Set anonymous function name in field initializer
...
This was done wildly different in m-c 1552875, in the interest of keeping
|setOrEmitSetFunName| around it is implemented differently here.
2023-05-01 17:16:20 +02:00
Martok
2c06165a59
Issue #2142 - Don't treat PNK_NAME specially emitAssignmentOrInit
...
If there ever was a point where this structure "avoids duplication", at least since the
*OpEmitter refactor emitting PNK_NAME differently makes it actually harder to follow.
Mozilla makes the same change at a different time.
2023-05-01 17:16:19 +02:00
Martok
445fd61891
Issue #2142 - Emit field keys in correct order
...
Based-on: m-c 1552229
2023-05-01 17:16:19 +02:00
Martok
c1681ef614
Issue #2142 - Pass through arguments in synthesized constructors for derived classes
...
Based-on: m-c 1552022
2023-05-01 17:16:19 +02:00
Martok
7521dd33e7
Issue #2142 - Fix several scoping issues in field initializers
...
Based-on: m-c 1540789, 1547130, 1547467
2023-05-01 17:16:19 +02:00
Martok
98853c14d7
Issue #2142 - Restrict contents of direct eval in fields
...
Based-on: m-c 1542406
2023-05-01 17:16:18 +02:00
Martok
e708a68921
Issue #2142 - Use JSOP_INITPROP for field initializers
...
We don't want to call setters for field initialization.
Based-on: m-c 1535471, 1547035
2023-05-01 17:16:18 +02:00
Martok
b35fadd54c
Issue #2142 - Implement ASI for fields
...
Based-on: m-c 1529772/{3,4}
2023-05-01 17:16:18 +02:00
Martok
0d3a394cad
Issue #2142 - Factor out PropertyName parsing from Parser::propertyName()
...
Based-on: m-c 1529772/{1,2}
2023-05-01 17:16:18 +02:00
Martok
f7935ec5b2
Issue #2142 - Handle fields in derived classes
...
* Don't name field initializer lambdas
Based-on: m-c 1534721, 1551454, 1542448
2023-05-01 17:16:18 +02:00
Martok
b72b80ed58
Issue #2142 - Add FunctionEmitter, FunctionScriptEmitter, and FunctionParamsEmitter with current methods
...
Based-on: m-c 1473796/3, 1473796/4
2023-05-01 17:16:17 +02:00
Martok
a3584bd6b9
Issue #2142 - Add PropertyEmitter, ObjectEmitter, ClassEmitter, LexicalScopeEmitter, DefaultEmitter
...
Based-on: m-c 1501577, 1521696, 1501578, 1473796/1
2023-05-01 17:16:17 +02:00
Martok
559bacdb66
Issue #2142 - Improve TokenPos handling in BCE
...
* Don't print bogus error locations on BCE internal errors
* Do not use TokenPos in BytecodeEmitter::{setFunctionBodyEndPos,setScriptStartOffsetIfUnset}
Based-on: m-c 1451826/1, 1530034, 1473796/2
2023-05-01 17:16:17 +02:00
Martok
3cbe292dc6
Issue #2142 - Implement syntax for public/private fields and computed field names
...
This state still has the initializers scoped on .initializers local variable, which will be changed later.
Based-on: m-c 1499448, 1530084, 1530832, 1529448 (partial), 1532921, 1528039, 1528038, 1535166, 1550628,
1535166, 1550628, 1541641, 1547133, 1540787, 1535804/9
2023-05-01 17:16:17 +02:00
Moonchild
741ecee75a
Merge pull request 'Implement Element.replaceChildren' ( #2226 ) from FranklinDM/UXP-contrib:work_js-element-replacechildren into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2226
2023-05-01 14:17:52 +00:00
FranklinDM
eb4d4475b0
Issue #2225 - Implement Element.replaceChildren
...
This accounts for refactoring changes (e.g. avoids RemoveChild*
changes).
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1626015
2023-05-01 21:05:38 +08:00
Martok
7647230e93
Issue #2142 - Add internal option for fields, but always true
...
This allows us to perform bisects on the following commits without causing runtime issues.
Based-on: m-c 1529758
2023-04-30 22:00:06 +02:00
Martok
6b36e0f3c0
Issue #2142 - Reduce calls to FindReservedWord when checking for forbidden identifiers during parsing
...
Based-on: m-c 1351913/{1,2}
2023-04-30 22:00:06 +02:00
Moonchild
ed041c19c5
Merge pull request 'Replace deprecated Harfbuzz functions with current ones.' ( #2223 ) from jobbautista9/UXP:1862-harfbuzz-deprecated-methods into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2223
2023-04-30 19:44:13 +00:00
Moonchild
40f2e813d4
Merge pull request 'Use link-time optimization for Spidermonkey in Windows by default, and fix a deprot in js/src' ( #2222 ) from jobbautista9/UXP:ltcg-js into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2222
2023-04-30 19:40:46 +00:00
Moonchild
3ff018f32f
Merge pull request 'Collected small changes' ( #2214 ) from martok/UXP-contrib:mr/collect-1 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2214
2023-04-30 19:36:28 +00:00
Martok
6ab2fe9a69
Issue #2142 - Ensure 'await' is always a restricted identifier when parsing modules
...
Based-on: m-c 1356189
2023-04-30 20:56:24 +02:00
Martok
750a32d64d
Issue #2142 - Add predicate functions count_if and any_of to ListNode iterator
2023-04-30 20:56:23 +02:00
Martok
d4be309498
Issue #2142 - Change InitPropertyOperation to accept a PropertyName directy and use DefineDataProperty
...
Based-on: m-c 1413907, 1547129
2023-04-30 20:56:23 +02:00
Martok
196d6a6931
Issue #2142 - Extend newSuperCall for JSOP_SPREADSUPERCALL
...
Based-on: m-c 1537936
2023-04-30 20:56:23 +02:00
Martok
a356af699f
Issue #2142 - Fold BytecodeEmitter::checkTypeSet into BytecodeEmitter::emitCheck
...
The bytecode emitter used to call checkTypeSet for each JOF_TYPESET op. Despite
correctness asserts in the TypeScript code, this was pretty error prone.
The solution is to move this check to BytecodeEmitter::emitCheck (called for
each opcode we emit), so we don't have to worry about this anymore.
Based-on: m-c 1521491/3
2023-04-30 20:56:22 +02:00
Martok
eebbd8cb00
Issue #1691 - Follow-up: use error message with no arguments for bad import statements
2023-04-30 20:55:40 +02:00
Job Bautista
4a2aae060f
Issue #1862 - Follow-up: Replace deprecated Harfbuzz functions with current ones.
...
Based on Mozilla bug 1500356.
2023-04-30 21:20:06 +08:00
Job Bautista
9baae9a47e
Issue #1691 - Follow-up: Fix CallSelfHostedFunction deprot introduced by Part 4.
2023-04-30 21:11:01 +08:00
Job Bautista
42e0b5db07
Issue #2221 - Enable link-time optimization for Spidermonkey by default if building it shared.
...
Currently only Windows can take advantage of this.
The reason why the arrays of deunified sources are named like that in
Spidermonkey's moz.build is to avoid UnsortedErrors in python. There's probably
a better way to handle that, but I just want something that works for now.
And yes, the deunified sources will be reunified if LTO is disabled.
2023-04-30 21:10:44 +08:00
Martok
311482507b
Issue #1285 - Follow-up: Correctly handle follow-up compilations of RegExp with named capturing groups
2023-04-30 13:26:26 +02:00
Martok
9f246c4c74
Issue #1894 - Follow-up: Fix return value ordering in IonMonkey nullish coalescing
2023-04-30 13:26:26 +02:00
Martok
06222816f7
Issue #2173 - Follow-up: Use common ancestor of PNK_(OPT)DOT in ASTSerializer::expression
2023-04-30 13:26:26 +02:00
Martok
c11d3892a5
Issue #2213 - Follow-up: Fix derieved Generator prototypes after previous change
2023-04-30 13:26:25 +02:00
Moonchild
4d4d8cfc9f
Merge pull request 'Bug 1432272 - Make Fetch API use the global's base URL instead of the entry document's base URL' ( #2217 ) from FranklinDM/UXP-contrib:work_js-bz-1432272 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2217
2023-04-30 10:55:21 +00:00
Moonchild
ff537f4ffd
Merge pull request 'Split hunspell library out of xul.' ( #2212 ) from jobbautista9/UXP:shared-hunspell-nojs into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2212
2023-04-30 10:54:22 +00:00
Moonchild
78156cd0ca
Merge pull request 'Follow-up: Use internal Move instead of std::move for consistency in SurfaceCache' ( #2220 ) from FranklinDM/UXP-contrib:work_image-followup-move into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2220
2023-04-30 10:51:48 +00:00
Moonchild
732e1bb7f7
Merge pull request 'Implement Dynamic Module Import and its various dependencies.' ( #2215 ) from dbsoft/UXP:d-m-i into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2215
2023-04-30 10:51:26 +00:00
Moonchild
22e68f166c
Merge pull request 'Free ImageSurfaceCache outside of the SurfaceCache mutex lock' ( #2219 ) from FranklinDM/UXP-contrib:work_image-free-imagesurfacecache-outside-lock into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2219
2023-04-30 10:51:00 +00:00
FranklinDM
e821844e24
Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency
2023-04-30 18:21:06 +08:00
FranklinDM
7251ed27ff
Issue #2218 - Part 2: Make SurfaceCache free ImageSurfaceCache objects outside of the lock
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1389479
2023-04-30 18:17:29 +08:00
FranklinDM
608f037816
Issue #2218 - Part 1: Add nsExpirationTracker::NotifyEndTransaction(Locked) callbacks for subclasses to know when an aging iteration is complete
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1389479
2023-04-30 18:17:24 +08:00
Moonchild
1978ebd3b8
Merge pull request '[MailNews] Fix build bustage due to recent MIME API changes' ( #2216 ) from FranklinDM/UXP-contrib:work_mail-fix-mime-api-bustage into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2216
2023-04-28 16:54:12 +00:00
FranklinDM
80a323d747
Bug 1432272 - Make Fetch API use the global's base URL instead of the entry document's base URL
2023-04-28 20:52:48 +08:00
FranklinDM
479561661e
No issue - [MailNews] Fix build bustage due to recent MIME API changes
2023-04-28 20:23:29 +08:00
Brian Smith
f7ee58a9e7
Issue #1691 - Part 16: Dynamically imported modules can throw any value as an exception.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1508672
(cherry picked from commit 910a37b53f1826a863cc3ab6eb61fc369f4505a0)
2023-04-27 13:35:48 -05:00
Brian Smith
32029813bb
Issue #1691 - Part 15: Make |new import()| a syntax error.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1508672
(cherry picked from commit 45fda91268b6a3ca8471c8094f2d640ebad682f9)
2023-04-27 13:35:40 -05:00
Brian Smith
623b0dc624
Issue #1691 - Part 14: Fix a debug assert and memory leak.
...
PNK_IMPORT_META and PNK_CALL_IMPORT are binary nodes... They function similar
to list nodes, so they worked there, but debug mode asserts because of the wrong type.
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Fixed a memory leak due to missing code in SourceScriptObject::finalize(). Thanks FranklinDM!
(cherry picked from commit 15e81193c692c2c2aec665e7e5a88d98a9b85eca)
2023-04-27 13:35:34 -05:00
Brian Smith
b1ed742b2f
Issue #1691 - Part 13: Remove MUST_MATCH_TOKEN* macros in Parser.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1501928
This was helpful in debugging one of the crashes, the macros made debugging a nightmare.
(cherry picked from commit 7bceec3f7dff086305c3f50939a8c830ca7f107b)
2023-04-27 13:35:28 -05:00
Brian Smith
1adf442e92
Issue #1691 - Part 12: Fix return value in ExecScript() and debug assert in ParseTask.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1331662
Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes.
ExecutionContext: The mRetValue is not used even though it is checked in various asserts.
This is how it is in the Mozilla code even years later, only the passed in value is used.
ParseTask: JoinDecode() and JoinCompile() run the same code but the type is different
causing a debug assert when it checks the type Script vs ScriptDecode.
(cherry picked from commit 8f577428b7834b7d0f0d5afacbe060fbb1ff2136)
2023-04-27 13:35:21 -05:00
Brian Smith
7b42bc809d
Issue #1691 - Part 11: Fix incorrect reference counting in ModuleScript class.
...
(cherry picked from commit 4ef1fa98c9518f5c107424667229ddb6f9f97767)
2023-04-27 13:35:14 -05:00
Brian Smith
22d254b479
Issue #1691 - Part 10: Add and use method to annotate CC crashes with a class name.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1277260
Make PtrInfo into a class and mark it final.
Also fix an erroneous debug assert because mBaseURL not set in one code path.
(cherry picked from commit a1890054011adf0cf87be0d56047418c9f201420)
2023-04-27 13:35:07 -05:00
Brian Smith
30a6828f47
Issue #1691 - Part 9: Make import() work when the active script is in another document.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Associate event handler with active script when they are compiled.
(cherry picked from commit 1a3cc5d6828a05a6309d959fad3c7e959ab9eb8d)
2023-04-27 13:35:01 -05:00
Brian Smith
914299b8ba
Issue #1691 - Part 8: Fix --enable-debug builds and continue dynamic module import changes.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Support import from timeout handlers by associating the initiating script with the compiled JSScript.
Fix error message that covers all import() failures that don't throw a JS exception.
https://bugzilla.mozilla.org/show_bug.cgi?id=1331662
Partial - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes.
Left EvaluateString() in nsXBLProtoImplField.cpp until ExecutionContext errors can be fixed.
(cherry picked from commit 22fcfc77971a9bb204df664c474681f4dcf54211)
2023-04-27 13:34:55 -05:00
Brian Smith
e29f4488b1
Issue #1691 - Part 7f: Split up compile and execute so we can use ClassicScript.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Refactor nsJSUtils::ExecutionContext to separate compilation and execution steps and allow extraction of compiled JSScript.
https://bugzilla.mozilla.org/show_bug.cgi?id=1366773
Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding.
(cherry picked from commit d4b520b08b958e116dfeeffdc61f3425610d1ce9)
2023-04-27 13:34:48 -05:00
Brian Smith
8431e52405
Issue #1691 - Part 7e: Dependencies for required to finish part 7d.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1331662
Reimplement EvaluateString using the ExecutionContext class.
https://bugzilla.mozilla.org/show_bug.cgi?id=1316078
Extract redudant code into StartOffThreadParseTask.
Use an ExclusiveContext instead of a JSContext in XDR functions.
Add a script decoder as a valid off-main-thread parse-task.
https://bugzilla.mozilla.org/show_bug.cgi?id=900784
Add nsJSUtils functions for encoding and decoding the bytecode.
https://bugzilla.mozilla.org/show_bug.cgi?id=1316081
Add XDRIncrementalEncoder to replace delazified LazyScript in the encoded XDR buffer.
Add an XDRIncrementalEncoder instance on the ScriptSource.
Expose a new JSAPI to incrementally encode bytecode when it is generated.
https://bugzilla.mozilla.org/show_bug.cgi?id=1334091
XDR function use the sourceObject instead of the enclosingScript as argument.
(cherry picked from commit d6de9a669f4b2f5115670bd771cd53d7cfb3956a)
2023-04-27 13:34:41 -05:00
Brian Smith
3a59f91dee
Issue #1691 - Part 7d: Allow dynamic import in cases where there's no referencing script or module.
...
Support dynamic import from classic scripts by creating ClassicScript objects and associating them with the compiled.
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
This patch is incomplete, some code in ScriptLoader::EvaluateScript() could not be applied for missing dependencies.
Part 7e will apply the missing dependencies and finish the patch.
(cherry picked from commit ce31a906e801b72f06385b0755710317ccf3658b)
2023-04-27 13:34:33 -05:00
Brian Smith
b84f08cf54
Issue #1691 - Part 7c: Refactor ModuleScript into ClassicScript class and LoadedScript base class so we can represent all scripts that can perform dynamic import.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
(cherry picked from commit c37b8b55231f6609c87e49c84edf7e94a1bf5518)
2023-04-27 13:34:27 -05:00
Brian Smith
1ddeac519b
Issue #1691 - Part 7b: Make load request element optional.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
(cherry picked from commit 169bb5d2ada59026fb6407716a7b3862810c9b97)
2023-04-27 13:34:20 -05:00
Brian Smith
9fa3fc6315
Issue #1691 - Part 7a: Add a JS API to get the private value for the calling script or module.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
(cherry picked from commit e89e50d5047468e0bb02ee82f9cd0be282b24a1b)
2023-04-27 13:34:14 -05:00
Brian Smith
c961285752
Issue #1691 - Part 6e: Fix problems due to divergent codebases. This gets basic dynamic import working.
...
Fix a problem in Part 5b where Mozilla used toGCThing() and we don't.
Fix a problem in Part 4 where runtime() returns nullptr in our codebase since it runs on JS Helper thread.
We need to get the runtime via runtimeFromAnyThread() instead.
(cherry picked from commit dddb46225bbd1adff11f635e32934aee36923e47)
2023-04-27 13:34:05 -05:00
Brian Smith
a28f3edf2a
Issue #1691 - Part 6d: Optimize handling of internally-created Promise objects.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1358879
The patch uses a different test: PROMISE_FLAG_DEFAULT_REJECT_FUNCTION which doesn't
exist in our codebase. It was added in this bug, which appears to be partly complete:
https://bugzilla.mozilla.org/show_bug.cgi?id=1313049
(cherry picked from commit 97fc74b693813eaaa9ab833d9c51fc5868ff039f)
2023-04-27 13:33:56 -05:00
Brian Smith
6b69dad2aa
Issue #1691 - Part 6c: Fix a few issues with the earlier commits.
...
Need PNK_CALL_IMPORT and PNK_IMPORT_META in the node children list or it will abort.
When porting ScriptFetchOptions support, I had 2 constructors, I picked the wrong one.
Missed adding the preference javascript.options.dynamicImport to all.js.
(cherry picked from commit b95ccb711dc41b343d02ae69b3dc4747bbbe86fb)
2023-04-27 13:33:47 -05:00
Brian Smith
e4c920f397
Issue #1691 - Part 6b: Initial browser support for dynamic import from module scripts.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Factor out script fetch options from script load request classes.
https://bugzilla.mozilla.org/show_bug.cgi?id=1480720
Remove support for version parameter from script loader.
https://bugzilla.mozilla.org/show_bug.cgi?id=1428745
(cherry picked from commit 3ec2529aa6303f6950622e3cb91a23580649c73b)
2023-04-27 13:33:36 -05:00
Brian Smith
5f63601f0f
Issue #1691 - Part 6a: Support private values which contain pointers to cycle-collected C++ objects
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
(cherry picked from commit 1286cca73d58332ba0becd0011f747713b8acfac)
2023-04-27 13:33:27 -05:00
Brian Smith
1a4146cead
Issue #1691 - Part 5b: Stop modules from entraining the top-level JSScript.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1489477
(cherry picked from commit 6ce0af856186e65fb4987daf4e06dc68fb3f7483)
2023-04-27 13:33:17 -05:00
Brian Smith
fdfe9a8ad2
Issue #1691 - Part 5: Don't pre-create module metadata object when compiling.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1489477
(cherry picked from commit d83bad49f6b03894548fbf85fc18ad7e8cc19a93)
2023-04-27 13:33:10 -05:00
Brian Smith
130d9f4d91
Issue #1691 - Part 4: Finish implementing call import.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1499140
(cherry picked from commit 7bf7d64887944b127a72090dd62eb57f67c5089d)
2023-04-27 13:33:00 -05:00
Brian Smith
6eecfad57c
Issue #1691 - Part 3: Finish implementing import meta.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1427610
(cherry picked from commit a8625238ac846fb7eb103646ddb8634a5860f067)
2023-04-27 13:32:52 -05:00
Brian Smith
12291f8248
Issue #1691 - Part 2: Implement call import and import meta in the parser.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1427610
https://bugzilla.mozilla.org/show_bug.cgi?id=1484948
(cherry picked from commit 6be083187f49e444de1bb116bb5930b20125190b)
2023-04-27 13:32:43 -05:00
Brian Smith
7223fb518d
Issue #1691 - Part 1: Provide a way of associating a private value with a script
...
or module.
This is a prerequisite for dynamic import
(cherry picked from commit 2e2972647ee29340df51a804f05e40fc1da2c89b)
2023-04-27 13:28:56 -05:00
Job Bautista
ff9c52f223
Issue #1451 - Fix hunspell build bustage in FreeBSD.
...
Thanks to dbsoft for this patch!
2023-04-26 17:46:36 +08:00
Moonchild
ba04f314c0
Merge pull request 'Place Skia back into gkmedias.' ( #2211 ) from jobbautista9/UXP:61-skia-gkmedias into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2211
2023-04-25 15:07:35 +00:00
Moonchild
dae88dede5
Merge pull request 'Correct handling of async (arrow) functions declared inside constructors' ( #2213 ) from martok/UXP-contrib:mr/nested-async-assert into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2213
2023-04-25 15:06:18 +00:00
Martok
dd512188ed
No issue - Correct handling of async (arrow) functions declared inside constructors
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1462353 , but since we still support
legacy generators, this only corrects the handling and leaves the newTarget plumbing
intact.
2023-04-23 23:02:00 +02:00
Job Bautista
a12787e985
Issue #1451 - Split hunspell library out of xul.
...
utf_info.cxx imported from 1.4.1 upstream.
Also moved unicode_info struct to the header to fix bustage with compiling the
new utf_info.cxx.
I've also gone ahead and deunified this new shared library as unified building
is busting in hunspell.cxx, complaining about config.h not being found. Weird
that it only happens in unified mode.
This reduces libxul size on all platforms by ~200 KB.
2023-04-23 13:51:11 +08:00
Job Bautista
41944ab728
Issue #61 - Follow-up: Fix xul.dll link bustage related to Skia.
2023-04-20 20:05:39 +08:00
Job Bautista
acb5f39d42
Issue #61 - Follow-up: Fix gkmedias.dll link bustage related to Skia.
...
I don't understand why SK_API is being a problem, but it seems they are.
2023-04-20 20:05:39 +08:00
Job Bautista
a6f9c5fe3e
Revert "Issue #61 - Place Skia in libxul"
...
This reverts commit 39cebe99e2 .
2023-04-20 20:05:39 +08:00
Moonchild
e2acdfd18d
[No issue] Remove unmaintained WebGL conformance test suite.
2023-04-20 00:51:12 +02:00
Moonchild
eb5c408991
Issue #2053 - Follow-up: Clear the performance entries buffer if full.
...
Also enlarged the buffer to 16k entries which should be enough for all
legitimate use of performance measurements (and then some).
This throws a quota exceeded error if sites want to record more entries
into the buffer and just clears it (similar to Moz's behaviour under
memory pressure) ready for fresh entries to be added again.
2023-04-13 17:22:41 +02:00
Moonchild
69868a9ad6
[devtools] Don't allow sourcemap URLs to redirect
2023-04-12 17:28:19 +02:00
Moonchild
3a6949f398
[network] Improve checks while parsing MIME parameters.
2023-04-12 16:41:04 +02:00
Moonchild
dfa402aa98
Issue #1911 - Follow-up: Filter out illegal characters in more locations.
2023-04-12 15:08:37 +02:00
Moonchild
c74cecc05c
No issue - Fix off-by-one of kLargeDatasetSize
2023-04-12 12:08:35 +02:00
Moonchild
0ba7d1e988
Merge pull request 'Use nsAnonymousTemporaryFile for clipboard cache' ( #2209 ) from _Sandra_/UXP:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2209
2023-04-12 10:03:14 +00:00
Sandra
9f22c3a7b9
Increase size of data over which we write the data to disk rather than keep it around in memory
2023-04-12 07:12:24 +03:00
Moonchild
c2211e7ddc
Issue #2053 - Follow-up: Re-enable navigation timing now it's to-spec.
...
Verified fixed with Google website translation.
2023-04-11 23:55:32 +02:00
Moonchild
2f258b259f
Issue #2053 - Follow-up: Make the default ResourceTimingBufferSize larger
...
Contrary to setting no limit by default, we're giving it a reasonable
default size to prevent runaway memory usage when websites just keep
recording ad infinitum.
2023-04-11 23:38:10 +02:00
Moonchild
c95e970df5
Merge pull request 'Update Performance API to User Timing L3' ( #2208 ) from FranklinDM/UXP-contrib:work_js-user-timing-l3 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2208
2023-04-11 21:32:22 +00:00
_Sandra_
558c26bbbf
Merge pull request 'work_js-user-timing-l3' ( #1 ) from FranklinDM/UXP-contrib:work_js-user-timing-l3 into master
...
Reviewed-on: https://repo.palemoon.org/_Sandra_/UXP/pulls/1
2023-04-11 16:16:48 +00:00
Sandra
1efbe485bb
Use nsAnonymousTemporaryFile for clipboard cache
...
Base on https://github.com/mozilla/gecko-dev/commit/ecc04a9245b409d7eed7df63ba733cd2073180de
2023-04-11 11:58:51 +03:00
FranklinDM
9e976ddf7f
Issue #2053 - Part 5: Throw a DOMException instead of a JS exception for some errors
2023-04-10 18:22:55 +08:00
FranklinDM
ac1fd1133c
Issue #2053 - Part 4b: Fix measure name to timestamp conversion
...
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1772417
2023-04-10 18:22:54 +08:00
FranklinDM
65203af3dc
Issue #2053 - Part 4a: Align IsPerformanceTimingAttribute to user-timing spec
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1772417
2023-04-10 18:22:54 +08:00
FranklinDM
19a7544fdf
Issue #2053 - Part 3: Update PerformanceMark to User Timing L3
...
There are a few minor differences between this and Mozilla's implementation:
(a) The type error messages were not hardcoded to the Performance class and were moved to Errors.msg or domerr.msg instead.
(b) Resist fingerprinting-pref changes were skipped.
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1724645
2023-04-10 18:22:53 +08:00
FranklinDM
d4138780ee
Issue #2053 - Part 2: Update PerformanceMeasure to User Timing L3
...
There are a few minor differences between this and Mozilla's implementation:
(a) The type error messages were not hardcoded to the Performance class and were moved to Errors.msg instead.
(b) PerformanceMeasureOptions is used directly and doesn't use the the Maybe<> container class. I haven't found the reason yet, but PerformanceMeasureOptions is disallowed from having a copy constructor and without that, it isn't possible to use it with Maybe<>... There doesn't seem to be any problem with using it directly, though.
(c) Resist fingerprinting-pref changes were skipped.
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1762482
2023-04-10 18:22:53 +08:00
FranklinDM
5fc711ba17
Issue #2053 - Part 1: Performance should be an EventTarget
...
Some sites (e.g. Bitbucket) are now calling `performance.addEventListener` and expect that Performance is an EventTarget.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1432522
2023-04-10 18:22:46 +08:00
Moonchild
ff29aa37a8
Merge pull request 'Add support for libavcodec 60/FFmpeg 6.0' ( #2204 ) from trav90/UXP-contrib:ffmpeg60 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2204
2023-04-09 13:47:20 +00:00
Moonchild
bfeb62ceec
Merge pull request 'Implement self.structuredClone()' ( #2206 ) from FranklinDM/UXP-contrib:work_js-structuredclone into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2206
2023-04-09 13:44:46 +00:00
Moonchild
b62bf0c4b7
Merge pull request 'Implement window.event' ( #2207 ) from FranklinDM/UXP-contrib:work_js-window-event into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2207
2023-04-09 13:38:38 +00:00
FranklinDM
78e4526d55
Issue #595 - Implement window.event
...
This MSIE extension is still technically part of the standard*, although its use is discouraged. This API will also likely never go away based on some comments at this issue on MDN content**.
Note that this uses a different approach for getting the inner window.
* https://dom.spec.whatwg.org/#interface-window-extensions
** https://github.com/mdn/content/issues/21848
Spec PR: https://github.com/whatwg/dom/pull/407
Spec discussion: https://github.com/whatwg/dom/issues/334
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=218415
2023-04-08 00:20:48 +00:00
FranklinDM
ae19a0513e
Issue #2197 - Follow-up: Remove GC debug assertion on sandbox
...
There's no way to access GC from here.
2023-04-08 08:16:11 +08:00
FranklinDM
c660c6f699
Issue #2197 - Part 4: Expose structuredClone in Sandbox
...
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1734320
2023-04-07 23:41:57 +08:00
FranklinDM
84af6181e7
Issue #2197 - Part 3: Implement self.structuredClone()
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1722576
2023-04-07 23:41:56 +08:00
FranklinDM
6d2e5850ce
Issue #2197 - Part 2d: Implement PostMessageOptions for Window
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-07 23:41:56 +08:00
FranklinDM
b3a6a8f274
Issue #2197 - Part 2c: Implement StructuredSerializeOptions for ServiceWorker
...
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-07 23:41:55 +08:00
FranklinDM
83501c86d2
Issue #2197 - Part 2b: Implement StructuredSerializeOptions for Worker
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-07 23:41:55 +08:00
FranklinDM
5c8599d223
Issue #2197 - Part 2a: Implement StructuredSerializeOptions for MessagePort
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-07 23:41:54 +08:00
FranklinDM
0206e87a2e
Issue #2197 - Part 1b: Transferables should be arrays of objects
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-07 23:41:54 +08:00
FranklinDM
253c711a92
Issue #2197 - Part 1a: postMessages should have transferable as [] by default
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-07 23:41:48 +08:00
Moonchild
c01fd8ec19
Merge pull request 'Move getElementsByName from HTMLDocument to nsIDocument' ( #2201 ) from FranklinDM/UXP-contrib:work_dom-move-getelementsbyname-to-document into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2201
2023-04-07 15:41:23 +00:00
Moonchild
a9c9fc184a
Merge pull request 'No issue - Use inet_ntop() for converting IPv4 network addresses instead of the deprecated inet_ntoa()' ( #2202 ) from FranklinDM/UXP-contrib:work_network-replace-deprecated-intet-ntoa into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2202
2023-04-07 15:38:34 +00:00
FranklinDM
e35a3f19c7
Issue #252 - Follow-up: Include a null check against mDocument
2023-04-07 23:24:03 +08:00
trav90
717f059d1b
Issue #2199 - Add support for libavcodec 60/FFmpeg 6.0
2023-04-07 09:59:19 -05:00
Moonchild
dcdbf5d1da
Merge pull request 'Follow-up: Silence compiler warnings for libjxl (MSVC)' ( #2200 ) from FranklinDM/UXP-contrib:work_media-silence-jxl-msvc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2200
2023-04-07 14:58:41 +00:00
Moonchild
4f166f3ddb
Merge pull request 'Merge dom.getRootNode.enabled pref into dom.webcomponents.enabled.' ( #2198 ) from jobbautista9/UXP:1361-rootnode-merge into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2198
2023-04-07 14:57:55 +00:00
FranklinDM
4cc241fb63
No issue - Use inet_ntop() for converting IPv4 network addresses instead of the deprecated inet_ntoa()
...
The original implementation opted to silence the warnings instead and use the deprecated inet_ntoa() as a Windows XP consideration (bug 1240932). Since we've removed support for that platform, it makes sense to use the modern inet_ntop() API instead.
2023-04-07 22:20:38 +08:00
FranklinDM
c2b9a9e005
Issue #252 - Move getElementsByName from HTMLDocument to Document
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1415176
2023-04-07 22:08:20 +08:00
FranklinDM
80bd22fc35
Issue #2061 - Follow-up: Silence compiler warnings for libjxl (MSVC)
2023-04-07 21:59:19 +08:00
Job Bautista
8f602a52ee
Issue #1361 - Follow-up: Merge dom.getRootNode.enabled pref into dom.webcomponents.enabled.
2023-04-07 20:16:46 +08:00
Moonchild
8e2788496d
Merge pull request 'Update in-tree harfbuzz to 7.1.0, remove old fontconfig support on GTK systems, and cache ScaledFonts in gfxFont::GetScaledFont' ( #2196 ) from jobbautista9/UXP:2191-cache-scaledfonts into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2196
2023-04-06 22:20:55 +00:00
Job Bautista
7fe1f000c7
Issue #2191 - Follow-up: Add missing mozilla::gfx in gfxFcPlatformFontList.cpp
...
Fixes build bustage in GNU/Linux
2023-04-05 21:22:18 +08:00
Job Bautista
5e50b32a3c
Issue #2191 - Remove virtual from gfxFont::GetCairoScaledFont.
...
Backported from Mozilla bug 1385029.
2023-04-05 21:22:18 +08:00
Job Bautista
82bce1935f
Issue #2191 - Require implementation of gfxFont::GetScaledFont and remove unnecessary gfxPlatform::GetScaledFontForFont.
...
Backported from Mozilla bug 1385029.
2023-04-05 21:22:18 +08:00
Job Bautista
c85b510dbb
Issue #2191 - Remove redundant CairoScaledFont accessor from gfxFont subclasses.
...
Backported from Mozilla bug 1385029.
2023-04-05 21:22:18 +08:00
Job Bautista
4af61863f3
Issue #2191 - Get rid of gfxFontconfigUtils.h since gfxFontconfigFontBase is unnecessary.
...
Backported from Mozilla bug 1385029.
2023-04-05 21:22:17 +08:00
Job Bautista
b494419e91
Issue #2191 - Make ScaledFont::SetCairoScaledFont virtual so it can be accessed from outside Moz2D.
...
Backported from Mozilla bug 1385029.
2023-04-05 21:22:17 +08:00
Job Bautista
57ef40f783
Issue #2191 - Remove as much old fontconfig support as needed for Harfbuzz 7.1.0 update.
...
Based on Mozilla bugs 1119128, 1285533, and 1421964.
gfx.font_rendering.fontconfig.fontlist.enabled is no longer available.
gfxFontconfigUtils.h still exists, and will be removed in another commit. Just
need more research on bug 1385029.
Tag #1862
2023-04-05 21:22:17 +08:00
Job Bautista
3122de9547
Issue #1862 - Part 2: Update harfbuzz's build system for 7.1.0.
...
Harfbuzz upstream seems to have fixed all conflicts originally encountered
before 2.6.0, so let's unify all harfbuzz's sources.
Some parts of README-mozilla (now README-mcp) no longer apply, so update that as
well.
2023-04-05 21:22:17 +08:00
Job Bautista
b137a3cff3
Issue #1862 - Part 1: Update harfbuzz source to 7.1.0.
2023-04-05 21:22:16 +08:00
Moonchild
186d4b7132
Merge pull request 'Fix FreeBSD build failure with WebRTC enabled.' ( #2193 ) from dbsoft/UXP:freebsdwebrtc into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2193
2023-04-05 10:15:13 +00:00
Moonchild
a85b4739e4
Merge pull request 'Fix build bustage with GCC 9 related to checkExportedNamesForDeclaration' ( #2192 ) from jobbautista9/UXP:2189-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2192
2023-04-05 10:14:24 +00:00
Brian Smith
dad82a67d6
No Issue - Fix FreeBSD build failure with WebRTC enabled.
2023-04-05 00:54:29 -05:00
Job Bautista
1359f67e56
PR #2189 - Follow-up: Fix build bustage with GCC 9 related to checkExportedNamesForDeclaration
2023-04-05 13:11:44 +08:00
Moonchild
a68e524a90
Merge pull request 'JS: Parser Frontend Refactor' ( #2189 ) from martok/UXP-contrib:mr/frontend-2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2189
2023-04-04 18:54:15 +00:00
Moonchild
e354a428b7
Merge pull request 'Update freetype2 to 2.13.0.' ( #2190 ) from jobbautista9/UXP:freetype2-2.13.0 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2190
2023-04-04 10:38:11 +00:00
Job Bautista
031f4f5504
Issue #1863 - Update freetype2 to 2.13.0.
2023-04-04 14:09:09 +08:00
Martok
98a18afe5b
Issue #2173 - Introduce FunctionNode::syntaxKind instead of JSOPs
...
This moves some "implementation details" to later in the emitter,
and also keeps syntax information available for later use.
Based-on: 1518391/{3+4}
2023-04-03 16:50:25 +02:00
Martok
0c7e7591b7
Issue #2173 - Separate CodeNode into FunctionNode and ModuleNode
...
ModuleNode only has a body and FunctionNode has many more attributes,
and will get more in the following commit.
Based-on: 1518391/2
2023-04-03 16:50:24 +02:00
Martok
c3617331a1
Issue #2173 - Remove unused case/code from function node ops
...
CodeNodes only ever use 3 JSOPs at this point in time.
Based-on: 1518391/1
2023-04-03 16:50:24 +02:00
Martok
3415e1d32d
Issue #2173 - Allow constant folding to see inside functions when using the module pattern
...
(function() { ... })() IIFE pattern should get its body const-folded. This won't make much
runtime difference on JIT, but can be significant in interpreted code (and saves time for
JIT codegen).
Based-on: m-c 632020
2023-04-03 16:50:24 +02:00
Martok
f687581b7f
Issue #2173 - Fix remaining ParseNode* in FullParseHandler methods signature
...
The handlers should use the alias types exclusively in their interface.
Based-on: m-c 1479659/11
2023-04-03 16:50:24 +02:00
Martok
6d9f234c60
Issue #2173 - Add TryNode
...
This is adjusted from upstream to follow our data structure with PNK_CATCHLIST
Based-on: m-c 1479659/8
2023-04-03 16:50:23 +02:00
Martok
2067485b27
Issue #2173 - Add accessors to LexicalScopeNode
...
Based-on: m-c 1479659/7
2023-04-03 16:50:23 +02:00
Martok
9cd981b485
Issue #2173 - Add accessors to NullaryNode and change LoopControlStatement arity to PN_LOOP
...
Based-on: m-c 1479659/6
2023-04-03 16:50:23 +02:00
Martok
88f7cba9c9
Issue #2173 - Add accessors to NameNode, CodeNode, RegExpLiteral, and add NumericLiteral
...
Based-on: m-c 1479659/{5,9,10}, m-c 1491147
2023-04-03 16:50:23 +02:00
Martok
6cea01f811
Issue #2173 - Add accessors to UnaryNode and subclasses
...
Based-on: m-c 1479659/4
2023-04-03 16:50:22 +02:00
Martok
0fdd23e0b4
Issue #2173 - Add accessors to BinaryNode and subclasses
...
Based-on: m-c 1479659/3
2023-04-03 16:50:22 +02:00
Martok
ad4b2ecefa
Issue #2173 - Add accessors to TernaryNode
...
Based-on: m-c 1479659/2
2023-04-03 16:50:22 +02:00
Martok
cc14ee0148
Issue #2173 - Add accessors to ListNode
...
Based-on: m-c 1479659/{1,12}
2023-04-03 16:50:22 +02:00
Martok
483420f253
Issue #2173 - Fix return value of MUST_MATCH_TOKEN* macros in Parser methods which returns bool
...
Based-on: m-c 1479659/0
2023-04-03 16:50:21 +02:00
Martok
4d76651ff2
Issue #2173 - Store the info about the existence of the default case into the switch ParseNode
...
Based-on: m-c 1477157
2023-04-03 16:50:21 +02:00
Martok
33d29efe43
Issue #2173 - Add a new PNK_PROPERTYNAME to hold location information about property access name
...
Based-on: m-c 1378808/2
2023-04-03 16:50:21 +02:00
Martok
416d9683fe
Issue #2173 - Add a new PNK_ARGUMENTS node type for call argument lists
...
Also change PNK_GENEXP (not supported by upstream) to a PN_BINARY node
Based-on: m-c 1378808/1
2023-04-03 16:50:06 +02:00
Martok
3481496454
Issue #2173 - Fix exporting array and object binding patterns
...
Examples:
export const [name1, name2] = [1, 2];
export var {...name} = get;
Based-on: m-c 1446811, m-c 1462286
2023-04-03 15:33:21 +02:00
Martok
299090f227
Issue #2155 - Follow-up: Reorder super-property evaluation order per latest spec change
...
Fix regression from difference between Interpreter (old) and ElemOpEmitter (new). We don't have
any Ion/IC support for these ops.
Based-on: m-c 1472211
2023-04-03 14:52:45 +02:00
Moonchild
9d03184aa2
Merge pull request 'Also use xz compression for packaging FreeBSD builds.' ( #2188 ) from jobbautista9/UXP:freebsd-xz into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2188
2023-04-03 09:40:47 +00:00
Job Bautista
7598e16eaa
No issue - FreeBSD builds should also use xz compression for packaging.
...
Currently it defaults to bzip2, which has been obsolete for us.
2023-04-03 15:46:55 +08:00
Moonchild
85f0301dd8
Merge pull request 'Fix debug build bustage with shared Spidermonkey.' ( #2187 ) from jobbautista9/UXP:62-jsprincipals-debug-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2187
2023-04-02 13:36:39 +00:00
Job Bautista
d3ed316788
Issue #62 - Follow-up: Fix debug build bustage with shared Spidermonkey.
...
A method marked with dllimport shouldn't be defined.
2023-04-02 12:47:04 +08:00
Moonchild
131409a24b
Merge pull request 'Increase mozjemalloc page cache size from 1 MiB to 16 MiB.' ( #2185 ) from jobbautista9/UXP:2184-mozjemalloc-12 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2185
2023-04-01 07:37:59 +00:00
Job Bautista
4a052de454
Issue #2184 - Increase mozjemalloc page cache size from 1 MiB to 16 MiB.
...
We don't need the reduced memory overhead as we are not using e10s. This
should speed up JS by a point according to Speedometer 2.1.
2023-04-01 10:42:03 +08:00
Moonchild
c36eae9bf5
Merge pull request 'Add sys/auxv.h to system-headers' ( #2183 ) from jobbautista9/UXP:2181-auxv into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2183
2023-03-30 09:40:57 +00:00
Job Bautista
da09b1d972
Issue #2181 - Add sys/auxv.h to system-headers
...
This should fix getauxval being undefined when building highway on Linux ARM64.
2023-03-30 14:39:44 +08:00
Moonchild
93addf962f
Merge pull request 'Fix drawing in titlebar on Mac when building with the Big Sur 11.0 SDK.' ( #2182 ) from dbsoft/UXP:drawintitlebar into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2182
2023-03-29 20:32:48 +00:00
Brian Smith
c09fb2cd97
No Issue - Fix drawing in titlebar on Mac when building with the Big Sur 11.0 SDK.
...
On Intel we build with the 10.12 SDK so this problem is avoided.
Also Pale Moon no longer supports drawing in the titlebar in the front end.
However Basilisk does and built for ARM the tabs were cut off by the native titlebar.
This uses the new APIs introduced in SDK 10.10 and 11.0 to draw in the titlebar.
2023-03-29 02:46:32 -05:00
Moonchild
ad7ffc0525
Issue #2180 - Follow-up: Move sentinel check up a bit.
2023-03-28 17:59:19 +02:00
Moonchild
500ece900a
Issue #2180 - Add pref to control NSS TLS 1.3 protocol downgrade sentinel
2023-03-28 15:13:09 +02:00
Moonchild
f90106bd7e
Merge pull request 'Refactor more BytecodeEmitters' ( #2179 ) from martok/UXP-contrib:mr/bce-split2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2179
2023-03-27 14:10:07 +00:00
Moonchild
5a0b5b05da
Merge pull request 'Issue #2175 - Fix build bustage in WebRTC.' ( #2177 ) from tvall43/UXP:master into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2177
2023-03-27 14:08:41 +00:00
Moonchild
77692ac0bf
Merge pull request 'Fix JS_SHARED_LIBRARY and always build Spidermonkey and ICU as shared lib in Windows.' ( #2164 ) from jobbautista9/UXP:62-shared-mozjs into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2164
2023-03-27 14:07:14 +00:00
Martok
1a24ac966e
Issue #2155 - Add SwitchEmitter
...
Based-on: m-c 1456006/{0,1}
2023-03-26 20:20:16 +02:00
Martok
c26df1a48a
Issue #2155 - Move TryEmitter and ForOfLoopControl to TryEmitter.{cpp.h} and ForOfLoopControl.{cpp.h}
...
Based-on: m-c 1460489/5
2023-03-26 20:20:16 +02:00
Martok
0a2eb24435
Issue #2155 - Move NestableControl classes except ForOfLoopControl to BytecodeControlStructures.{cpp.h}
...
Based-on: m-c 1460489/3
2023-03-26 20:20:15 +02:00
Martok
2e2855cf04
Issue #2155 - Split Nestable to ds/ and EmitterScope to EmitterScope.{cpp.h}
...
Based-on: m-c 1351107/17, m-c 1460489/2
2023-03-26 20:20:15 +02:00
Moonchild
73d78767c8
Merge pull request 'Don't reconstruct the parent when tearing down display:contents nodes' ( #2178 ) from 2176 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2178
2023-03-26 18:06:09 +00:00
Timothy Valldeperas
5b6c6b98d2
Issue #2175 - Fix build bustage in WebRTC.
2023-03-26 01:16:13 -05:00
Job Bautista
f23839412e
Issue #62 - Always build Spidermonkey as shared lib in Windows.
...
Shared JS is confirmed working fine in Windows after a week of testing.
Non-Windows will have to wait unfortunately. The JS_SHARED_LIBRARY option is
kept for easy testing on those unsupported platforms.
2023-03-26 13:14:59 +08:00
Job Bautista
86b77f1284
Issue #2165 - Disable LNK4217 and LNK4286 warnings when linking ICU as they're too spammy.
2023-03-26 13:14:10 +08:00
Moonchild
ecda3426e6
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-03-26 00:15:45 +01:00
Moonchild
eae71465d0
Merge pull request 'Don't discard event state mask when matching ::slotted() or :host arguments' ( #2174 ) from FranklinDM/UXP-contrib:work_css-host-slotted-retain-event-states into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2174
2023-03-24 12:18:15 +00:00
Job Bautista
19b76a68ac
Issue #324 - Follow-up: Remove more traces of *INTL_API.
...
The trace in Spidermonkey's old-configure is causing the MOZ_CONFIG_ICU function
to be called twice, which is not desirable as it can cause the MOZ_SHARED_ICU
check in build/autoconf/icu.m4 to fail and build an ICU data file even if we're
building ICU as a shared library.
2023-03-24 20:12:47 +08:00
FranklinDM
9365fbd8ad
Issue #2135 - Don't discard event state mask when matching ::slotted() or :host arguments
...
This should fix issues with selectors like :host(:hover) that continue to be matched although the cursor is no longer hovering over those elements.
2023-03-24 19:39:30 +08:00
Job Bautista
431f782f17
Issue #2165 - Follow-up: Always build ICU as shared lib in Windows.
2023-03-24 17:51:39 +08:00
Job Bautista
ee870812ff
Revert "Issue #2165 - Follow-up: No longer support bundling the ICU data file into packaging, fold it into the ICU shared library, and always build ICU shared."
...
This reverts commit 0c63f5a273 .
Building shared ICU is currently broken in non-Windows, so we need the option for now.
2023-03-24 17:45:16 +08:00
Moonchild
434379eb34
Issue #2161 - Ctrl + Enter should cause keypress event even though the
...
key combination doesn't input any character
Currently, we dispatch keypress event when Enter is pressed without
modifiers or only with the Shift key (line break).
However, other browsers dispatch keypress events for Ctrl + Enter also
even if it doesn't cause any text input.
So, we should fire keypress events for Ctrl + Enter, even in strict
keypress dispatching mode. Note that with other modifiers, it depends on
the browser and/or platform and we can't dispatch the event for
consistent behavior.
This means web developers shouldn't rely one keypress events to catch
Alt + Enter, Meta + Enter and two or more modifiers + Enter.
Based on BZ 1438133
Resolves #2161
2023-03-23 22:35:03 +01:00
Moonchild
2f3f8e13eb
Merge branch 'css-slotted-pseudo-rebased'
2023-03-23 12:46:34 +01:00
FranklinDM
ef7ff8da4b
Issue #1592 - Follow-up: Don't post a restyle event if restyleElement is null
...
This fixes a potential crash caused if restyleElement is null.
2023-03-23 12:18:04 +01:00
FranklinDM
2733585a3f
Issue #1592 - Part 10: Slot elements should restyle their parent on attribute changes
2023-03-23 12:18:04 +01:00
FranklinDM
039b67f6c6
Issue #1592 - Part 9: Post a restyle event after changing the slot of a slottable
2023-03-23 12:18:03 +01:00
FranklinDM
c0e6ba933e
Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute instead of the slottable when matching ::slotted()
2023-03-23 12:18:02 +01:00
FranklinDM
4665c79582
Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.
2023-03-23 12:18:02 +01:00
FranklinDM
7c82808510
Issue #1592 - Part 6: Allow pseudo-classes with a forgiving selector list argument to follow pseudo-elements
...
Pseudo-classes with a forgiving selector list argument are allowed to follow a pseudo-element, but must treat any selector that is not of the same type as invalid. It doesn't make any sense, but that's the behavior of other tainted browsers.
2023-03-23 12:18:01 +01:00
FranklinDM
c5cb2983e6
Issue #1592 - Part 5: Use flattened element tree when looking for a parent while matching ::slotted()
2023-03-23 12:18:01 +01:00
FranklinDM
9c5999c8bc
Issue #1592 - Part 4: Walk ::slotted()-containing rules for slottables
...
- Check against all selector parts and not the leftmost selector only for ::slotted()
- Walk rules for ::slotted() regardless if the shadow root is opened/closed
- Ensure that ::slotted() rules are walked in the right order
- Fix ::slotted inheritance from topmost shadow root
2023-03-23 12:18:00 +01:00
FranklinDM
8313fea7c5
Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ::slotted()
2023-03-23 12:17:59 +01:00
FranklinDM
5fc444a0b6
Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a pseudo-class
...
- Block slot elements from being matched by ::slotted
- Ensure ::slotted() is serialized as a pseudo-element
- Add pref to control whether the pseudo-class is enabled
2023-03-23 12:17:59 +01:00
FranklinDM
d2be38e92b
Issue #1592 - Part 1c: Pass SelectorParsingFlags as a reference
2023-03-23 12:17:58 +01:00
FranklinDM
fc5d7a94b7
Issue #1592 - Part 1b: Move <slot> UA rule to html.css
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1468127
2023-03-23 12:17:58 +01:00
FranklinDM
8206716e8d
Issue #1592 - Part 1a: Prevent crashing if a slot element was selected via DOM Inspector
2023-03-23 12:17:57 +01:00
Moonchild
376bae925b
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-03-23 01:57:44 +01:00
Moonchild
494ec06817
Merge pull request 'Follow-up: Fix :host matching from inside the shadow tree' ( #2169 ) from FranklinDM/UXP-contrib:work_css-host-in-shadow-tree-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2169
2023-03-23 00:33:59 +00:00
FranklinDM
ef8565458e
Issue #2061 - Follow-up: Silence compiler warnings for libjxl
2023-03-23 01:12:42 +01:00
Moonchild
537a5d447e
Issue #2171 - Skip over shadow nodes that don't have an owning node.
...
Resolves #2171
2023-03-23 00:29:13 +01:00
Moonchild
da24537414
Merge pull request 'Port ByteCodeEmitter helper classes' ( #2159 ) from martok/UXP-contrib:mr/bce-emitters into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2159
2023-03-22 16:20:08 +00:00
FranklinDM
9700f5557b
Issue #1593 - Follow-up: Fix :host matching from inside the shadow tree
...
Previously, we'd match :host despite the element having a different shadow root from the one that we currently have. Also, there's a test where :host should be blocked from matching if it is a descendant of an explicit universal selector.
2023-03-20 20:15:13 +08:00
Job Bautista
0c63f5a273
Issue #2165 - Follow-up: No longer support bundling the ICU data file into packaging, fold it into the ICU shared library, and always build ICU shared.
...
This removes two variables in the build system: MOZ_ICU_DATA_ARCHIVE and
MOZ_SHARED_ICU.
Per discussion in PR #2164 , it's now preferred to fold the ICU data into the new
shared library.
This effectively means --enable-shared-icu is no longer a thing. UXP apps must
update their packaging manifest to avoid breakage.
2023-03-19 10:55:00 +08:00
Moonchild
16baa04533
Revert "[widget] Linux GTK3: Detach accessible from moz_container before it's deleted"
...
This reverts commit 465a18f342 .
Resolves #2168
2023-03-18 19:57:19 +01:00
Job Bautista
eac3436960
Issue #2165 - Build ICU as a shared library if we're building Spidermonkey shared.
...
It seems that if we're going to enable JS_SHARED_LIBRARY, we need ICU to be a
shared library too in order to prevent code duplication in mozjs.dll bloating
it to a whopping 21 MB.
This unfortunately means we have to fold icudata back to icu itself. But since
icudata is still separated from libxul (which is what really matters for #1451 ),
I think this is a fair compromise.
Building ICU as shared is offered as an option via --enable-shared-icu. But
technically you really need --enable-shared-icu if you're going to use
--enable-shared-js. Unfortunately I can't make configure exit with an error if
MOZ_SHARED_ICU is not defined when JS_SHARED_LIBRARY is enabled, because options
are controlled by different configure scripts (icu is based on bash, while js is
based on python), and I have no idea how to pass MOZ_SHARED_ICU to js's
moz.configure.
Tag #62
2023-03-19 00:16:46 +08:00
Moonchild
09513970d8
Issue #2166 - Follow-up: Fix style nits.
2023-03-18 15:35:38 +01:00
Moonchild
1a19248860
Merge pull request 'Remove mozilla::AlignedStorage' ( #2167 ) from FranklinDM/UXP-contrib:work_remove-aligned-storage into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2167
2023-03-18 14:24:31 +00:00
Moonchild
df5696425e
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:10:59 +01:00
FranklinDM
d8a518b4db
Issue #2166 - Part 6: Remove mozilla::AlignedStorage
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1341951
2023-03-17 20:29:23 +08:00
FranklinDM
a343d564a6
Issue #2166 - Part 5c: Use override keyword for all virtual methods of Recover Instructions
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1341951
2023-03-17 20:29:22 +08:00
FranklinDM
5d6aca7e55
Issue #2166 - Part 5b: Replace RInstructionStorage copy by a cloneInto function on every RInstruction
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1341951
2023-03-17 20:29:22 +08:00
FranklinDM
705e2e17be
Issue #2166 - Part 5a: Use alignas/alignof inside RInstructionStorage
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1341951
2023-03-17 20:29:21 +08:00
FranklinDM
53adec5e96
Issue #2166 - Part 4: Use alignas/alignof to define Variant's internal raw storage
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1338374
2023-03-17 20:29:20 +08:00
FranklinDM
88d2d5eef6
Issue #2166 - Part 3: Make tl::Min/Max variadic
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1338374
2023-03-17 20:29:19 +08:00
FranklinDM
5e6a0efb65
Issue #2166 - Part 2: Use alignas/alignof in MaybeOneOf
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1338374
2023-03-17 20:29:19 +08:00
FranklinDM
0c35e43441
Issue #2166 - Part 1: Use alignas/alignof for public JS::ProfilingFrameIterator's internal storage
...
... of a private wasm or JIT profiling frame iterator.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1338374
2023-03-17 20:29:18 +08:00
Moonchild
9477683481
Issue #1911 - Follow-up: Filter out illegal file extensions also.
...
We already did this for file names, just not extensions.
2023-03-16 17:14:07 +01:00
Moonchild
465a18f342
[widget] Linux GTK3: Detach accessible from moz_container before it's deleted
2023-03-16 16:49:56 +01:00
Moonchild
4435cfeeae
[GFX] Add some sanity checks and clamps to SurfaceData calculations.
2023-03-16 14:39:31 +01:00
Moonchild
8577fab815
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-16 13:38:26 +01:00
Job Bautista
972e0410ca
Issue #62 - Fix xul.dll link bustage related to JS::ubi::DominatorTree.
...
This is the one I don't understand how it fixed the bustage. Why is it needed
to remove JS_PUBLIC_API..? It would seem counter-intuitive, but it wasn't...
2023-03-16 14:02:16 +08:00
Job Bautista
b805d9da66
Issue #62 - Fix xul.dll link bustage relating to JSErrorNotes.
2023-03-16 14:02:16 +08:00
Job Bautista
948268ffde
Issue #62 - Fix xul.dll link bustage related to MovableCellHasher.
...
The unsafeSet method is based on Jon Coppeard's part 2 patch for Mozilla bug
1306008. This is needed because of the use of unsafeSet in rekey() of
MovableCellHasher<JS::Heap<T>>
2023-03-16 14:02:16 +08:00
Job Bautista
bddc8b630c
Issue #62 - Get --enable-shared-js and --enable-export-js working again, and fix link bustage related to ICU when doing shared lib
2023-03-16 14:02:16 +08:00
FranklinDM
68f456b5fd
Issue #2148 - Shrink Vector from (usually) four pointers in size to three
...
when no inline storage is used.
See Bug 1338374
2023-03-15 13:02:23 +01:00
FranklinDM
9475b959d7
Issue #2148 - Make Vector not use AlignedStorage for its inline element storage
...
See Bug 1338374 1/2
2023-03-15 13:01:21 +01:00
Job Bautista
17e261ae9b
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-15 13:00:37 +01:00
Job Bautista
1122d6cba6
Issue #2148 - Don't null out RegExpObject -> RegExpShared pointer on GC.
...
Follow-up for issue #2083 .
Taken from Mozilla bug 1378736.
2023-03-15 12:59:35 +01:00
Moonchild
79201ad741
Merge pull request 'Support for notarizing during DMG package.' ( #2163 ) from dbsoft/UXP:macnotarize into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2163
2023-03-15 11:50:34 +00:00
Martok
c3a35f75a2
Issue #2155 - Fix wrong assertion
...
(x) = function() {..} is an extremely sparsely documented way to prevent function name inference.
Modeled after how BytecodeEmitter::emitInitializer does it.
2023-03-15 10:29:12 +01:00
Martok
6bb4747ff3
Issue #2155 - Fix debug build
2023-03-14 23:28:13 +01:00
Brian Smith
26b3d4c151
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-14 15:28:51 -05:00
Moonchild
31e7e7e66c
Merge pull request 'Fix all deprot in builtin/intl' ( #2162 ) from jobbautista9/UXP:deprot-hunt3 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2162
2023-03-14 16:30:59 +00:00
Job Bautista
396549c5ac
Issue #2046 - Follow-up: Fix deprot in builtin/intl
...
Missing a couple of includes.
Tag #80
2023-03-14 22:39:27 +08:00
Martok
0f87c37c5d
Issue #2155 - Remove now-unused functions
2023-03-13 00:37:54 +01:00
Martok
482ef6ac19
Issue #2155 - Fix BytecodeEmitter::emitArguments for our ParseNode tree
...
This resolves the differences in storage of call arguments between Mozilla's and our ParseNode tree.
2023-03-13 00:37:54 +01:00
Martok
b26511f287
Issue #2155 - Add PropOpEmitter, ElemOpEmitter, NameOpEmitter, CallOrNewEmitter
...
Attn: this plain patch port still contains issues caused by differences in the
ParseNode tree that will be fixed in the following commits.
Based-on: m-c 1466000/{7-10}
2023-03-13 00:37:54 +01:00
Martok
da908629c1
Issue #2155 - Refactor BytecodeEmitter in preparation for *Emitter work
...
This removed a bit of reduncancy and makes stack building easier to follow.
- Move call context handling from BytecodeEmitter::emitGetNameAtLocation to BytecodeEmitter::emitCalleeAndThis
- Add stack comments for prop and elem related methods in BytecodeEmitter
- Remove emitAtopOp with NameNode*
- Pass JSOp to BytecodeEmitter::emitAssignment (modified)
- Add BytecodeEmitter::emitGetFunctionThis variant with offset
Based-on: m-c 1466000/{2-6}
2023-03-13 00:37:53 +01:00
Martok
6a6777e73e
Issue #2155 - Simplify BytecodeEmitter::isRestParameter
2023-03-13 00:37:53 +01:00
Martok
c7dff3002f
Issue #2155 - Split TDZCheckCache, IfEmitter/InternalIfEmitter, JumpList from BytecodeEmitter
2023-03-13 00:37:53 +01:00
FranklinDM
9f009467d8
No issue - Make content-type on JAR channels behave the same as HTTP channels
...
This ensures that the content type is also determined when opening JAR channels both synchronously and asynchronously. Current m-c modifies only the async portion, while the mentioned commit below modifies only the sync portion. This commit does it for both.
Partially based on 425677ada7 and bug 1757604.
2023-03-12 20:19:03 +01:00
Moonchild
d3d61f478c
Merge pull request 'Fix some deprots in js' ( #2156 ) from jobbautista9/UXP:deprot-hunt2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2156
2023-03-12 16:49:59 +00:00
Moonchild
5ed6e2e676
Merge pull request 'Use pre-C++17 static_assert() by adding reason for assert.' ( #2157 ) from dbsoft/UXP:fix_static_assert into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2157
2023-03-12 16:47:59 +00:00
Brian Smith
3089da7aeb
No issue - Use pre-C++17 static_assert() by adding reason for assert.
...
This fixes warnings with clang and build failures with Visual C versions prior to 2022.
2023-03-12 09:20:15 -05:00
Job Bautista
26201f3795
Issue #80 - Move implementation of CPOWTimer::CPOWTimer to header.
...
Fixes link bustage in xul.dll
Inline functions must be implemented in the header.
2023-03-12 22:04:36 +08:00
Job Bautista
4ca103d1b8
Issue #80 - Fix deprot in js/xpconnect.
...
I think we never deunified js/xpconnect before. But if we're going to ever build
this tree deunified in the future, there's nothing stopping us now!
2023-03-12 20:26:26 +08:00
Job Bautista
1d594e9b3e
Issue #80 - Fix deprot in js/ipc.
...
I think we never deunified js/ipc before. But if we're going to build this tree
deunified ever in the future, there's nothing stopping us now!
2023-03-12 20:26:26 +08:00
Job Bautista
b29ef13cd6
Issue #2046 - Follow-up: Fix deprot in RelativeTimeFormat.
...
Found while building js/src deunified, with the exception of builtin/intl.
Tag #80 .
2023-03-12 20:26:25 +08:00
Moonchild
16c5b95b91
Bump Goanna milestone to 6.1
2023-03-12 10:54:48 +01:00
Moonchild
e848bea43f
Merge pull request 'Modify :not() selector to accept a complex selector list' ( #2151 ) from FranklinDM/UXP-contrib:work_css-not-selector-list-support into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2151
2023-03-11 17:57:09 +00:00
Moonchild
4c4bc3ca0f
Merge pull request 'Destroy the host frame and restyle when there are content changes' ( #2152 ) from FranklinDM/UXP-contrib:work_wc-content-change-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2152
2023-03-11 07:08:38 +00:00
Moonchild
014e4b6e7f
Merge pull request 'Follow-up: Ensure empty selector lists aren't iterated when serialized' ( #2154 ) from FranklinDM/UXP-contrib:work_css-empty-selector-list-serialization-fix into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2154
2023-03-11 07:02:24 +00:00
FranklinDM
ac589d72a2
Issue #2078 - Follow-up: Ensure empty selector lists aren't iterated when serialized
...
Really odd that this wasn't caught/doesn't cause any issues on MSVC/unoptimized GCC. Must've been luck, I guess.
2023-03-11 12:09:53 +08:00
FranklinDM
14746314c4
Issue #2135 - Destroy the host frame and restyle when there are content changes
...
This is likely inefficient, but I haven't found a way other than this to ensure that the host frame is updated if the inserted/removed content isn't slotted. I'm assuming that Firefox is handling this somewhere else (and may have been even moved to Stylo), but was mentioned in an m-c bug we haven't seen yet. In fact, this is actually similar to how we handled elements passed to ContentInserted before landing e31ed5b074 .
2023-03-11 00:04:53 +08:00
FranklinDM
18c6aa0252
Issue #2137 - Part 4: Fix namespace regression
2023-03-10 19:14:26 +08:00
FranklinDM
40c9c92116
Issue #2137 - Part 3: Don't always use the internal pseudo-class for handling negations
2023-03-10 19:14:25 +08:00
FranklinDM
e9a1859915
Issue #2137 - Part 2: Implement SelectorParsingFlags and use it to pass info around
2023-03-10 19:14:25 +08:00
FranklinDM
de225cca0d
Issue #2137 - Part 1: Modify :not() selector to accept a complex selector list
2023-03-10 19:14:24 +08:00
Moonchild
476dec2351
Issue #2135 - Follow-up: Check for aElement not being null
...
This was introduced to Make <link rel="stylesheet"> work in shadow trees.
eElement can, however, be `null` here and if so, it would crash.
2023-03-10 11:44:28 +01:00
Moonchild
1affd523ec
Merge pull request 'Root the RegExpShared in RegExpMacroAssembler.' ( #2150 ) from jobbautista9/UXP:2148-rootregexpshared into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2150
2023-03-09 09:02:10 +00:00
Job Bautista
21668cd7d3
Issue #2148 - Root the RegExpShared in RegExpMacroAssembler.
...
Based on Mozilla bug 1355050.
2023-03-09 14:52:14 +08:00
Moonchild
713ada0ccf
Merge pull request 'Follow-up: Ensure document is not null in nsImageLoadingContent::BindToTree' ( #2147 ) from FranklinDM/UXP-contrib:work_wc-image-followup into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2147
2023-03-08 08:28:08 +00:00
FranklinDM
a4e18703e9
Issue #2135 - Follow-up: Ensure document is not null in nsImageLoadingContent::BindToTree
2023-03-08 12:14:27 +08:00
Moonchild
9fafaedafb
Issue #2146 - Remove nsChannelClassifier/nsIURIClassifier
...
Resolves #2146
2023-03-08 01:19:47 +01:00
Moonchild
e923f5aacd
Merge branch 'trackingprotection-cleanup'
2023-03-07 17:38:18 +01:00
Moonchild
3f7b0b7164
Issue #1693 - Follow-up: restore exported NSS symbols for mailnews.
...
This restores the erroneously-removed CMS* symbol exports, as well as a
few NSS functions that are likely to be used or have utility value in
applications.
2023-03-07 17:36:12 +01:00
Moonchild
dd32c96ac6
Issue #2133 - Part 4: Remove TrackingProtection var in classifier.
2023-03-07 11:35:36 +01:00
Moonchild
71a3487554
Issue #2133 - Part 3: Remove TrackingProtection plumbing
2023-03-07 01:37:28 +01:00
Moonchild
517ab728ac
Issue #2133 - Part 2: Remove nsIPrivateBrowsingTrackingProtectionWhitelist
...
This removes the in-memory whitelist for PB mode.
2023-03-07 00:01:58 +01:00
Moonchild
4d38cb76c2
Issue #2133 - Part 1: Remove private browsing TP pref.
...
This removes selectively enabling TP mode in PB windows.
2023-03-06 22:37:16 +01:00
Moonchild
98e96503e6
Issue #1693 - Follow-up: restore exported NSS symbol for debug builds.
...
Tag #1382
2023-03-06 15:18:25 +01:00
Moonchild
a75c4164e1
Merge pull request 'Implement CSS env() Environment Variables' ( #2144 ) from martok/UXP-contrib:mr/css-env2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2144
2023-03-06 10:56:05 +00:00
Martok
958b02c358
Issue #2143 - Implement CSS env() Environment Variables
2023-03-05 23:06:55 +01:00
Moonchild
5b9f0fd796
Merge pull request 'Implement CSS inset property' ( #2140 ) from FranklinDM/UXP-contrib:work_css-inset-property into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2140
2023-03-05 21:55:21 +00:00
Moonchild
6cdb875cc5
Merge pull request 'Incremental WebComponents merge' ( #2139 ) from FranklinDM/UXP-contrib:work_wc-incremental-1 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2139
2023-03-05 20:53:16 +00:00
FranklinDM
f7e1c71930
Issue #2136 - Part 2: Regenerate devtools CSS database
2023-03-05 07:54:18 +08:00
FranklinDM
3e37869990
Issue #2136 - Part 1: Implement CSS inset property
2023-03-05 07:54:11 +08:00
FranklinDM
ce47a81c57
Issue #2135 - Follow-up: Fix potential crash if shadow root is null
2023-03-05 07:41:07 +08:00
Moonchild
e7cffa5316
Issue #2046 - correct debug assert for intl_FormatRelativeTime()
...
Probably fallout from the refactoring in #2109
Tag #1382
2023-03-04 20:42:22 +01:00
FranklinDM
50124e9ea6
Issue #2135 - Follow-up: Fix typo
2023-03-04 23:48:07 +08:00
FranklinDM
d8befb4395
Issue #2135 - Follow-up: Fix crash for passing nullptr as an argument to the aNodesWithProperties parameter
2023-03-04 23:45:46 +08:00
Moonchild
d38d687150
Merge pull request 'Update NSPR to 4.35 and NSS to 3.79.4' ( #2138 ) from jobbautista9/UXP:1693-nss-nspr-3_79_4-update into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2138
2023-03-04 13:59:11 +00:00
FranklinDM
cd76bf5aa1
Issue #2135 - Bug 1433669/Part 2: Flush the document instead of the shell in ContentEventHandler
...
* Unlike the original patch, I went with just getting a reference to the document rather than replacing mPresShell with mDocument.
2023-03-04 21:32:19 +08:00
FranklinDM
851e691089
Issue #2135 - Bug 1433669/Part 1: Remove dead function
2023-03-04 21:32:18 +08:00
FranklinDM
055ccba3c3
Issue #2135 - Bug 1419803: Use GetComposedDoc instead of GetUncomposedDoc in ContentEventHandler
2023-03-04 21:32:18 +08:00
FranklinDM
6cc4505e14
Issue #2135 - Bug 1425864: Ensure printing documents which have shadow DOM works
2023-03-04 21:32:17 +08:00
FranklinDM
8caa472402
Issue #2135 - Bug 1393806/Part 3: Change dom::ReparentWrapper to take an ErrorResult
...
* Bug 1393806 (Part 4) landed as part of Issue #1118 .
* Account for ReparentWrappersInSubtree, introduced in 1466991
2023-03-04 21:32:17 +08:00
FranklinDM
f9ee95f207
Issue #2135 - Bug 1393806/Part 2: Modify AdoptNodeIntoOwnerDoc to use the non-XPCOM version of document.AdoptNode
...
* Unlike the original patch, this does not remove the XPCOM version of Document.adoptNode/importNode to avoid breaking other applications that might be using those functions.
2023-03-04 21:32:16 +08:00
FranklinDM
88b54a8b67
Issue #2135 - Bug 1393806/Part 1: Change nsNodeUtils cloning/adopting stuff to use an ErrorResult for errors
...
This will allow us to propagate out more informative errors in some cases.
2023-03-04 21:32:16 +08:00
FranklinDM
744da8ddb3
Issue #2135 - Bug 1414692: Adopt shadow roots when adopting a shadow host across documents
2023-03-04 21:32:15 +08:00
FranklinDM
6a1b4a9e3a
Issue #2135 - Bug 1329877: Optimize AncestorFilter usage in lazy frame construction
2023-03-04 21:32:15 +08:00
FranklinDM
7669ddb4b7
Issue #2135 - Bug 1518795: Properly track responsive content in a connected ShadowRoot
2023-03-04 21:32:14 +08:00
FranklinDM
8edbed3761
Issue #2135 - Implement sequential focus navigation for shadow DOM
...
This covers the following:
Bug 1413834 Implement sequential focus navigation regarding shadow DOM
> Bug 1430020 Let sequential focus navigation in shadow DOM enter iframes
> Bug 1430701 Handle focus navigation on frameless shadow hosts in light DOM
> Bug 1430692 Handle focus navigation on NAC in shadow DOM
> Bug 1453693 Ensure sequential focus navigation works in Shadow DOM and add some tests
> Bug 1466581 Handle sequential focus also in nested shadow DOM
> Bug 1481079 Shadow DOM hosts should be focusable
> Bug 1507101 Use StyleChildrenIterator instead of custom frame tree walking code to handle NAC inside shadow dom
> Bug 1512043 Ensure traverse all nodes owned by the top level shadow host
> Bug 1512457 Fix various cases that focus navigation doesn't work well with frameless shadow host
> Bug 1513141 Really minor nsFocusManager cleanup
> Bug 1519090 Keyboard focus is trapped inside <slot>
> Bug 1528034 Make IsHostOrSlot null-safe
> Bug 1544826 Wrong focus navigation behavior when the root element is a shadow root
>> Bug 1500273 Ensure backward focus navigation works in Shadow DOM
2023-03-04 21:32:14 +08:00
FranklinDM
125b8ae43c
Issue #2135 - Bug 1455891/Part 1: Improve StyleChildrenIterator
2023-03-04 21:32:13 +08:00
FranklinDM
59dbe81c92
Issue #2135 - Bug 1410578: Make <link rel="stylesheet"> work in shadow trees
2023-03-04 21:32:13 +08:00
FranklinDM
00c570d27b
Issue #2135 - Bug 1453789: Remove Element.createShadowRoot
2023-03-04 21:32:12 +08:00
FranklinDM
2fbefbbc58
Issue #2135 - Bug 1066965: Make contentEditable and spellchecking to work in Shadow DOM
2023-03-04 21:32:12 +08:00
FranklinDM
59b4e5ceb2
Issue #2135 - Bug 1356496: Don't use nsIDOM* in ConfirmSelectionInBody
2023-03-04 21:32:11 +08:00
FranklinDM
6ffdfa793e
Issue #2135 - Bug 1430301: Implement ShadowRoot.elementFromPoint/elementsFromPoint
2023-03-04 21:32:11 +08:00
FranklinDM
fb9484caa3
Issue #2135 - Bug 1438129: Remove ShadowRoot.applyAuthorStyles.
2023-03-04 21:32:10 +08:00
FranklinDM
4390724666
Issue #2135 - Bug 1323815: FocusEvent.relatedTarget should work consistently with MouseEvent.relatedTarget
...
* This incorporates changes from Bug 1413102.
2023-03-04 21:32:10 +08:00
FranklinDM
a69e82b0d7
Issue #2135 - Bug 1413102 (Follow-up): Ignore current target because of shadow DOM retargeting
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1466581
2023-03-04 21:32:10 +08:00
FranklinDM
3d82baddf3
Issue #2135 - Bug 1413102: Ensure Shadow DOM boundaries are dealt properly in event handling
...
* RE: BasicEvents.h - our WidgetEvent is not movable (yet), so the change that requires that wasn't included.
* Parts of this use code that was introduced in bug 1427511. For now, they were replaced with their equivalents.
2023-03-04 21:32:09 +08:00
FranklinDM
60d420fe71
Issue #2135 - Bug 1430305: Implement ShadowRoot.fullscreenElement
2023-03-04 21:32:09 +08:00
FranklinDM
9e2c43705b
Issue #2135 - Bug 1430303: Implement ShadowRoot.pointerLockElement
2023-03-04 21:32:08 +08:00
Job Bautista
f0e4bf4035
Issue #1693 - Update old-configure and force clobber
...
NSS 3.79.4 and NSPR 4.35 upgrades require a clobber.
2023-03-04 13:58:00 +08:00
Job Bautista
1c811a1476
Issue #1693 - Update NSS symbols file for 3.79.4 upgrade
...
Based on latest SeaMonkey's security/nss.symbols, as well as some
unresolved external symbols I found myself.
2023-03-04 13:57:07 +08:00
Job Bautista
43c816cd19
Issue #1693 - Update NSS to 3.79.4
2023-03-04 13:13:49 +08:00
Job Bautista
409d3e66de
Issue #1693 - Update NSPR to 4.35
2023-03-04 13:04:26 +08:00
Job Bautista
c7aa6e40f6
Issue #1693 - Use scoped enums for IDBTransaction.
...
Based on a patch from Mozilla bug 1598164.
Needed due to identifier collision between NSS and IDBTransaction.
Co-authored by: Simon Giesecke <simon.giesecke@gmail.com >
Co-authored by: Matt A. Tobin <email@mattatobin.com >
2023-03-04 13:02:13 +08:00
Moonchild
8744033a34
Issue #1361 - Enable WebComponents' getRootNode by default.
...
Since we're enabling WebComponents, we should enable this too.
TODO: merge the two relevant prefs.
2023-03-01 23:49:34 +01:00
Moonchild
4b7f6babe3
Merge pull request 'CE define must upgrade elements in the shadow-including tree order' ( #2134 ) from FranklinDM/UXP-contrib:work_wc-define-upgrade-in-shadow-including-tree-order into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2134
2023-02-28 08:32:23 +00:00
FranklinDM
059af6d121
Issue #1375 - Part 2: customElements.define must upgrade custom element in shadow-including tree order
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1326028
2023-02-28 07:48:27 +08:00
FranklinDM
9e2751484a
Issue #1375 - Part 1: Allow moving a reference into nsInterfaceHashtable
2023-02-28 07:47:27 +08:00
Moonchild
cd86d9ce3f
No Issue - Remove speech recognition pref and enable TTS API by default.
...
Speech recognition was removed a while back. The pref is just leftover.
Having the TTS API available will provide some accessibility benefits
for users, so flip that on while we're here.
2023-02-28 00:42:11 +01:00
Moonchild
6da7d30e76
No Issue - Enable MSE for WebM on all platforms.
...
WebM is certainly mature enough to have hooked into MSE (default on
Linux and other for years now).
2023-02-28 00:40:26 +01:00
Moonchild
953a2eab75
Issue #1361 - Enable WebComponents by default in the platform.
2023-02-28 00:38:44 +01:00
Moonchild
f3c063a868
Issue #2131 - Remove image.webp.enabled preference
2023-02-27 19:27:19 +01:00
Moonchild
41448d401d
Merge pull request 'Remove shadow tree hacks in the frame constructor and use correct insertion point during reconstruction' ( #2130 ) from FranklinDM/UXP-contrib:work_sdom-1404789 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2130
2023-02-27 09:20:32 +00:00
FranklinDM
679e53697c
Issue #1375 - Follow-up: Get the insertion point right when reconstructing direct children of a shadow root
...
This should've been changed alongside bug 1404789 when it landed.
2023-02-27 13:15:43 +08:00
FranklinDM
047e44d5c7
Issue #1375 - Follow-up: Remove shadow tree hacks in the frame constructor
...
This should've been removed alongside bug 1404789 when it landed.
2023-02-27 13:15:37 +08:00
Moonchild
eff173129a
Merge branch 'full-range-video'
2023-02-26 21:15:12 +01:00
Moonchild
a578a28dd8
Merge pull request 'RGB video playback' ( #2125 ) from u3shit/UXP:gbrp-video into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2125
2023-02-26 20:14:03 +00:00
u3shit
c64fe52b28
Issue #2101 - Part 7: Add color range support on GPUs
2023-02-26 19:42:14 +01:00
u3shit
338cbff242
Issue #2101 - Part 6: Plumbing of ColorRange between video decoders and YUV convert
2023-02-26 19:42:04 +01:00
u3shit
c03bb68372
Issue #2101 - Part 5: Add ColorRange support to video decoders
2023-02-26 19:41:56 +01:00
u3shit
e736dc2d34
Issue #2101 - Part 4: Add color range support to gfx/ycbcr
...
Loosely based on current mozilla code
https://hg.mozilla.org/mozilla-central/file/25a8668d92431d469b443f0f2030328bab754aea/gfx/ycbcr/yuv_convert.cpp
2023-02-26 19:41:47 +01:00
u3shit
8ed007c4e8
Issue #2101 - Part 3: Update libyuv
...
Updated to version 1861, git revision 88b050f337cc0ca2a51800fe7bf4737222c87344 from
https://chromium.googlesource.com/libyuv/libyuv/
2023-02-26 19:41:38 +01:00
u3shit
466b773179
Issue #2101 - Part 2: Use stdint.h types instead of uint8 and friends
...
Required for upcoming libyuv update
2023-02-26 19:41:30 +01:00
u3shit
092ff20c60
Issue #2101 - Part 1: Add mColorRange info to YCbCrBuffer
...
https://hg.mozilla.org/integration/autoland/rev/6f4c7904cda8
2023-02-26 19:41:20 +01:00
u3shit
f6e1f851d0
Issue #2118 - Part 2: Add support for Identity YUVColorSpace
...
https://hg.mozilla.org/mozilla-central/rev/be342c90755d11551623362f2058c0326f63bbb3
2023-02-26 13:04:53 +01:00
u3shit
98fef024cd
Issue #2118 - Part 1: Update gfxUtils YuvColorMatrix functions to match upstream mozilla code more closely.
...
https://hg.mozilla.org/mozilla-central/file/4fba5295dc19f9d2f5d065ba502a44d8f2dc9e85/gfx/thebes/gfxUtils.cpp#l1246
2023-02-26 13:04:53 +01:00
Moonchild
c47d20f3f3
Merge pull request 'Fix HTML5 parser behavior when looking for custom elements' ( #2129 ) from FranklinDM/UXP-contrib:work_wc-fix-parser-for-custom-elements into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2129
2023-02-26 10:20:48 +00:00
Moonchild
3e108a2c4e
Merge pull request 'Fix :host selector matching' ( #2128 ) from FranklinDM/UXP-contrib:work_css-fix-host-selector-matching into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2128
2023-02-26 10:16:24 +00:00
Moonchild
e3275643e2
Merge pull request 'Remove assertion that GetPreEffectsVisualOverflowRect is called only by frames whose parent is an anonymous block' ( #2127 ) from FranklinDM/UXP-contrib:work_css-remove-svg-frame-assertion into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2127
2023-02-26 10:14:07 +00:00
FranklinDM
6c2fef44cf
Issue #1344 - (Parser: C++) Don't reset containsHyphen value after finding one
2023-02-26 16:19:09 +08:00
FranklinDM
acbce95aa3
Issue #1344 - (Parser: Java) Don't reset containsHyphen value after finding one
2023-02-26 16:19:02 +08:00
FranklinDM
468a37eab8
Issue #1593 - Follow-up: Fix :host selector matching
...
Previously, we would match `:host` if:
(a) we don't have any arguments and our parent is the shadow root, or;
(b) if any of the arguments match, then reject if we don't have a containing shadow
Revised, we would match `:host` if:
(Preconditions) The element must have a shadow root, the selector must not have any feature selectors, and it is not blocked from matching `:host` (e.g. .matches outside of the shadow root context)
(a) The selector does not have any arguments, or;
(b) It matches any of its arguments in the functional part of the pseudo-class
With this, we now pass these tests that were previously failing:
http://wpt.live/css/css-scoping/css-scoping-shadow-host-rule.html
http://wpt.live/css/css-scoping/host-descendant-002.html
http://wpt.live/css/css-scoping/host-multiple-001.html
Improved (1 less red box):
http://wpt.live/css/css-scoping/css-scoping-shadow-host-namespace.html
2023-02-26 01:32:13 +08:00
FranklinDM
9d7d704523
Issue #1382 - Part 2: Add crash test
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=842114
2023-02-25 11:27:54 +08:00
FranklinDM
a28ce48a16
Issue #1382 - Part 1: Remove assertion that GetPreEffectsVisualOverflowRect is called only by frames whose parent is an anonymous block
...
This is always hit if an SVG effect is applied on other frame types.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1340257
2023-02-25 11:27:53 +08:00
Moonchild
630e34a966
Merge pull request 'Cleanup Mac DMG packaging, better naming and remove extra precomplete file.' ( #2123 ) from dbsoft/UXP:Mac2117 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2123
2023-02-24 13:33:54 +00:00
Moonchild
fc408bf1e2
Merge pull request 'Propagate combinator restriction to :is()/:where()' ( #2122 ) from FranklinDM/UXP-contrib:work_css-propagate-combinator-restriction into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2122
2023-02-23 09:40:56 +00:00
Moonchild
3a2adcff71
Merge pull request 'Move Has* function definition out of the header file for consistency' ( #2121 ) from FranklinDM/UXP-contrib:work_css-pseudoclass-funcdef-move into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2121
2023-02-23 09:19:20 +00:00
Moonchild
dabadd700c
Issue #2046 - Follow-up: Fix debug assert using old chars definition.
2023-02-22 22:31:24 +01:00
FranklinDM
826464c80b
Issue #2078 - Follow-up: Propagate combinator restriction to :is()/:where()
...
Based on spec discussion: https://github.com/w3c/csswg-drafts/issues/5093
2023-02-22 14:00:49 +08:00
FranklinDM
f17feba05f
Issue #2078 - Follow-up: aPreventComplexSelectors should be passed
2023-02-22 14:00:49 +08:00
FranklinDM
4493017fd8
Issue #2078 - Follow-up: Move isForgiving check to ParsePseudoClassWithSelectorListArg
2023-02-22 14:00:43 +08:00
FranklinDM
bae06ce171
No issue - Move Has* function definition out of the header file for consistency
2023-02-22 13:51:53 +08:00
Moonchild
f2ef28d09c
Merge pull request 'Improve :host and :host-context matching' ( #2120 ) from FranklinDM/UXP-contrib:work_css-host-matching-fixes into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2120
2023-02-21 22:56:39 +00:00
Moonchild
b9f3a03a5f
Merge pull request 'Ensure :host() and :host-context() are given proper weights' ( #2119 ) from FranklinDM/UXP-contrib:work_css-host-and-host-context-specificity into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2119
2023-02-21 22:55:35 +00:00
Moonchild
5b21c547de
[DOM] WebCrypto: Check decoded key type before using it.
...
Just in case someone forces the wrong key type and misuses WebCrypto.
It won't be usable anyway so better to throw.
2023-02-21 21:07:04 +01:00
Moonchild
ee7201bbb4
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-02-21 20:29:51 +01:00
Moonchild
b2af611dc1
No issue - Refactor FindErrorInstanceOrPrototype
...
The logic here wasn't very transparent or easy to follow.
Doing a positive check to set the result instead of defaulting to it
also potentially prevents issues.
2023-02-21 20:29:35 +01:00
FranklinDM
e0226ccae6
Issue #1593 - Follow-up: Accept only a single selector in the argument of :host/:host-context
...
Current spec says these two pseudo-classes accept only a single compound selector:
:host( <compound-selector> )
:host-context( <compound-selector> )
2023-02-21 22:50:18 +08:00
FranklinDM
9c1d44f5f6
Issue #1593 - Follow-up: Copy mIsRelevantLink value over rather than calling IsLink
...
Calling IsLink ignores whatever state we have for aTreeMatchContext and will trigger an assertion if aTreeMatchContext.mForStyling is false. This also adds a comment about what that line effectively does.
2023-02-21 22:50:18 +08:00
FranklinDM
ab5a651d55
Issue #1593 - Follow-up: :host() should not automatically match if we have a non-empty selector list
2023-02-21 22:50:17 +08:00
FranklinDM
ae59eb00e5
Issue #1823 - Ensure :host() and :host-context() are given proper weights
2023-02-21 22:46:04 +08:00
Moonchild
9d9d93381e
Merge pull request 'Implement :is() and :where() CSS pseudo-classes' ( #2110 ) from FranklinDM/UXP-contrib:work_css-is-where into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2110
2023-02-21 12:31:17 +00:00
athenian200
d022966201
Merge pull request 'MailNews: Re-check availability of OAuth2 when hostname fields modified.' ( #2052 ) from blu.256/UXP:fix/mailnews/oauth-custom-domain into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2052
2023-02-21 06:12:19 +00:00
Brian Smith
c2ed566b06
Issue #2117 - Part 2 - Revert "Follow up to d0eee8f01 - Run precomplete cmd during package staging"
...
This reverts commit c622e988fe .
2023-02-20 10:17:49 -06:00
Brian Smith
2f5798b5db
Issue #2117 - Part 1 - Update Mac DMG platform names to intel64 for Intel and arm64 for Apple Silicon.
2023-02-20 10:12:47 -06:00
FranklinDM
31c074ce15
Issue #2078 - Part 6: Replace empty list head with the next non-empty list for forgiving selector lists
...
What happens here if aListHead is an empty selector list:
(1) next selector group is parsed and continues to the next iteration if it's empty or invalid
(2) if we're a forgiving selector list and aListHead is empty, replace it with the selector group that we've just parsed
(3) step 1 ignores invalid/empty, so we assert that step 2 should never have an empty selector list
2023-02-20 23:36:28 +08:00
FranklinDM
f19504608e
Issue #2078 - Part 5: Ensure :is() and :where() are given proper weights
2023-02-20 23:36:27 +08:00
FranklinDM
adc21f14fa
Issue #2078 - Part 4: Unify selector list matching
...
This should allow pseudo-classes that accept selector lists to properly handle complex selectors. `:visited` is also matched inside selector lists.
A previous iteration of this commit had incorrect matching behavior when called from `RestrictedSelectorListMatches`.
2023-02-20 23:36:26 +08:00
FranklinDM
828c8cc46f
Issue #2078 - Part 3: Rename nsCSSRuleProcessor::SelectorListMatches to RestrictedSelectorListMatches
...
This is in preparation for merging the logic of RestrictedSelectorListMatches and AnySelectorInArgListMatches.
2023-02-20 23:35:55 +08:00
FranklinDM
bc399f7871
Issue #2078 - Part 2: Rename nsPseudoClassList->u.mSelectors to mSelectorList
...
This makes it clear that we're accessing a selector list (nsCSSSelectorList), which is different from the selectors (nsCSSSelector) contained inside a selector list. Previously, both were confusingly referred to as mSelectors.
2023-02-20 23:35:54 +08:00
FranklinDM
024b7500d1
Issue #2078 - Part 1: Update CSS rule processor to handle :is() and :where() CSS pseudo-classes
...
This modifies selector list parsing to accommodate being "forgiving". Aliases for the :is selector's former names were also included. Note that the older and prefixed variant `-moz-any` remains unforgiving.
2023-02-20 23:35:47 +08:00
Moonchild
9b1b294e29
Merge pull request 'Improve fallback handling with mach clobber python command' ( #2116 ) from FranklinDM/UXP-contrib:work_python-clobber-fallback into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2116
2023-02-20 12:24:04 +00:00
Moonchild
33bc5535f2
Merge pull request 'Annotate crash with database name when storage connection not closed' ( #2115 ) from FranklinDM/UXP-contrib:work_js-annotate-crash-with-db-name into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2115
2023-02-20 12:09:47 +00:00
Moonchild
3076df399c
Merge pull request 'Fix invalid assert for decoder type if JXL is not built on debug builds' ( #2114 ) from FranklinDM/UXP-contrib:work_jxl-assert-fix-1 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2114
2023-02-20 11:12:10 +00:00
Moonchild
aa43190b9a
Merge pull request 'Split monolithic Intl.* into separate files' ( #2109 ) from martok/UXP-contrib:mr/intl-split into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2109
2023-02-20 11:07:49 +00:00
FranklinDM
ae476cc42c
No issue - Improve fallback handling and resolve PATH issues with python clobber command
2023-02-20 17:32:40 +08:00
FranklinDM
a434994229
Issue #1382 - Annotate crash with database name when storage connection not closed
...
Reported on https://bugzilla.mozilla.org/show_bug.cgi?id=1384036
This was fixed with an unrelated issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1372823
2023-02-20 17:25:09 +08:00
FranklinDM
8d980914af
Issue #1382 - Fix invalid assert for decoder type if JXL is not built on debug builds
2023-02-20 17:22:16 +08:00
Moonchild
97f69387f4
Merge pull request 'Implement CSSStyleRule.selectorText setter' ( #2113 ) from FranklinDM/UXP-contrib:work_css-stylerule-selectortext-setter into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2113
2023-02-20 08:31:46 +00:00
FranklinDM
8d6c043b89
Issue #2111 - Implement CSSStyleRule.selectorText setter
...
Unlike the original patch, this copies Chrome behavior: ignores invalid values of selectorText without any console log.
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=37468
2023-02-20 12:56:39 +08:00
Moonchild
41bab244fc
Force clobber
2023-02-19 17:53:21 +01:00
Moonchild
fb73c3aa3b
[NSS] Update NSS to 3.52.9 to pick up fixes.
2023-02-19 15:26:44 +01:00
Moonchild
078a424cf3
[DOM] Check whether module load request was already cancelled when a load fails
2023-02-19 13:10:29 +01:00
Moonchild
576ac835f0
[widget] Properly test for and handle errors in target-surface creation
...
and mapping.
2023-02-19 12:08:17 +01:00
Martok
ac4240f055
Issue #2046 - Move a bunch of functions in builtin/intl/CommonFunctions.js into more-specific files, where those functions are only used in a single more-specific file
2023-02-17 00:21:40 +01:00
Martok
233feee823
Issue #2046 - Move builtin/Intl.js (which now contains only shared functionality) to builtin/intl/CommonFunctions.js
2023-02-17 00:07:06 +01:00
Martok
df8d3c4b0a
Issue #2046 - Move Intl.Collator self-hosted code to a new builtin/intl/Collator.js file
2023-02-17 00:01:59 +01:00
Martok
d3abfaff82
Issue #2046 - Move Intl.NumberFormat self-hosted code to a new builtin/intl/NumberFormat.js file
2023-02-17 00:00:36 +01:00
Martok
5cf6aa9065
Issue #2046 - Move Intl.DateTimeFormat self-hosted code to a new builtin/intl/DateTimeFormat.js file
2023-02-17 00:00:21 +01:00
Martok
1491d55375
Issue #2046 - Move Intl.PluralRules self-hosted code to a new builtin/intl/PluralRules.js file
2023-02-16 23:56:35 +01:00
Martok
f53901c567
Issue #2046 - Move Intl.RelativeTimeFormat self-hosted code to a new builtin/intl/RelativeTimeFormat.js file
2023-02-16 23:55:05 +01:00
Martok
a63ea3fdfb
Issue #2046 - Move the self-hosting of non-constructor properties of Intl to a new builtin/intl/IntlObject.js file
2023-02-16 23:53:01 +01:00
Martok
fe7e00d47f
Issue #2046 - Move various generated files from builtin/Intl* to builtin/intl/*, and add "Generated" to their names for clarity
2023-02-16 23:42:45 +01:00
Martok
face1e6e9b
Issue #2046 - Move builtin/Intl.* to builtin/intl/IntlObject.*
2023-02-16 22:41:00 +01:00
Martok
22b189727f
Issue #2046 - Trim builtin/Intl.*'s #include set down to what is required for Intl itself
2023-02-16 22:24:52 +01:00
Martok
9ad97da85b
Issue #2046 - Move Intl.RelativeTimeFormat functionality into builtin/intl/RelativeTimeFormat.*
2023-02-16 21:26:50 +01:00
Martok
5f9d4f115e
Issue #2046 - Move Intl.PluralRules functionality into builtin/intl/PluralRules.*
2023-02-16 01:33:43 +01:00
Martok
29e2547f26
Issue #2046 - Move Intl.DateTimeFormat functionality into builtin/intl/DateTimeFormat.*
2023-02-16 00:14:24 +01:00
Martok
24f8c4f052
Issue #2046 - Move SharedIntlData into its own builtin/intl/SharedIntlData.* files so the world doesn't have to import all shared Intl functionality.
2023-02-15 22:58:28 +01:00
Martok
52821c2e85
Issue #2046 - Move Intl.Collator functionality into builtin/intl/Collator.*
2023-02-15 22:32:08 +01:00
Martok
2b0f6aea16
Issue #2046 - Move NewUNumberFormatForPluralRules next to its only use
2023-02-15 22:32:07 +01:00
Martok
31adccdffc
Issue #2046 - Move Intl.NumberFormat functionality into builtin/intl/NumberFormat.*
2023-02-15 22:32:07 +01:00
Martok
b13cd385a4
Issue #2046 - Create helper method to call ICU string conversion methods
...
Based-on: m-c 1333844
2023-02-13 01:29:00 +01:00
Martok
3091ff4e57
Issue #2046 - Move functionality used in the implementation of multiple Intl.* constructors into builtin/intl/CommonFunctions.*
2023-02-12 23:27:21 +01:00
Martok
8ca01873c0
Issue #2046 - Move ScopedICUObject into builtin/intl/ScopedICUObject.h
2023-02-12 22:32:41 +01:00
Moonchild
013e19eed6
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
2023-02-11 22:52:55 +01:00
Moonchild
6a353ef32d
Issue #1851 - Update TwemojiMozilla to 0.7.0 (Twemoji 14)
2023-02-11 22:52:29 +01:00
Moonchild
05ad5bcb5b
Merge pull request 'Clean up caret when destroying editor.' ( #2108 ) from jobbautista9/UXP:2107-caret into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2108
2023-02-11 09:16:39 +00:00
Job Bautista and Makoto Kato
42742eceae
Issue #2107 - Clean up caret when destroying editor.
...
Editor changes caret visibility during drag and drop. But when destroying
editor, we don't restore caret state. So we should restore it when destroying
editor.
Co-authored-by: Makoto Kato <m_kato@ga2.so-net.ne.jp >
2023-02-09 20:51:34 +08:00
Moonchild
ffdba3d91e
No issue - Accept also video/vp8 as MIME type (bis)
2023-02-08 01:01:25 +01:00
Moonchild
1f32c17fcf
No issue - Accept also video/vp8 as MIME type
2023-02-07 19:58:04 +01:00
Moonchild
8b26fcd0de
Merge pull request 'Implement XUL crop:clip property value for string cropping' ( #2105 ) from FranklinDM/UXP-contrib:work_xul-crop-clip into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2105
2023-02-04 17:00:04 +00:00
FranklinDM
1a2a779aaf
Issue #2104 - Part 2: Indicate if a label was cropped via the "_is_cropped" attribute
2023-02-03 22:44:04 +08:00
FranklinDM
dc14e5a906
Issue #2104 - Part 1: Implement "clip" attribute value for XUL string cropping
...
This implements the "clip" attribute value for the "crop" attribute found in XUL label elements. It functions similarly to having the text-overflow property set to an empty string or "". This shouldn't break previously established behavior as it only adds a new value to be checked.
The behavior of the "none" attribute value in the documentation (https://udn.realityripple.com/docs/Archive/Mozilla/XUL/Attribute/crop ) is incorrect. The "none" attribute value literally means "don't crop anything" if you'd check the code and is also equivalent to not setting the "crop" attribute at all. This has always been the case since Firefox 2 (earliest version I checked) and apparently, this section of the documentation was copied verbatim from XULPlanet without even checking if it's correct.
2023-02-03 22:44:04 +08:00
Moonchild
fb8347c7d2
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:02 +01:00
Moonchild
aa0d7fc060
Merge pull request 'Promises pt. 3: Implement Promise.any' ( #2102 ) from martok/UXP-contrib:mr/prom-async-pt3 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2102
2023-02-01 22:52:14 +00:00
Martok
04e13794b2
Issue #2089 - Implement the Promise.any combinator
...
Based-on: m-c 1568903/9,1560300
2023-02-01 00:02:45 +01:00
Martok
2421d31e02
Issue #2089 - Rename shared Promise combinator functions, with helpers for element functions
...
Based-on: m-c 1568903/{5-8}
2023-02-01 00:02:45 +01:00
Martok
0148ae5a60
Issue #2089 - Implement AggregateError
...
Based-on: m-c 1568903/4,1641355(partial),1652148,1643397
2023-02-01 00:02:44 +01:00
Martok
ec38c883c6
Issue #2089 - Move ErrorObject parts from jsexn.cpp to ErrorObject.cpp
...
Based-on: m-c 1568903/2
2023-02-01 00:02:44 +01:00
Martok
e3c44ebafa
Issue #2089 - Add cache for Promise property lookups
...
Based-on: m-c 1475678/11
2023-02-01 00:02:44 +01:00
Moonchild
c9764f76ec
Merge pull request 'Remove unnecessary cast in GeneratorObject::suspend's do loop.' ( #2100 ) from jobbautista9/UXP:2099-generatorobject-cast into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2100
2023-01-31 16:22:02 +00:00
Job Bautista
a1d573eb13
Issue #2099 - Remove unnecessary cast in GeneratorObject::suspend's do loop.
...
This resolves build bustage with --enable-debug.
2023-01-31 20:03:09 +08:00
Moonchild
94e2874370
Merge pull request 'Promises pt. 2: Optimization and Unification' ( #2096 ) from martok/UXP-contrib:mr/prom-async-pt2 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2096
2023-01-31 11:10:03 +00:00
Moonchild
a13035b1de
Merge pull request 'Make RegExpShared into a proper GC thing' ( #2095 ) from jobbautista9/UXP:2083-regexpshared-gc-final into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095
2023-01-31 09:46:14 +00:00
Moonchild
d7c90a831a
[xpcom] remove incorrect assertion.
...
See https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2095#issuecomment-33796
2023-01-29 19:19:48 +01:00
Moonchild
243c2bd498
No issue - bump default platform UA compatibility mode to 102.0
2023-01-29 19:17:00 +01:00
Moonchild
e57d4347cd
Issue #1382 - Remove incorrect assertion.
...
Tag #2090 #2095
2023-01-29 19:16:16 +01:00
Job Bautista
5732cf1f17
Issue #2083 - Follow-up: RegExpShared::source should be a GCPtr.
...
A hangover from before RegExpShared was a GC thing, as noted by m-c 1399928.
2023-01-28 19:32:24 +08:00
Martok
ae4149e7ee
Issue #2089 - Report unhandled rejection for optimized away promise
...
Based-on: m-c 1498775
2023-01-27 19:31:17 +01:00
Job Bautista
40ef2a5756
PR #2090 - Follow-up: Remove invalid MOZ_ASSERT in js::NativeDefineDataProperty
...
We don't have isHelperThreadContext, and this is breaking debug builds.
2023-01-27 16:47:12 +08:00
Martok
15a0dd6e4c
Issue #2089 - Further runtime perf improvements for PromiseState
...
- Reduce slot size of PromiseReactionRecord to fit into OBJECT8 alloc kind
- Use the Call() helper from Interpreter.h to reduce code duplication
- Clear the incumbent global slot when it's no longer used
Based-on: m-c 1475678/{12-14}
2023-01-27 00:09:15 +01:00
Martok
c1b1638522
Issue #2089 - Create a shared helper for PerformPromiseRace, PerformPromiseAll and PerformPromiseAllSettled
...
Replace the previous non-CommonPerformPromiseAllRace port with the unified one
Based-on: m-c 1475678/10,1539694
2023-01-26 22:33:28 +01:00
Martok
c805a6a526
Issue #2089 - Add a PromiseCapability struct, directly initialize dense elements in PerformPromiseAll using NewbornArrayPush
...
Based-on: m-c 1475678/{8,9}
2023-01-26 22:25:07 +01:00
Martok
82222eb7b4
Issue #2089 - Improve Runtime perf of Promises
...
- reduce typecasting
- reduce rooting already rooted values
- directly handle unwrapped promises
Based-on: m-c 1475678/{1-7}
2023-01-26 20:54:33 +01:00
Martok
0dc2b249dc
Issue #2089 - Don't use BlockOnPromise fast path with non-default resolving functions, combine default resolving functions flags
...
Based-on: m-c 1474348
2023-01-26 20:54:32 +01:00
Martok
f2eeb76969
Issue #2089 - Optimize Promise.then and Promise.all/race with default resolving functions
...
Based-on: m-c 1401508,1412200,1473970/{1-4}
2023-01-26 20:54:32 +01:00
Martok
6445a1bdb4
Issue #2089 - Turn AsyncGeneratorResumeNext recursion into iteration to avoid stack overflow
...
Based-on: m-c 1416809
2023-01-26 20:54:32 +01:00
Martok
94df491338
Issue #2089 - Only create result Promises in Promise#then and Promise#catch if it's used or the creation is otherwise observable
...
Based-on: m-c 1342070
2023-01-26 20:54:31 +01:00
Martok
a6ceedf7b2
Issue #2089 - Shrink Promise instances from 8 to 4 slots by moving debug information to an external object
...
Based-on: m-c 1342050
2023-01-26 20:54:31 +01:00
Job Bautista
47c6fe9cee
Revert "Issue #1382 - RegExpShared::groupsTemplate_ cannot be a GCPtr since RegExpShared is managed by C++"
...
This workaround has been obsoleted by the work on Issue #2083 .
This reverts commit bbd7436086 .
2023-01-26 15:26:32 +08:00
Job Bautista
64370b64d2
Issue #2083 - Part 5: Fix memory leak in RegExpObject.
...
Based on Mozilla bug 1345177.
2023-01-26 15:26:32 +08:00
Job Bautista
523201f3e4
Issue #2083 - Part 4: Give RegExpShared a finalizer.
...
Based on Mozilla bug 1345177.
2023-01-26 15:26:32 +08:00
Job Bautista
997616e308
Issue #2083 - Part 3: Fix RegExpShared rooting hazards now it's a GC thing.
...
Based on Mozilla bug 1345177.
Changes from the original bug's patch:
- The original patch didn't have a dotAll for a call to irregexp::ParsePattern,
so let's make our dotAll a member of the MutableHandleRegExpShared re.
- Make RegExpShared::initializeNamedCaptures, introduced in Issue #1285 , static.
This resolves a build bustage where static RegExpShared::compile was trying to
use a member function.
2023-01-26 15:26:32 +08:00
Job Bautista
f5761df1c7
Issue #2083 - Part 2: Remove use of RegExpGuard.
...
Based on Mozilla bug 1345177.
There were more uses of RegExpGuard in js/src/builtin/RegExp.cpp not found in
the original bug's patch.
2023-01-26 15:26:31 +08:00
Job Bautista
c566c36791
Issue #2083 - Part 1: Make RegExpShared a GC thing.
...
Based on Mozilla bug 1345177.
Changes from the original bug's patch:
- We don't have JS::CurrentThreadIsHeapCollecting, so let's use
trc->runtime()->isHeapCollecting() instead.
- Mozilla bug 1337117 renamed runtimeFromMainThread to
runtimeFromActiveCooperatingThread for Firefox 54, so let's use the former
2023-01-26 15:26:31 +08:00
Moonchild
5a4478b409
Merge pull request 'Fix crash in js::CreateRegExpMatchResult' ( #2094 ) from martok/UXP-contrib:mr/2093-regexp into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2094
2023-01-25 23:02:39 +00:00
Martok
cce4862b70
Issue #2093 - Trace HeapPtr<RegExpShared::groupsTemplate_> for GC move/compact events, regression from #2072
2023-01-25 23:22:07 +01:00
Moonchild
c06a9ae523
Merge pull request 'Parse \p{Extended_Pictographic} too.' ( #2092 ) from jobbautista9/UXP:2091-extended-pictographic into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2092
2023-01-25 21:46:18 +00:00
Job Bautista
aa108a39d6
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-25 16:33:44 +08:00
Moonchild
b87775f75a
Merge pull request 'Promises pt. 1: Basics' ( #2090 ) from martok/UXP-contrib:mr/prom-async-pt1 into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2090
Reviewed-by: Moonchild <moonchild@palemoon.org >
2023-01-23 16:55:39 +00:00
Martok
d72c98277b
Issue #2089 - Avoid copying/recreating iterator result, AsyncGeneratorRequest and GeneratorObject expression stacks
...
Based-on: m-c 1394682,1410283,1396499
2023-01-22 00:11:28 +01:00
Martok
9f07ad27f5
Issue #2089 - In Promises, use a C++ version of SpeciesConstructor when calling from C++
...
Based-on: m-c 1344656,1386534
2023-01-22 00:11:28 +01:00
Martok
b1440d285b
Issue #2089 - Use JS engine stack if necessary when reporting errors
...
Based-on: m-c 996060
2023-01-22 00:11:27 +01:00
Martok
d78912ec17
No issue - Throw error when resolving or rejecting promise returned by async function with testing function
...
Based-on: m-c 1418106
2023-01-22 00:11:27 +01:00
Martok
d454045363
No issue - add API to tell Profile Timeline Recording state to JS engine
...
Based-on: m-c 1342070/5
2023-01-21 22:49:10 +01:00
Martok
44adc9e25c
No issue - Cleanup unused function exports to self-hosted global
...
Based-on: m-c 1325696
2023-01-21 22:49:10 +01:00
Martok
7cde54d976
No issue - Remove "code" from jsprototype.h macros
...
Based-on: m-c 1394084
2023-01-21 00:55:40 +01:00
Martok
13eac0ae3f
No issue - reformat GlobalObject::skipDeselectedConstructor
2023-01-21 00:51:34 +01:00
Martok
0d1d366685
No issue - implement js::NativeDefineDataProperty helper
2023-01-21 00:50:37 +01:00
Mavridis Philippe
c8bafb9faa
MailNews: Re-check availability of OAuth2 when hostname fields modified.
...
This is for those cases where the hostnme of the email address is not
the actual hostname of the e-mail service (e.g. GMail with a custom
domain).
This should resolve issue athenian200/epyrus#53 .
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com >
2022-12-07 13:22:55 +02:00