Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63979

Javascript popup issues when disabling or enabling Javascript in browser between quiz start button clicks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      While doing some exploratory testing for the linked issue, I noticed 2 problems.

      I note this is probably an edge case and unlikely to happen in real use, but it can happen.

       

      Steps to reproduce:

      • login as teacher and add a quiz to the 101 course - https://qa.moodle.net/
      • in the settings ensure Browser security = 'Full screen pop-up with some JavaScript security' via the Extra restrictions on attempts section
      • add some basic true false questions to the quiz, I added 3 
      • ensure Javascript is enabled in browser and login as a student
      • open the quiz and click the attempt quiz button
      • there should be a popup full screen window
      • close this window
      • disable Javascript in the browser but don't refresh the quiz page of the student
      • click the attempt quiz button again

      Expected:

      • the full screen popup should not be opened

      Actual:

      • the full screen popup is opened until the user refreshes the page then the button is removed

       

      There is also another scenario I discovered which has a similar outcome:

       

      Steps:

      • login as teacher and add a quiz to the 101 course - https://qa.moodle.net/
      • in the settings ensure Browser security = 'Full screen pop-up with some JavaScript security' via the Extra restrictions on attempts section
      • add some basic true false questions to the quiz, I added 3 
      • ensure Javascript is enabled in browser and login as a student
      • open the quiz page but don't click the attempt quiz button
      • disable Javascript in the browser
      • don't refresh the page of the student viewing the quiz
      • click button, full screen popup is not opened as expected
      • enable Javascript in the browser
      • don't refresh the page of the student viewing the quiz
      • click the attempt quiz button again

      Expected:

      • Javascript is enabled so fullscreen pop up should open

      Actual:

      • Fullscreen popup does not get opened even with Javascript enabled

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Craig Bailie Craig Bailie
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: