Maze game crashes on Safari
Student reported that the maze game crashed when they tried to launch from Safari.
In the server logs, I found this:
File "./controllers/maze.py", line 16, in load
return load_editor(lti, editor_information)
File "./controllers/maze.py", line 24, in load_editor
submission=editor_information['submissions'][position],
IndexError: list index out of range
So it looks like somehow, the position information wasn't being loaded. My first hypothesis is that somehow, Safari wasn't launching with the right information. However, we'll need to do a deeper dive. This could easily be some other kind of issue that's non-browser related.
Okay, so this is actually a thing. Apparently, Safari doesn't like it when iFrames have cookies, and that's pretty necessary to the functioning of the Maze game. In fact, a lot of stuff breaks when you turn off cookies. We need to figure out a workaround. Potential lead: https://gist.github.com/iansltx/18caf551baaa60b79206
This seems like it'd be a potential solution:
https://community.blackboard.com/thread/7871-lti-launch-request-gives-an-error-in-safari-browser
- Prevent Cross-Site Tracking: There is an option “Prevent Cross-Site Tracking” to allow such cookies in Safari, but by default, the option is Yes and one needs to set it to No to allow such cookies.