From 8fe2e9ca5fb27be7a2f014117489c99456e3e8e1 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 11 Jun 2024 11:57:15 +0200 Subject: [PATCH] Force a user interaction before token login. This avoids issues with autoplay being disabled. --- CHANGES | 4 ++- static/galene.css | 6 ++-- static/galene.html | 10 ++++--- static/galene.js | 69 +++++++++++++++++++++++++++++----------------- 4 files changed, 55 insertions(+), 34 deletions(-) diff --git a/CHANGES b/CHANGES index fd5f1f2..4f46f28 100644 --- a/CHANGES +++ b/CHANGES @@ -2,7 +2,9 @@ Galene 0.9.1 (unreleased) * Added an example client with minimal functionality under static/example. * Fixed a race condition that would cause the client to run with - undefined settings if the initial connection was extremely quick. + undefined settings if the initial connection was extremely fast. + * Changed the token login to force a user interaction in order to avoid + issues with autoplay. * Implemented client-side timeouts (we already had one on the server side). * Reduced the server-side timeout. * Don't attempt to set the file descriptor limit, since recent versions diff --git a/static/galene.css b/static/galene.css index c2cec85..cb41c3c 100644 --- a/static/galene.css +++ b/static/galene.css @@ -715,17 +715,17 @@ h1 { font-weight: bold; } -.userform { +.login { display: inline } -.userform label { +.loginform label { min-width: 3em; display: inline-block; padding-top: 10px; } -.userform input[type="text"], .userform input[type="password"] { +.loginform input[type="text"], .loginform input[type="password"] { width: 100%; } diff --git a/static/galene.html b/static/galene.html index 0e7f922..556eeec 100644 --- a/static/galene.html +++ b/static/galene.html @@ -101,10 +101,12 @@