Hi, we found an issue on our instance (Redwood version) a few days ago. Around March 18th, our Chrome browser was updated to v146.0.x, and the “drag and drop” XBlock suddenly stopped working. Specifically, the button with the option to “Generate images and zones” generates an SVG that Chrome v146.0.x is unable to render, which causes it to break.
One of our team members still had version 145.0.x and was not experiencing the problem. Once they updated Chrome, the error became visible. We also tested it on Firefox, where the problem does not occur, so as far as we know this is Chrome-specific.
We may just need to wait for a patch from their end, but we wanted to post here in case there is something that can be addressed from the application side.
img src attribute contains the following:
src="data:image/svg+xml;producer=%22dndv2%22;cols=3;rows=1;zone_width=200;zone_height=200,%3Csvg%20xmlns%3D%22http%3A%2F%``2Fwww.w3.org``%2F2000%2Fsvg%22%20width%3D%22680%22%20height%3D%22240%22%3E%0A%20%20%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22%23fff%22%20%3E%3C%2Frect%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%2220%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20y%3D%2220%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20fill%3D%22%23f7f7f7%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20rx%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ry%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke%3D%22%23d6d6d6%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-width%3D%222%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-dasharray%3D%223%2C3%22%20%3E%3C%2Frect%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%22240%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20y%3D%2220%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20fill%3D%22%23f7f7f7%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20rx%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ry%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke%3D%22%23d6d6d6%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-width%3D%222%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-dasharray%3D%223%2C3%22%20%3E%3C%2Frect%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%22460%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20y%3D%2220%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%3D%22200%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20fill%3D%22%23f7f7f7%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20rx%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ry%3D%2210%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke%3D%22%23d6d6d6%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-width%3D%222%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20stroke-dasharray%3D%223%2C3%22%20%3E%3C%2Frect%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%3C%2Fsvg%3E"
Firefox shows it right:
More details:
-
Issue has been reported in Chrome and Edge browsers (Firefox works fine)
-
Chrome version 145.0 was working fine, but then it started failing in version 146.0
-
The problem happens in this place:
https://github.com/openedx/xblock-drag-and-drop-v2/blob/master/drag_and_drop_v2/public/js/drag_and_…
This promise is being rejected due to the SVG file failing to load -
Chrome v146.0 is failing to parse the SVG


