Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

Add "EdgeNext" as return value from Fit.Browser.GetBrowser() #105

Closed FlowIT-JIT closed 3 years ago

FlowIT-JIT commented 4 years ago

Currently modern versions of Edge is detected as "Chrome" when using Fit.Browser.GetBrowser() while older versions (prior to the adoption of Chromium as its engine) are correctly identified as "Edge".

We need a new return value that identifies modern versions of Edge as its own browser - e.g. "EdgeNext", "ModernEdge", "EdgeChrome", or similar.

The argument for adding a new name for this browser is of course that it is in fact a new browser with only the visual appearance in common with the old version of Edge.

FlowIT-JIT commented 3 years ago

Fit.Browser.GetBrowser(true) will now reveal an app specific name (EdgeChromium and OperaChromium when based on Chromium) while Fit.Browser.GetBrowser() will return Chrome for both the Chrome browser as well as modern versions of Edge and Opera. Fit.Browser.GetInfo(true) also allows for this behaviour to obtain the app specific name/identifier.