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

[wpeview] Use mangled C++ names for entrypoints #184

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

aperezdc
Copy link
Member

Use the C++ mangled named for the WebKit::WebProcessMain() and WebKit::NetworkProcessMain() functions, instead of the ones with the android_ prefix.

This will allow dropping a patch on top of vanilla WPE WebKit that added the android_WebProcess_main() and android_NetworkProcess_main() symbols. The only additional thing those wrappers did was sending the list of arguments to the Android log, for debugging purposes, but that may be re-added at a later time inside initializeNativeMain() without needing to modify WPE WebKit.

@aperezdc aperezdc added the enhancement New feature or request label Mar 21, 2025
@aperezdc aperezdc requested review from svillar and neodesys March 21, 2025 14:55
@aperezdc aperezdc self-assigned this Mar 21, 2025
@aperezdc
Copy link
Member Author

Applying this patch will allow to completely remove one patch applied with Cerbero on top of WPE WebKit. The aim is to use vanilla WPE WebKit without needing patching for Android.

@aperezdc
Copy link
Member Author

I'll send a separate patch to fix the lint errors, then rebase this and re-run the CI.

Use the C++ mangled named for the WebKit::WebProcessMain() and
WebKit::NetworkProcessMain() functions, instead of the ones with
the android_ prefix.

This will allow dropping a patch on top of vanilla WPE WebKit that added
the android_WebProcess_main() and android_NetworkProcess_main() symbols.
The only additional thing those wrappers did was sending the list of
arguments to the Android log, for debugging purposes, but that may be
re-added at a later time inside initializeNativeMain() without needing
to modify WPE WebKit.
@aperezdc aperezdc force-pushed the aperezdc/use-libwpewebkit-mangled-symbols branch from ed34eb9 to 823e508 Compare March 24, 2025 15:48
@aperezdc aperezdc merged commit ea1e149 into main Mar 24, 2025
6 checks passed
@aperezdc aperezdc deleted the aperezdc/use-libwpewebkit-mangled-symbols branch March 24, 2025 17:03
aperezdc added a commit to Igalia/wpe-android-cerbero that referenced this pull request Mar 26, 2025
This is the latest release in the 2.46.x stable series, which contains
security fixes.

While at it, drop the patch to add unmangled entry points for the
Network and Web processes now that they are not needed anymore since
Igalia/wpe-android#184
aperezdc added a commit to Igalia/wpe-android-cerbero that referenced this pull request Mar 26, 2025
This is the latest release in the 2.46.x stable series, which contains
security fixes.

While at it, drop the patch to add unmangled entry points for the
Network and Web processes now that they are not needed anymore since
Igalia/wpe-android#184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants