? ? Success

User tests: Successful: Unsuccessful:

avatar 810
810
27 Mar 2019

no test

Pull Request for Issue # .

Summary of Changes

add support new edge

Testing Instructions

code review

Expected result

Actual result

Documentation Changes Required

avatar 810 810 - open - 27 Mar 2019
avatar 810 810 - change - 27 Mar 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2019
Category Libraries Unit Tests
avatar 810 810 - change - 27 Mar 2019
Labels Added: ? ?
avatar mbabker
mbabker - comment - 28 Mar 2019

For completeness, joomla-framework/application#86 added the same for the Joomla\Application\Web\WebClient class and I went ahead and tagged a new release with that included. So if someone wants to do the composer update then both browser detection libraries will have this addition once this PR and the upstream change are applied.

avatar 810
810 - comment - 28 Mar 2019

fixed the codestyle

avatar Quy
Quy - comment - 1 Apr 2019

How about using existing code to handle the new version as follows:

			if (preg_match('|Edg(e)?\/([0-9.]+)|', $this->agent, $version))
			{
				$this->setBrowser('edg' . $version[1]);

				if (strpos($version[2], '.') !== false)
				{
					list($this->majorVersion, $this->minorVersion) = explode('.', $version[2]);
				}
				else
				{
					$this->majorVersion = $version[2];
					$this->minorVersion = 0;
				}
			}
avatar 810
810 - comment - 1 Apr 2019

if (preg_match('|Edg(e)?\/([0-9.]+)|', $this->agent, $version))

Edge will stay at 2 different versions <75 Will be the edge html, and above 75 will use the blink html.

avatar Quy
Quy - comment - 1 Apr 2019

$this->setBrowser('edg' . $version[1]);

It will be set to edge or edg accordingly.

avatar HLeithner HLeithner - change - 23 Apr 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-04-23 16:56:30
Closed_By HLeithner
Labels Removed: J3 Issue
avatar HLeithner HLeithner - close - 23 Apr 2019
avatar HLeithner HLeithner - merge - 23 Apr 2019
avatar HLeithner
HLeithner - comment - 23 Apr 2019

thx

Add a Comment

Login with GitHub to post a comment