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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 3.6
    • Quiz
    • None
    • MOODLE_36_STABLE

      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

            Unassigned Unassigned
            Craig Bailie Craig Bailie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.