-
Notifications
You must be signed in to change notification settings - Fork 169
Description
Important
- Please always consult the documentation first before creating a bug report: https://safeexambrowser.org/windows/win_usermanual_en.html.
- Please always attach the log file(s) of the affected session(s)! They can be found under
%LocalAppData%\SafeExamBrowser\Logs.
Describe the Bug
Trinket is a browser-based coding environment that can be embedded as an iframe within Moodle quizzes.
When a Moodle quiz is run in Safe Exam Browser (SEB), users on Windows (SEB 3.10) cannot copy text from an embedded Trinket iFrame and paste it into the quiz's essay response field.
This issue is not reproducible on macOS (SEB 3.6), where copying and pasting from the iFrame works as expected.
Steps to Reproduce
Steps to reproduce the behavior:
To reproduce in a new Moodle quiz:
- Create an SEB config file, setting "Clipboard Policy - SEB Only" to true.
- In Moodle, create a new quiz with one description-type question and one essay-type question.
- Go to trinket.io and create a new Trinket.
- Use the "Share" option to copy the trinket's embed code.
- Navigate back to Moodle to edit the description question, and paste the embed code into the question text's HTML editor.
- Save the Moodle quiz.
- Log into Moodle as a student and launch the quiz, which will start SEB.
- Once the quiz loads, navigate to the question and type text (e.g., print("hello, world!")) into the embedded Trinket editor.
- Attempt to copy the text from the Trinket iframe (Ctrl+C) and paste it (Ctrl+V) into the Moodle essay answer field. The paste action fails.
To observe the behavior in an existing quiz:
- Create a "Brickyard" guest account on NC State Moodle Projects
- Select the "Create New Account" button.
- Enter the desired email address that should be associated with the Brickyard account.
- Follow the instructions provided to verify the email address and finalize the Brickyard account.
- Self-enroll in this sample course course: SEB Testing - iframe Copy + Paste Issue
- Sign in with your new Brickyard account and launch the “Mock Quiz” (this will launch SEB on your device).
- Once the quiz loads, navigate to the description question containing the Trinket iframe.
- Enter text (e.g., print("hello, world!")) into the embedded Trinket editor.
- Attempt to copy the line of code (Ctrl+C) from the Trinket iframe and paste it (Ctrl+V) into the Moodle essay answer field. The paste action fails.
Expected Behavior
When the "Clipboard Policy - SEB Only" is enabled, Windows users should be able to copy text from an embedded iframe inside of the quiz and paste it into a response field within the same quiz.
Version Information
- OS: Windows 11 (24H2, Build 26100.6584)
- SEB Version: 3.10.0x64
- Moodle Version: 4.5.6+ (Build: 20250822)
Additional Context
This behavior has not yet been tested in embedded iframes other than Trinket.
Log Files
2025-10-22_10h11m34s_Client.log