? ? Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
6 Apr 2017

Summary of Changes

At the moment IE11+ and Edge will not recognized correctly, because Microsoft delivers "strange" user agents (see: https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx)

With this fix, Edge and IE11 will be regognized correctly

Testing Instructions

The most common case, where a browser check will be used is while loading CSS/JS files.

So go to libraries/cms/html/html.php line 334 and add print_r($potential);

else
{
	$potential = array($strip);
}
print_r($potential);
// If relative search in template directory or media directory
if ($relative)
{

If you go to your Joomla! page, you'll see that Joomla! tries to load different browser dependend CSS/JS files with the format filename_browsername_majorversion_minorversion (i.e. mozilla_5_0).

Expected result

If you browse with IE11 or Edge, Joomla! should recognize this browsers

Actual result

IE11 will be recognized as Mozilla, Edge as Chrome.

Now apply patch and the correct versions should be displayed.

avatar bembelimen bembelimen - open - 6 Apr 2017
avatar bembelimen bembelimen - change - 6 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
Category Libraries
avatar bembelimen bembelimen - change - 6 Apr 2017
Labels Added: ?
avatar bembelimen
bembelimen - comment - 6 Apr 2017

The question here is: should "Edge" be recognized as "edge" or as "msie"?

avatar dgt41
dgt41 - comment - 6 Apr 2017

@bembelimen IMHO it should be edge not msie.

avatar bembelimen
bembelimen - comment - 6 Apr 2017

Then the PR is correct ;)

avatar chmst
chmst - comment - 7 Apr 2017

I've tested this successfully on 3.7 beta4

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 7 Apr 2017 - chmst: Tested successfully
avatar Didldu-Florian
Didldu-Florian - comment - 7 Apr 2017

I've tested this successfully on 3.7.0-rc1

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 7 Apr 2017 - Didldu-Florian: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Apr 2017

RTC after two successful testes.

avatar wilsonge wilsonge - change - 7 Apr 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-07 20:07:09
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 7 Apr 2017
avatar wilsonge wilsonge - merge - 7 Apr 2017

Add a Comment

Login with GitHub to post a comment