miketaylr / user-agent-reduction

This repository is for documenting and discussing all matters related to User Agent Reduction in Chromium.
Other
9 stars 7 forks source link

UA reduction not working on Android Webview #5

Closed adrigzr closed 2 years ago

adrigzr commented 2 years ago

Describe the issue UA reduction not working on Android Webview.

Environment:

To Reproduce Steps to reproduce the behavior:

  1. Download Webview Test
  2. Open a valid url with trial enrolled inside webview
  3. Check chrome://inspect to see evidences

Expected behavior UA should be reduced.

Screenshots

Evidences on Webview Test:

Screenshot 2022-01-07 at 13 18 58 Screenshot 2022-01-07 at 13 19 09

Evidences on Chrome:

Screenshot 2022-01-07 at 13 20 18 Screenshot 2022-01-07 at 13 20 25

Additional context

I prefer to not publish my trial origin, but as seen in evidences it is well configured.

abeyad commented 2 years ago

Hi Adrian - thanks for the bug report! This is actually working as intended. We are not reducing the UA string on WebView, primarily because client hints are not yet available on WebView. Here's the tracking bug for client hints on WebView: crbug.com/921655.

Since this is intended behavior, I'll close the bug out, but if you have any further questions, please don't hesitate to ask.

abeyad commented 2 years ago

I've also sent a PR to update the blog post to note that the origin trial isn't meant to include WebView and iOS.

adrigzr commented 2 years ago

@abeyad, great to know! We were worried about it! Regards.