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
[Regression] Map stopped working in older Chrome versions #2529
Comments
How "old" are we talking exactly? |
The fact that this affects the display of tiles suggests it is something in the leaflet library, but that hasn't changed in a long time. I can't think of anything in our code that would be likely to have this effect and which has changed recently. |
Uglifier was turned on again recently: d33cad4 |
Yes but that had only been off for a short while - historically it has always been on. |
Ok, then it's a question of which exact Chrome version the OP is using, and on which OS? I would also try a full cache refresh to see if this helps. |
I can reproduce this on Opera 12.16, Build 1860 on Ubuntu 18.04 x64. Here's the non obfuscated local version based on 3bc4f8e It points to some code inside of bootstrap. Maybe there's some bug, or the library is called in some unexpected ways.
|
So that is from bootstrap which is why it has started happening recently - probably not a huge amount we can do about it. |
Specifically I think it is the |
Though https://caniuse.com/#feat=mdn-api_domparser_parsefromstring claims that Opera 12 should support it? |
That's odd, yes. Here's a minimal version to reproduce the issue:
unsafeHtml happens to be the string at the place of the issue. It could be anything else, though. parseFromString will always fail with Unhandled DOMException: NOT_SUPPORTED_ERR |
In any case that Opera version is quite dated. Let’s see which Chrome version the OP uses. |
This seems related twbs/bootstrap-rubygem#171 In cases where we serve static text that doesn't depend on any user input, we might provide our own sanitizer function instead. |
Reading https://developer.mozilla.org/en-US/docs/Web/API/DOMParser (and caniuse.com) I am pretty sure we are talking about an Chrome older than v31 (and Firefox <v12). There is also a snipped (DOMParser HTML extension) for polyfilling this missing feature. Not sure if we should invest time into this security risk using this browser. |
|
No I think that happened in e5c33c1 which is likely what triggered this. |
Ok, so all planned tooltip related changes are already in place now, and we're not in some intermediate state where further changes would be expected. Tbh, this wasn't entirely clear to me when I read #2511. Probably that issue simply hasn't been updated yet in the meantime, and all is good. |
Chrome 31 is from November 2013, and Firefox 12 is from April 2012. So I don't think we should spend any time on supporting these browsers. We also see the same errors on the test suite, since we use PhantomJS and that doesn't implement this functionality either. But the solution there is to upgrade away from PhantomJS, and I'll open a separate issue for that. |
I'm sure it worked a month or two ago on this PC, but now it doesn't, the map is just gray.
There are two errors in the console:
Uncaught TypeError: Cannot redefine property: name
Uncaught TypeError: Cannot read property 'body' of null
Sorry I can't be more of help, all the scripts are obfuscated.
The text was updated successfully, but these errors were encountered: