Skip to content

Don't run evaluateJavascript inside the webView.post callback#361

Merged
KevinnZou merged 1 commit into
KevinnZou:mainfrom
serso:main
Aug 30, 2025
Merged

Don't run evaluateJavascript inside the webView.post callback#361
KevinnZou merged 1 commit into
KevinnZou:mainfrom
serso:main

Conversation

@serso
Copy link
Copy Markdown
Contributor

@serso serso commented Aug 27, 2025

Calling WebView#post requires the WebView to be attached to the window making it impossible to use AndroidWebView in headless mode (without UI). The caller should use an appropriate thread to call evaluateJavaScript on.

Calling WebView#post requires the WebView to be attached to the window
making it impossible to use AndroidWebView in headless mode (without UI).
The caller should use an appropriate thread to call evaluateJavaScript on.
@KevinnZou KevinnZou merged commit f1a1bbc into KevinnZou:main Aug 30, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants