Can --disable-site-isolation-trials --disable-web-security work with Android webview?

570 views
Skip to first unread message

Bảo Biên Huỳnh (GnU)

unread,
Sep 14, 2023, 6:51:10 PM9/14/23
to Chromium-dev
- This command works on android chrome:
`echo '_ --disable-site-isolation-trials --disable-web-security --user-data-dir="/data/user/0/com.android.chrome/app_chrome/ Default "' > /data/local/tmp/chrome-command-line`
- So I wonder can it work with android webview? Thanks.

Torne (Richard Coles)

unread,
Sep 15, 2023, 10:57:19 AM9/15/23
to luan...@gmail.com, Chromium-dev
See https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/commandline-flags.md for how command line flags work in WebView - in particular, note that on normal user builds of Android, we do not read command line flags from any file, and it is only possible to set the specific flags exposed in WebView's developer UI. 

Also, many command line flags for Chrome are not implemented in WebView because they aren't relevant, or simply as an oversight. --disable-site-isolation-trials will have no effect on WebView, because WebView doesn't have site isolation at all. I also don't think that --user-data-dir is implemented for WebView - we set the data directory based on how the app configures WebView at initialization.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ee1cfbd6-19a8-4471-9229-1b81d7f4b680n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages