Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.3.0
-
None
-
-
c5de1b2123 (qt/qtwebengine/dev) c5de1b2123 (qt/tqtc-qtwebengine/dev) d6f4bc46ad (qt/qtwebengine/6.3)
Description
Take the simplebrowser example.
In TabWidget::createBackgroundTab(), just before the return, add the line
webPage->load(QUrl("https://www.google.com/"));
This will cause new tabs to open google.com by default. However, the tab icon is not updated: it does not show google.com favicon. Instead a default icon is displayed.
Reloading the page, will cause the icon to be displayed.
It seems that when the issue happen QWebEnginePage::iconChanged and QWebEnginePage::iconUrlChanged signals are not emitted.
Note: it is possible to retrieve the icon by calling QWebEngineProfile::requestIconForPageURL once the page has loaded.