Latest Stable: Issue with "Secure Domain" enabled + prejoinpage

Hi folks,

we upgraded to the latest Jitsi Stable, running under Ubuntu Server 20

jicofo                1.0-899-1          JItsi Meet COnference FOcus
jitsi-meet            2.0.7416-1         WebRTC JavaScript video conferences
jitsi-meet-prosody    1.0.6239-1         Prosody configuration for Jitsi Meet
jitsi-meet-web        1.0.6239-1         WebRTC JavaScript video conferences
jitsi-meet-web-config 1.0.6239-1         Configuration for web serving of Jitsi Meet
jitsi-videobridge2    2.2-8-g3c9d3c52-1  WebRTC compatible Selective Forwarding Unit (SFU)
prosody               0.11.4-1           Lightweight Jabber/XMPP server 

It seems like whenever any Browser other than Firefox is used, the authorization (hitting ENTER after entering your Moderator Login/PW) takes up to 30/40 Seconds, if not giving a timeout (depending on the user). If finally logged in, everything works fine.

This is from the Chrome Browser Console:

Entering prejoin Page, hitting the “Join Meeting Button”:

Logger.js:154 2022-06-20T09:45:26.722Z [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>:  UnhandledError: Focus error, retry after 1000 Script: null Line: null Column: null StackTrace:  Error: Focus error, retry after 1000
    at ar._allocateConferenceFocusError (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:376575)
    at https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:375616
    at I.Handler.handler (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:154229)
    at (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:149528)
    at https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:157966
    at Object.forEachChild (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:141196)
    at I.Connection._dataRecv (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:157815)
    at D.Bosh._onRequestStateChange (https://SERVER.DOMAIN.TLD/libs/lib-jitsi-meet.min.js?v=6239:2:177799)

Logger.js:154 2022-06-20T09:45:26.723Z [modules/xmpp/moderator.js] <ar._allocateConferenceFocusError>:  Focus error, retry after 1000 

It takes an unusual amount of time for the “Authorization required” popup to show (and even longer to process entries), and with firefox (where there is no time delay at all) the “Authorization required” popup is not focussed, instead the Browser’s search bar is opened, just as if someone has typed “CTRL+F”, and all entries go there.

The whole thing seems to me a bit JS related… Any Ideas?

Workaround: Disabling prejoinpage did the trick …

We had addressed the Firefox issue in a stable release following the one you use. The slowness is s still not addressed… We will work on it at some point, any help, PRs and pointers is welcome, it is js related in my opinion…