mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
This change is to fetch userAgentMetadata and override navigator.userAgentData when user selects a pre-canned user agent from the network conditions tab. Created 3 test scenarios to cover the userAgentMetadata values: 1) a device with userAgentMetadata and fixed userAgent value; 2) a device with userAgentMetadata and dynamic userAgent value where browser version is filled in dynamically; 3) a device without userAgentMetadata. Bug: 1174299 Change-Id: If38cbb1f26784af890c86b7140b90899a6aa8504 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2832109 Commit-Queue: Guangyue Xu <guangyue.xu@microsoft.com> Reviewed-by: Brandon Walderman <brwalder@microsoft.com> Reviewed-by: Mathias Bynens <mathias@chromium.org> Reviewed-by: John Emau <John.Emau@microsoft.com>