Find Android WebView smells

Proprietary

WebView call sites that need a security review: WebView.loadUrl(...) (URL trust boundary) and WebSettings.setJavaScriptEnabled(true) (script-execution trust boundary). For untrusted content, Chrome Custom Tabs (CustomTabsIntent) is the safer alternative.

org.openrewrite.kotlin.android.FindAndroidWebViewSmells$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindAndroidWebViewSmells$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find WebView.loadUrl(...) calls
  2. Find WebSettings.setJavaScriptEnabled(true) calls