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

Empty dialog box with window.onbeforeunload

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.8.0, 5.9.0 Alpha
    • WebEngine
    • None
    • Archlinux
    • I820155452461db90bf1df2ae8a8ec10ee752aab1

    Description

      When opening https://code-maven.com/try/examples/js/prevent_leaving_the_page.html and then entering another URL, Chromium displays a "Do you want to leave this site?" dialogbox.

      QtWebEngine simply displays an empty confirmation box (without text), and this doesn't seem to be overridable. I think there should be a QWebEnginePage::javaScriptConfirmLeave(const QUrl securityOrigin, const QString &msg) or so for this, or at the very least, a better text should be displayed.

      Attachments

        For Gerrit Dashboard: QTBUG-58673
        # Subject Branch Project Status CR V

        Activity

          People

            davidsz Szabolcs David
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes