Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1284

Ignore errors coming from mod_page and mod_resource

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Error reporting
    • Labels:
    • Testing Instructions:
      Hide
      1. Include the errorreport script in index.html.
      2. Manually call window.onerror from console. Check that if you use a valid URL with mod_resource and mod_page states the error message is not shown, while using another URL shows the report message.
      Show
      Include the errorreport script in index.html. Manually call window.onerror from console. Check that if you use a valid URL with mod_resource and mod_page states the error message is not shown, while using another URL shows the report message.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      For some reason we receive a lot of weird errors coming from mod_resource and mod_page. Most of them are references to unexisting variables. We guess that window.onerror is getting errors that happen inside an iframe, but I wasn't able to reproduce this issue.

      We think we should ignore the errors coming from these states since they're mostly useless for us and they can cause a bad user experience.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              6/Nov/15