Hotfix for Edge 16

This commit is contained in:
Federico Dossena 2017-10-12 09:20:44 +02:00
parent f63afeac55
commit b1149b36ed
3 changed files with 5 additions and 5 deletions

4
doc.md
View file

@ -1,7 +1,7 @@
# HTML5 Speedtest
> by Federico Dossena
> Version 4.3.2, September 5 2017
> Version 4.3.2 Hotfix 1, October 12 2017
> [https://github.com/adolfintel/speedtest/](https://github.com/adolfintel/speedtest/)
@ -291,7 +291,7 @@ At the moment there is no front-end to see the telemetry data; you can connect t
## Known bugs and limitations
* The ping/jitter test is measured by seeing how long it takes for an empty XHR to complete. It is not an acutal ICMP ping
* __IE11, Edge 15 (15 only):__ the upload test is not precise, especially on very fast connections
* __IE11, Edge 15 and 16 (only):__ the upload test is not precise, especially on very fast connections
* __IE11:__ the upload test may not work over HTTPS
* __Firefox:__ on some Linux systems with hardware acceleration turned off, the page rendering makes the browser lag, reducing the accuracy of the ping/jitter test

View file

@ -1,5 +1,5 @@
/*
HTML5 Speedtest v4.3.2
HTML5 Speedtest v4.3.2 Hotfix 1
by Federico Dossena
https://github.com/adolfintel/speedtest/
GNU LGPLv3 License
@ -86,7 +86,7 @@ this.addEventListener('message', function (e) {
if (/Edge.(\d+\.\d+)/i.test(ua)) {
// edge more precise with 3 download streams
settings.xhr_dlMultistream = 3
if (/Edge\/15.(\d+)/i.test(ua)) {
if (/Edge\/15.(\d+)/i.test(ua) || /Edge\/16.(\d+)/i.test(ua)) {
//Edge 15 introduced a bug that causes onprogress events to not get fired, so for Edge 15, we have to use the "small chunks" workaround that reduces accuracy
settings.forceIE11Workaround = true
}

File diff suppressed because one or more lines are too long