-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Edge browser based on Chromium not recognized correctly #113
Comments
Pull Requests are very welcome! 😉 |
@timbru31 No Problem, but are you guys happy with the new name or not? Is it okay to identify the browser as |
Or would it be better to keep the browser name |
I feel like it is important to make a distinction between between old edge vs chromium edge as I think anybody is doing that check are doing it for backwards compatibility reasons (some things even if the browser supports it, just simply doesn't work very well, or isn't very efficient/performant compared to other browsers). If it is easy enough to make that distinction with just a version check, then I think I would prefer to keep the browser name |
…dge instead of Chrome
Bug Report
Problem
What is expected to happen?
The
device.model
which will execute this code, now detects the new Edge browser which is based on Chromium and released on 15th January as Chrome, which would be incorrect.What does actually happen?
It detects the new Edge browser as Chrome.
Information
I think it should also not detect this new browser as Edge, but maybe as EdgeChromium? Because there are big difference between the "old" Edge en the new Chromium Edge. And maybe you would like to block the old Edge, but the new Edge is ok! Therefore the detection should return a different browser name I would suggest.
When the "old" Edge was released the following issue solved this check for the old Edge: https://issues.apache.org/jira/browse/CB-12105.
The new Chromium based Edge exposed the following
userAgent
string:Command or Code
This code has the issue: https://github.com/apache/cordova-plugin-device/blob/master/src/browser/DeviceProxy.js#L35
It could be updated to the next code to see a difference between the old and the new Edge.
Environment, Platform, Device
The new Edge released on 15th January
Version information
N/A
Checklist
The text was updated successfully, but these errors were encountered: