Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36155

onbeforeunload is not always called when navigating away from a webpage or closing one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 4.8.5, 5.2.0
    • WebKit

    Description

      With the attached HTML file then when you do the following onbeforeunload is not being called:

      1) close the window (or the tab if using the browser example)
      2) click on a link inside the page

      This works fine with other browsers and onbeforeunload works fine if you click on a bookmark for example.

      Attachments

        1. beforeunload.diff
          3 kB
        2. test.html
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            annulen Konstantin Tokarev
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes