@@ -276,6 +276,7 @@ <h3>Help us improve HTML5 test by donating</h3>
276276 var payload = '{' +
277277 '"release": "' + r . release + '",' +
278278 '"source": "' + source + '",' +
279+ '"protocol": "' + location . protocol + '",' +
279280 '"identifier": "' + escapeSlashes ( identifier ) + '",' +
280281 '"task": "' + task + '",' +
281282 '"uniqueid": "' + r . uniqueid + '",' +
@@ -324,7 +325,6 @@ <h3>Help us improve HTML5 test by donating</h3>
324325 "</div>" ,
325326 c ) ;
326327
327-
328328 /* Show box for confirming useragent detection */
329329 new Confirm ( container , {
330330 id : r . uniqueid ,
@@ -374,6 +374,23 @@ <h3>Help us improve HTML5 test by donating</h3>
374374 button . innerHTML = '<span>Donate</span>' ;
375375 buttons . appendChild ( button ) ;
376376
377+
378+ if ( location . protocol == "http:" ) {
379+ var warning = document . createElement ( 'div' ) ;
380+ warning . className = 'upgradeWarning' ;
381+ warning . innerHTML =
382+ "<h4>Your browser may support even more features on a secure connection</h4>" +
383+ "<p>Modern browsers only support some advanced features using on websites that uses a secure connection. " +
384+ "This is because these features expose privacy sensitive data. Because you are now using an insecure connection, " +
385+ "these features may not be available and are not detected.</p>" +
386+ "<a href='https://html5test.com'>Try again, but using a secure connection</a>" ;
387+
388+ container . appendChild ( warning ) ;
389+ }
390+
391+
392+
393+
377394 /* Show detailed report of scores */
378395 var container = document . getElementById ( 'results' ) ;
379396 var div = document . createElement ( 'div' ) ;
0 commit comments