-
Bug
-
Resolution: Fixed
-
Major
-
2.0.1, 2.0.7, 2.1.4, 2.2.1, 2.3
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
When attempting a quiz in secure mode as a student, it attempts to disable right click by using JavaScript. When a right click is detected, a popup box comes up, but then gets stuck in a loop which forces the user to have to close the page which cancels the quiz attempt. Added a detach call in to the function so it does not loop until another right click event is called. Also disabled the double alert boxes appearing by disabling the message from appearing when the context menu tries to appear.
Whilst testing this, another loophole was detected where you could right click on the boundary of the page and the right click context menu would appear just fine. This was because it was only triggering the event on 'document.body'. Changing this to 'document' seems to have patched this.
- duplicates
-
MDL-25722 "Full screen pop-up with some JavaScript security" in Quiz not functioning correctly
-
- Closed
-