AW NS: implement MIME type sniffing for Android Streams
Only affects the NetworkService code path. This implements MIME type sniffing when the app provides a null MIME type in any of the following cases: - shouldInterceptRequest() callback API - ContentProvider (loaded from content:// URL) - file:///android_{asset,res} URL (when we can't already guess the MIME type from the path name). This is done to accommodate legacy apps, which relied on this internal detail of the legacy network path. This implementation is behind a feature flag (enabled by default) as an extra precaution, in case it causes unexpected problems. Bug: 985491 Test: manual - verify this fixes the GoldenDict application Test: run_android_webview_unittests -f AndroidStreamReaderURLLoaderTest.* Test: run_webview_instrumentation_test_apk -f AwContentsClientFullScreenTest.* Change-Id: I4f81657206c218e4835f3d0a59ce5f5ce65932c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721878 Commit-Queue: Nate Fischer <ntfschr@chromium.org> Reviewed-by:John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#682483}
Showing
Please register or sign in to comment