Moodle
  1. Moodle
  2. MDL-33140

mdlqa: Copy&Paste in Quiz with Opera/Firefox

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6, 2.2.3, 2.3
    • Fix Version/s: 2.1.7, 2.2.4
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      See the linked MDLQA issue.

      Note the comment that it is impossible to make this work in all browsers due to poor JS event support.

      -please test on 21, 22 and master.

      Show
      See the linked MDLQA issue. Note the comment that it is impossible to make this work in all browsers due to poor JS event support. -please test on 21, 22 and master.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
    • Rank:
      41001

      Description

      Opera and Firefox allow Copy&Paste in Quiz (MDLQA-1968). There is no pop-up displaying saying it´s prohibited to paste text in the quiz.

        Issue Links

          Activity

          Hide
          Michael de Raadt added a comment -

          Hi, Tim.

          Could you please comment on this issue. As it is related to a QA test, we need to resolve it before release.

          Show
          Michael de Raadt added a comment - Hi, Tim. Could you please comment on this issue. As it is related to a QA test, we need to resolve it before release.
          Hide
          Tim Hunt added a comment -

          Testing in Chrome, on my Mac, copy and paste using the keyboard is correctly blocked. You cannot access the context menu to copy and paste that way, that is also blocked. But, copy and paste using the menu bar edit menu items does work.

          I don't know if there is anything we can do about that.

          Show
          Tim Hunt added a comment - Testing in Chrome, on my Mac, copy and paste using the keyboard is correctly blocked. You cannot access the context menu to copy and paste that way, that is also blocked. But, copy and paste using the menu bar edit menu items does work. I don't know if there is anything we can do about that.
          Hide
          Tim Hunt added a comment -

          OK, I have added code to try to more explicitly block the cut, copy and paste events.

          If you look at http://www.quirksmode.org/dom/events/cutcopypaste.html you will see that many browsers do not correctly handle these events properly, so this code still may not be enough to block copy and paste on all browsers. There is nothing we (as Moodle) can do about this.

          Show
          Tim Hunt added a comment - OK, I have added code to try to more explicitly block the cut, copy and paste events. If you look at http://www.quirksmode.org/dom/events/cutcopypaste.html you will see that many browsers do not correctly handle these events properly, so this code still may not be enough to block copy and paste on all browsers. There is nothing we (as Moodle) can do about this.
          Hide
          Aparup Banerjee added a comment -

          Thanks Tim, that's been integrated into 21, 22 and master. Please test on all branches.

          Hopefully that solves the problem.

          Otherwise here's a crazy idea, allow moodle or quiz only, to be configured to block particular browsers entirely! i can imagine a default spiteful setting there lol.

          Show
          Aparup Banerjee added a comment - Thanks Tim, that's been integrated into 21, 22 and master. Please test on all branches. Hopefully that solves the problem. Otherwise here's a crazy idea, allow moodle or quiz only, to be configured to block particular browsers entirely! i can imagine a default spiteful setting there lol.
          Hide
          Klaus Steitz added a comment -

          As i commented in MDLQA-1968 now it works fine for 2.3 at http://qa.moodle.net.

          Show
          Klaus Steitz added a comment - As i commented in MDLQA-1968 now it works fine for 2.3 at http://qa.moodle.net .
          Hide
          Jason Fowler added a comment -

          Works fine

          Show
          Jason Fowler added a comment - Works fine
          Hide
          Dan Poltawski added a comment -

          Congratulations!

          Your work has made into the latest Moodle release!

          You are only authorised to celebrate after testing 15 Moodle 2.3 QA tests, thanks!

          Show
          Dan Poltawski added a comment - Congratulations! Your work has made into the latest Moodle release! You are only authorised to celebrate after testing 15 Moodle 2.3 QA tests, thanks!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: