Skip to content
Browse files

MDL-33140 quiz browser security: block copy/paste more

  • Loading branch information...
1 parent ba459c4 commit c0ed22f6c74ccbec566ac70fdbdc6b87d28b4b94 @timhunt timhunt committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 mod/quiz/module.js
View
9 mod/quiz/module.js
@@ -208,10 +208,13 @@ M.mod_quiz.secure_window = {
window.location = 'about:blank';
}
Y.delegate('contextmenu', M.mod_quiz.secure_window.prevent, document, '*');
- Y.delegate('mousedown', M.mod_quiz.secure_window.prevent_mouse, document, '*');
- Y.delegate('mouseup', M.mod_quiz.secure_window.prevent_mouse, document, '*');
- Y.delegate('dragstart', M.mod_quiz.secure_window.prevent, document, '*');
+ Y.delegate('mousedown', M.mod_quiz.secure_window.prevent_mouse, document, '*');
+ Y.delegate('mouseup', M.mod_quiz.secure_window.prevent_mouse, document, '*');
+ Y.delegate('dragstart', M.mod_quiz.secure_window.prevent, document, '*');
Y.delegate('selectstart', M.mod_quiz.secure_window.prevent, document, '*');
+ Y.delegate('cut', M.mod_quiz.secure_window.prevent, document, '*');
+ Y.delegate('copy', M.mod_quiz.secure_window.prevent, document, '*');
+ Y.delegate('paste', M.mod_quiz.secure_window.prevent, document, '*');
M.mod_quiz.secure_window.clear_status;
Y.on('beforeprint', function() {
Y.one(document.body).setStyle('display', 'none');

0 comments on commit c0ed22f

Please sign in to comment.
Something went wrong with that request. Please try again.