Making WordPress.org


Ignore:
Timestamp:
10/02/2017 05:04:34 PM (8 years ago)
Author:
coffee2code
Message:

Browse Happy API: Check for Trident token at a higher priority than MSIE token when determining the version of IE.

Allows proper version of IE to be detected, even if browser mode is employed to emulate another version of IE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/tests/phpunit/tests/browse-happy.php

    r5985 r5986  
    263263                'Windows Internet Explorer 11.0',
    264264            ],
     265            [ // Fictitious Trident version
     266                'Mozilla/5.0 (Windows NT 6.3; Trident/34.0; rv:38.0) like Gecko',
     267                'Windows Internet Explorer 34.0',
     268            ],
    265269            [
    266270                'Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0) Asus;Galaxy6',
Note: See TracChangeset for help on using the changeset viewer.