canvas-lms
canvas-lms copied to clipboard
Browser crashing when editing feedback in item bank question that uses iframes
Summary:
The browser page crashes when using the GUI editing tools to format feedback to a question in the Item Bank. Editing yourself or editing in HTML mode is stable.
Steps to reproduce:
- Go into the Item Bank
- Create a new MC question. I've replicated this with MC and FIB, and I assume it would manifest with other question types as well.
- Give the question a title, stem, and a few answer choices
- In the lower left, click the button for providing question-level Student Feedback; that's the black discussion icon.
- Put content in a feedback box. I entered into the "Provide general feedback (regardless of answer)" section, but I assume any of the three boxes would behave similarly.
- Highlight some/all of the feedback text
- Click the
Paragraph🔻dropdown in the GUI toolbar.
At this point, the page crashes instantly, producing Chrome's "Aw, snap" page error (or "This page is having a problem" error on Edge).
Expected behavior:
The Paragraph🔻 dropdown should appear, allow you to select a different format for the text you selected.
Actual behavior:
The browser page crashes.
Additional notes:
I ran this using new questions in the new Item Bank. Error replicated in Chrome 128.0.6613.137 and Edge 128.0.2739.79 on a Windows 11 device.
I don't know if it's related, but when starting a New question, the following appears in the browser's JavaScript console:
index.tsx:40 Uncaught (in promise) Error: No tray found
at index.tsx:40:19