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

onbeforeunload poorly respected on Safari

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Major Major
    • None
    • 3.0.6, 3.1.2
    • Forms Library
    • MOODLE_30_STABLE, MOODLE_31_STABLE

      Note

      This appears to be a bug in Safari.
      The onbeforeunload function is only respected once per tab, though it is called on each occasion

      Reproduction
      1. Edit a form
      2. Hit refresh instead of save
      Expected

      Form change checker warns you

      Actual

      Page refreshes

      Notes

      The change checking is working and it is reporting that the form is dirty. The message is reported, but is not shown in Safari.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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