Error in MS Edge for online chat - Edge user does not see other users
GENERAL
TESTING
GENERAL
TESTING
Description
Win10: Edge - initially the user did see the other users logged into the course. The other users were in Chrome and two in Firefox. One of the users left the site and Chrome and Firefox updated. Edge did not update.
On refresh, all users were gone from Edge, not even the user in Edge displayed.
I cleared the cache, logged in again and still nothing.
The error that displays in Edge: 0: 'updatePresence' is not defined [eval code (26) (1,1)|ms-appx-web://Microsoft.MicrosoftEdgeDevToolsClient/23/console/eval code (26)]
On trunk, the user in Edge still displays for the other users even though the Edge user is not able to see anyone else.
I was able to reproduce this error, it's not really specific to Edge browser - it is related to how quickly your browser is able to load the JavaScript (morpheus.scripts.min.js) and the function is available when the timeout does the callback to the "updatePresence()" function.
So steps:
Browser loads HTML page
footer (portal\portal-render-engine-impl\impl\src\webapp\vm\morpheus\includeFooterExtras.vm) includes a script that sets a timeout to run updatePresence() (line 296)
script creates timer to run callback (sakaiPresenceTimeDelay defaults to 5000 = 5 seconds): var sakaiLastPresenceTimeOut = setTimeout('updatePresence()', sakaiPresenceTimeDelay);
... page continues to load slowly ...
Timer expires and calls callback - function does not exist
'updatePresence()' is not defined
... page continues to load slowly ...
morpheus.scripts.min.js is now loaded - updatePresence is not run
Fix:
Change the timeout call to check if the function exists - then call it else we wait a bit.
Andrea Schmidt February 14, 2019 at 7:34 PM
For the first time I have seen this on Firefox this evening, but haven't figured out how to reproduce there. I have only seen it this one time so far.
Win10: Edge - initially the user did see the other users logged into the course. The other users were in Chrome and two in Firefox. One of the users left the site and Chrome and Firefox updated. Edge did not update.
On refresh, all users were gone from Edge, not even the user in Edge displayed.
I cleared the cache, logged in again and still nothing.
The error that displays in Edge:
0: 'updatePresence' is not defined
[eval code (26) (1,1)|ms-appx-web://Microsoft.MicrosoftEdgeDevToolsClient/23/console/eval code (26)]
On trunk, the user in Edge still displays for the other users even though the Edge user is not able to see anyone else.