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

onbeforeunload poorly respected on Safari

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: 3.0.6, 3.1.2
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Lyons
              Reporter:
              dobedobedoh Andrew Lyons
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: