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

Polyfill.js will begin to have compatibility issues starting in Chrome 101

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_401_STABLE

      I received the following Audit Issue in Chrome 95's developer tools today:

      A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

      To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.

      For more information, see:
      https://blog.chromium.org/2021/09/user-agent-reduction-origin-trial-and-dates.html

      The script it is referring to is:
      /lib/babel-polyfill/polyfill.min.js in in Moodle 3.8 to 3.11
      /lib/polyfill/polyfill.js in Moodle 4.0+

      Note: Current version of Chrome is 95 so you have a bit of time to address this.

            Unassigned Unassigned
            michael-milette Michael Milette
            Votes:
            1 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.