Project

General

Profile

Actions

Feature #893

closed

Create a navigation entry to access WebView's Dev UI

Added by Soren Stoutner 3 months ago. Updated 30 days ago.

Status:
Closed
Priority:
Next Release
Start date:
08/20/2022
Due date:
% Done:

0%

Estimated time:

Description

https://chromium.googlesource.com/chromium/src/+/master/android_webview/docs/developer-ui.md

This is the same Dev UI that is available as an icon on the beta, canary, and dev channels.

https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/prerelease.md

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);
Actions #1

Updated by Soren Stoutner 3 months ago

  • Description updated (diff)
Actions #2

Updated by Soren Stoutner 3 months ago

  • Description updated (diff)
Actions #3

Updated by Soren Stoutner 3 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.

Actions #4

Updated by Soren Stoutner about 1 month ago

  • Description updated (diff)
Actions

Also available in: Atom PDF