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

Empty dialog box with window.onbeforeunload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.8.0, 5.9.0 Alpha
    • Fix Version/s: 5.9.0 Beta 2
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Archlinux
    • Commits:
      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

            • Assignee:
              davidsz Szabolcs David
              Reporter:
              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