[wp-trac] [WordPress Trac] #49198: Blink: Intent to Deprecate + Freeze `navigator.userAgent`

WordPress Trac noreply at wordpress.org
Thu Jan 7 15:27:44 UTC 2021


#49198: Blink: Intent to Deprecate + Freeze `navigator.userAgent`
-----------------------------+------------------------------
 Reporter:  georgestephanis  |       Owner:  adamsilverstein
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  Future Release
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  javascript
-----------------------------+------------------------------
Changes (by adamsilverstein):

 * milestone:  Awaiting Review => Future Release


Comment:

 Thanks for opening this ticket @georgestephanis - I agree we should be
 paying attention to this, and may eventually need to update all use in
 core of `navigator.userAgent`.

 For now, it seems like most core use will continue to work even with the
 reduced userAgent information discussed at the bottom of the ticket
 thread, because we only look for the browser name in nearly all cases:
 https://github.com/WordPress/wordpress-
 develop/search?p=3&q=navigator.userAgent

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49198#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list