[TYPO3-dev] BrowserInfo going beserk...

Steffen Kamper info at sk-typo3.de
Fri May 21 11:00:32 CEST 2010


Jigal van Hemert schrieb:
> Steffen Kamper wrote:
>> Jigal van Hemert schrieb:
>>> Lars Houmark wrote:
>>>> Jigal van Hemert wrote:
>>>>> For the Install Tool I already proposed a change to Patrick Broens to
>>>>> simply use conditional comments for the IE6/7 CSS, but this problem
>>>>> still affects the Typoscript conditions for browser type and version.
>>>>
>>>> Browser detection was improved/changed very recently with RFC 
>>>> #14230. You noticed that, right?
>>>
>>> I checked that RFC, but it only changed the Typoscript conditions, 
>>> not the detection mechanism itself.
>>>
>>
>> wrong - the detection was changed completely.
>>
> 
> Lars referred to RFC #14230. I just re-read it again (yes, so many 
> times!) and only 
> t3lib/matchcondition/class.t3lib_matchcondition_abstract.php was 
> modified to allow matching with "all".
> 
> It was #14201 which changed the detection. And this introduced the 
> problem: "use the last one found (the right-most one in the UA). That's 
> usually the most correct.")
> 
> Chrome has Safari as the right-most agent, MSIE 7/8 may have MSIE 6.0 to 
> the right of MSIE 7.0/8.0...
> 

again, the "browser" member is deprecated and only there for 
compatibility reason. For correct detection the "all" has to be used.

vg Steffen




More information about the TYPO3-dev mailing list