Skip to content
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

Remove Internet Explorer from browser detection #8559

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

jonkoops
Copy link
Collaborator

Removes Internet Explorer from the browser detection code and removes all related code based on these checks. This removes the following APIs:

  • L.Browser.ie
  • L.Browser.ielt9
  • L.Browser.ie3d

@jonkoops jonkoops added api compatibility Cross-browser/device/environment compatibility breaking ie Internet Explorer labels Oct 12, 2022
@jonkoops jonkoops added this to the 2.0 milestone Oct 12, 2022
@jonkoops jonkoops self-assigned this Oct 12, 2022
Copy link
Member

@IvanSanchez IvanSanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like an underwhelming historic moment.

I can't see anything wrong with the code changes.

Copy link
Member

@Falke-Design Falke-Design left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
It's important that we make in the changelog clearly visible all API changes, but I think this is clear

@jonkoops
Copy link
Collaborator Author

@Falke-Design Yeah, I was thinking we could perhaps already create a draft release for 2.0 with all the breaking changes and migration guide. That way we don't have to retroactively compile it all.

@Falke-Design
Copy link
Member

Sounds good. But let us only add for now the main things like breaking / API changes so that we don't forget them. And then before the release, I go over all the commits again and add everything else

@jonkoops
Copy link
Collaborator Author

Exactly what I was thinking, I'll get on that after merging this in.

@jonkoops jonkoops merged commit 2daebbb into Leaflet:main Oct 13, 2022
@jonkoops jonkoops deleted the remove-browser-ie branch October 13, 2022 09:41
@@ -92,7 +92,7 @@ css: "#map {
fillOpacity: 0.7
});

if (!L.Browser.ie && !L.Browser.opera && !L.Browser.edge) {
if (!L.Browser.opera && !L.Browser.edge) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, the other two switches here are suspicious. For edge, is this detecting the old IE-based Edge, not the Chromium one? And why would Opera not work here if it's also pretty much a flavour of Chrome now? Maybe we could get rid of both of these too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For edge, is this detecting the old IE-based Edge, not the Chromium one?

Yes, this only detects the old (non-Chromium) based Edge. The same goes for the detection of Opera. I'll be removing more browsers from this detection code that are no longer relevant to our support target.

I'm also thinking of replacing all checks for Chrome with 'Chromium-based' browsers, treating them all as the same thing. Since they share the same engine this should make the code a bit simpler.

@Malvoz Malvoz mentioned this pull request Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api breaking compatibility Cross-browser/device/environment compatibility ie Internet Explorer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants