Create a navigation entry to access WebView's Dev UI
This is the same Dev UI that is available as an icon on the beta, canary, and dev channels.
It contains an option to disable the X-Requested-With header, as well as to force disabling TLS 1.0 and 1.1.
It should be possible to open the Dev UI on standard WebView with code similar to the following, although some testing needs to be done to make sure it works on all supported versions of Android and across all the WebView providers.
// Create a WebView Dev UI intent. Intent webViewDevUiIntent = new Intent("com.android.webview.SHOW_DEV_UI"); // Launch as a new task so that the WebView Dev UI and Privacy Browser show as a separate windows in the recent tasks list. webViewDevUiIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Make it so. startActivity(webViewDevUiIntent);
Updated by Soren Stoutner 5 months ago
In implementing this feature, the current X-Requested-With controls should be removed and an explanation of how to disable the X-Requested-With header should be added to the Guide. Also, a page should be added to www.stoutner.com describing all the interesting flags in the Dev UI.
Updated by Soren Stoutner 3 months ago
- Status changed from New to Closed