Error in MS Edge for online chat - Edge user does not see other users

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.

 

Attachments

7

is related to

Activity

Show:

Corné Oosthuizen August 6, 2020 at 7:24 AM
Edited

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:

  1. 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);

  2. ... page continues to load slowly ...

  3. Timer expires and calls callback - function does not exist

    'updatePresence()' is not defined

  4. ... page continues to load slowly ...

  5. 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.

I was starting testing for rubrics on https://qa1-us.nightly.sakaiproject.org., Build Info: b5f86457

Link in Firefox for the error: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_defined

 

Andrea Schmidt February 14, 2019 at 6:34 PM

This is still a problem and I'm uploading a new video.

https://trunk-mysql.nightly.sakaiproject.org, Build Info: b0a83ced

Microsoft Edge 44.17763.1.0

Microsoft EdgeHTML 18.17763

Sam Ottenhoff January 16, 2019 at 3:50 PM

I tested on BrowserStack and wasn't able to replicate. If you can still replicate, please re-open

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Environment

https://trunk-mysql.nightly.sakaiproject.org/portal/site/AXRH_667P_1819, Build Info: cc5aa785 Win10: Edge

Created December 21, 2018 at 7:45 PM
Updated August 18, 2020 at 9:36 AM
Resolved August 18, 2020 at 9:36 AM