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

When a new tab is created via Javascript calling window.open() then the new tab does not render right away

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.14.2
    • WebEngine
    • Windows 10

      When a new tab is created via Javascript calling window.open() then the new tab does not render right away. If you switch away from the tab and back again then it will show up correctly. This can be reproduced using the quicknanobrowser using:

      https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro

      and the code:

      <!DOCTYPE html>
      <html>​
      <body>​
      ​
      <h2>The window.print() Method</h2>​
      ​
      <p>Click the button.</p>​
      ​
      <button onclick=op()>Show new page</button>​
      <script>​
      function op(){​
      ​
      window.open("https://cdn.freebiesupply.com/logos/large/2x/qt-logo-png-transparent.png")​
      ​
      }​
      </script>​
      ​
      </body>​
      </html>
      

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

            juri.valdmann Jüri Valdmann (Inactive)
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes