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

Upgrade MathJax to 3.2.2

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-75486-main
    • Hide

      Upgrading test - copied from MDL-70317

      1. Before patch (moodle.git)
        1. Create a new Moodle instance WITHOUT this patch.
        2. Once done, go to "Site administration -> plugins -> filters -> Mathjax"
        3. Check that both MathJax URL setting and the default value point to version 2.7.9. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js"
      2. After patch (switch to integration.git)
        1. Upgrade the site to (integration.git)
        2. Check that Filter MathJax have an upgrade to perform.
        3. Check that no error appears when the instance is upgrading.
        4. Go to "Site administration -> plugins -> filters -> Mathjax"
        5. Check that that both MathJax URL setting and the default value now point to version 3.2.2. e.g. "https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-mml-chtml.min.js"

      Manual testing - copied from MDL-70317

      1. Create a regular user and enrol as student in a course
      2. Log in as this student.
      3. Open the user Edit Profile page.
      4. In the Description WYSIWYG, remove any existing content, and paste the following ( use the attached screenshot as a reference just in case):
         

        $$ \unicode {<img src=123 onerror=alert(123)>} $$

        $$ x = \frac{\sqrt{144}}{2}\ \times\ (y\ +\ 12) $$

      5. Press "Update profile".
      6. Logout and login as admin
      7. Go to the user profile.
        1. Check that no javascript alert popup appears
        2. Check that in the description  appears something like the screenshot
      8. Edit the user profile
        1. Check that no javascript alert popup appears
        2. Check that the description field looks like the screenshot
      Show
      Upgrading test - copied from MDL-70317 Before patch (moodle.git) Create a new Moodle instance WITHOUT this patch. Once done, go to "Site administration -> plugins -> filters -> Mathjax" Check that both MathJax URL setting and the default value point to version 2.7.9. e.g. "https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js" After patch (switch to integration.git) Upgrade the site to (integration.git) Check that Filter MathJax have an upgrade to perform. Check that no error appears when the instance is upgrading. Go to "Site administration -> plugins -> filters -> Mathjax" Check that that both MathJax URL setting and the default value now point to version 3.2.2. e.g. "https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-mml-chtml.min.js" Manual testing - copied from MDL-70317 Create a regular user and enrol as student in a course Log in as this student. Open the user Edit Profile page. In the Description WYSIWYG, remove any existing content, and paste the following ( use the attached screenshot as a reference just in case):   $$ \unicode {<img src=123 onerror=alert(123)>} $$ $$ x = \frac{\sqrt{144}}{2}\ \times\ (y\ +\ 12) $$ Press "Update profile". Logout and login as admin Go to the user profile. Check that no javascript alert popup appears Check that in the description  appears something like the screenshot Edit the user profile Check that no javascript alert popup appears Check that the description field looks like the screenshot
    • Hide

      Code verified against automated checks.

      Checked MDL-75486 using repository: https://github.com/stevandoMoodle/moodle.git

      More information about this report

      Built on: Tue Mar 4 04:52:27 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-75486 using repository: https://github.com/stevandoMoodle/moodle.git main (0 errors / 0 warnings) [branch: MDL-75486-main | CI Job ] More information about this report Built on: Tue Mar 4 04:52:27 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-75486 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/18393/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63004/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63039/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63040/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/63007/ App tests (stable app version) Built on: Mon Mar 3 10:25:16 UTC 2025
    • 2
    • Team Dragons 2025 Sprint 1.2

      MathJax   ( $CFG->httpsurl (in filter_mathjaxloader) )   2.7.9  -->  3.2.2    :    https://cdn.jsdelivr.net/npm/mathjax@latest/MathJax.js

            stevani.andolo@moodle.com Stevani Andolo
            sarjona Sara Arjona (@sarjona)
            Raquel Ortega Raquel Ortega
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            33 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 45 minutes
                2d 2h 45m

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