[wp-trac] [WordPress Trac] #53451: Chrome 92 userAgent notice

WordPress Trac noreply at wordpress.org
Fri Jun 18 17:12:13 UTC 2021


#53451: Chrome 92 userAgent notice
---------------------------+-----------------------------
 Reporter:  superpoincare  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  minor          |   Keywords:
  Focuses:  javascript     |
---------------------------+-----------------------------
 Starting Chrome 92, Chrome dev tools will start warning about the usage of
 navigator.userAgent:

 https://blog.chromium.org/2021/05/update-on-user-agent-string-
 reduction.html

 Although it is colored blue and not red and hence not an error message,
 it's better to not see it.

 Many scripts user navigator.userAgent, especially wp-emoji.js which loads
 on all sites.

 A way to continue using it is to see if navigator.userAgentData is true
 and prevent new Chrome from executing navigator.userAgent.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53451>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list