New issue
Advanced search Search tips

Issue 736103 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

[WKWebView setCustomUserAgent] doesn't work for news.google.com on devices.

Project Member Reported by liaoyuke@chromium.org, Jun 22 2017

Issue description

Call [WKWebView setCustomUserAgent] on news.google.com on devices doesn't refresh the page.
 
Components: -Mobile>WebView>Glue UI>Browser>Navigation
I stumbled on this bug because of the TODO here:
https://cs.chromium.org/chromium/src/ios/web/web_state/web_state_impl.mm?q=736103&l=764

It looks like calling [WKWebView setCustomUserAgent] updates navigator.userAgent as expected without having to destroy the WKWebView. The current page is not reloaded, but the next page loaded will see the new user agent.

Right now we're calling [CRWWebController requirePageReconstruction], which is slow. Is this really necessary?
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment