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

Embedded media are broken for 'Login as' functionality

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. create a course
      2. edit any section (not course description) and insert youtube video - insert smth like 

        <p style="text-align: center;"><iframe width="800" height="450" src="https://www.youtube.com/embed/qE8Z8VnLepY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" enablejsapi="1" id="widget2"></iframe></p>
        <p> Text is shown </p>
        

      1. Make sure video is displayed and plays as expected for admin
      2. Login as any student in that course using 'Login as' feature. Go to course page
      3. Video is NOT showing at all
      Show
      create a course edit any section (not course description) and insert youtube video - insert smth like  <p style= "text-align: center;" ><iframe width= "800" height= "450" src= "https://www.youtube.com/embed/qE8Z8VnLepY" frameborder= "0" allow= "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen= "" enablejsapi= "1" id= "widget2" ></iframe></p> <p> Text is shown </p> Make sure video is displayed and plays as expected for admin Login as any student in that course using 'Login as' feature. Go to course page Video is NOT showing at all
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      After recent security patch https://tracker.moodle.org/browse/MDL-63786 certain functions are not behaving as they used to. For example embedded video is not showing when using 'Login As' feature

        Attachments

        1. 1 student view modal buttons.png
          62 kB
          John Provasnik
        2. 2 log in as view modal buttons.png
          63 kB
          John Provasnik
        3. 3 admin view google slide.png
          213 kB
          John Provasnik
        4. 4 log in as view google slidew.png
          35 kB
          John Provasnik
        5. Loginas-Limited-View 1.png
          30 kB
          John Provasnik
        6. Loginas-Limited-View 2.png
          304 kB
          John Provasnik
        7. MDL-65813.png
          652 kB
          Michael Hawkins
        8. Workspace 1_035.png
          814 kB
          Ilya Tregubov

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ilyatregubov Ilya Tregubov
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              50 Vote for this issue
              Watchers:
              47 Start watching this issue

                Dates

                Created:
                Updated: