Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on ESR 128 #462

Closed
sagudev opened this issue Apr 20, 2024 · 13 comments
Closed

Notes on ESR 128 #462

sagudev opened this issue Apr 20, 2024 · 13 comments

Comments

@sagudev
Copy link
Member

sagudev commented Apr 20, 2024

@wusyong
Copy link
Member

wusyong commented Jul 3, 2024

https://github.com/servo/mozjs/blob/main/mozjs-sys/etc/patches/0010-update-mozboot-to-ndk-r25.patch can be obselete I think. Upstream has newer version of ndk already.

@sagudev
Copy link
Member Author

sagudev commented Jul 3, 2024

https://github.com/servo/mozjs/blob/main/mozjs-sys/etc/patches/0010-update-mozboot-to-ndk-r25.patch can be obselete I think. Upstream has newer version of ndk already.

You are right!

@sagudev
Copy link
Member Author

sagudev commented Jul 9, 2024

This will be problematic: https://bugzilla.mozilla.org/show_bug.cgi?id=1824671 as it requires usage of cbindgen ...

EDIT: There is USE_RUST_UNICODE_BIDI, so we can replace this eventually (in this ESR cycle).

@sagudev
Copy link
Member Author

sagudev commented Jul 10, 2024

Moving from 0 based column number to 1 based column number: https://bugzilla.mozilla.org/show_bug.cgi?id=1862692

@sagudev
Copy link
Member Author

sagudev commented Jul 10, 2024

@sagudev
Copy link
Member Author

sagudev commented Jul 10, 2024

@sagudev
Copy link
Member Author

sagudev commented Jul 10, 2024

This will be problematic: https://bugzilla.mozilla.org/show_bug.cgi?id=1824671 as it requires usage of cbindgen ...

EDIT: There is USE_RUST_UNICODE_BIDI, so we can replace this eventually (in this ESR cycle).

Or maybe not I got linker errors ...

@sagudev
Copy link
Member Author

sagudev commented Jul 10, 2024

So, the problem is that we need to use our cargo.toml to build icu stuff, but mozilla is patching them in tree, and we cannot do that (every consumer would need to patch some crates as patches are only applied from root cargo.toml)

@Redfire75369
Copy link
Contributor

NewExternalArrayBuffer has been changed to take a UniquePtr, so a wrapper needs to be added. https://searchfox.org/mozilla-esr128/source/js/src/vm/ArrayBufferObject.cpp#3085

@sagudev
Copy link
Member Author

sagudev commented Jul 12, 2024

NewExternalArrayBuffer has been changed to take a UniquePtr, so a wrapper needs to be added. https://searchfox.org/mozilla-esr128/source/js/src/vm/ArrayBufferObject.cpp#3085

Thanks for heads up, currently I only done changes to make it work for mozjs, see #474, but I expect more changes will be needed when working on servo PR (including NewExternalArrayBuffer wrapper).

@Redfire75369
Copy link
Contributor

I just found that in https://discourse.mozilla.org/t/upgrading-embedding-from-115esr-to-128esr-any-big-changes/133427/2 and decided to point it out.

This was referenced Jul 12, 2024
@sagudev
Copy link
Member Author

sagudev commented Jul 12, 2024

Ideally one day we would get more high level wrapper: here is it for uniffi in mozilla tree https://searchfox.org/mozilla-central/source/toolkit/components/uniffi-js/OwnedRustBuffer.cpp#88

@sagudev
Copy link
Member Author

sagudev commented Aug 6, 2024

This is done now, for next ESR there is #476

@sagudev sagudev closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants