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

setBackgroundColor on QWebEnginePage dosen't seem to work consistently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.7.1, 5.10.1, 5.11.1, 5.12.2
    • WebEngine
    • None
    • * qt 5.10.1 webinstaller
       * qt 5.7.1 - debian
       * qt 5.7.1 - from pypi via PyQt

      I think this affects every Qt version, at least starting from 5.7.1

    Description

      setBackgroundColor seems to be broken for me when viewing multiple 'types of link'.

      To reproduce on simplebrowser:

      1. Apply attached patches to simplebrowser (to set background color to black), and print a little debug information.
      2. Open a new blank tab with right click in tabbar -> new tab
      3. Navigate to file:///dev/null , which displays a completely black page.
      4. In the same tab, type 'qt.io' into the search bar, and hit enter.
      5. Navigate to file:///dev/null in the same tab.

      I expect this to display a black page, but instead, I see a white page.

      Furthermore, once this state is reached, I see white flashes between loads of webpages (which this setting is supposed to prevent). 

      Trying to workaround this issue by running setBackgroundColor repeatedly dosen't help, I must run it twice (to unset it, and set it back). Once doing that, it seems to work as expected, until it breaks again.

      Please let me know if I can provide any additional information.

       

      Attachments

        1. tabwidget.cpp.patch
          0.6 kB
          Jay Kamat
        2. webpage.cpp.patch
          0.7 kB
          Jay Kamat

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              jgkamat Jay Kamat
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes