blockpy-server icon indicating copy to clipboard operation
blockpy-server copied to clipboard

Maze game crashes on Safari

Open acbart opened this issue 6 years ago • 2 comments

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.

acbart avatar Aug 28 '19 11:08 acbart

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

acbart avatar Aug 29 '19 21:08 acbart

This seems like it'd be a potential solution:

https://community.blackboard.com/thread/7871-lti-launch-request-gives-an-error-in-safari-browser

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

acbart avatar Aug 29 '19 21:08 acbart