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

Qt Web Engine alert quotes not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.2, 6.7.0 Beta2, 6.8.0 FF
    • 6.5.3
    • WebEngine
    • None
    • Windows
    • 3fcf62c0c (dev), b9c8cfba0 (6.7), 3484a9bb1 (6.6)

    Description

      I have the following HTML document:

      <!DOCTYPE html>
      <html>
      <head>
          <script>alert("\"");</script>
      <head>
      <body>
      </body>
      </html>
      

      I add it as a resource as :/document.html and load it in Qt Web Engine like this:

      QWebEngineView webEngineView;
      webEngineView.load(QUrl("qrc:/document.html"));
      webEngineView.show();
      

      When I run this, I expect it to alert ", but instead it alerts &quot;:

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mnegyokru Martin Negyokru
            donaldduck Donald Duck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes