mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
31c6ba7ecd
In testing future versions of Qt I forgot to compile with `YUZU_USE_QT_WEB_ENGINE`, so with that flag enabled there are two issues that cropped up. 1. yuzu currently uses setRequestInterceptor, added in Qt 5.6, deprecated in 5.13 with this explaination at https://doc.qt.io/qt-5/qwebengineprofile-obsolete.html Interceptors installed with this method will call QWebEngineUrlRequestInterceptor::interceptRequest on the I/O thread. Therefore the user has to provide thread-safe interaction with the other user classes. For a duration of this call ui thread is blocked. Use setUrlRequestInterceptor instead. 2. QWebEngineSettings::globalSettings() pointer no longer exists in later versions of Qt From what I can tell, QtNXWebEngineView doesn't need to set these globally, when we make changes to settings(), QtWebEngineView::page() creates the page object if it doesn't exist yet. I don't see the page object being destroyed or otherwise replaced, except via destroying the QtNXWebEngineView object. The globalSettings() make sense if Pages or Views objects are being created outside of yuzu's control. To test this I've compared what BrowseNX and Odyssey's Action guide do in mainline 1049 and this PR. For now we're going to go up the chain to QWebEngineProfile::defaultProfile()->settings() |
||
---|---|---|
.. | ||
applets | ||
configuration | ||
debugger | ||
util | ||
about_dialog.cpp | ||
about_dialog.h | ||
aboutdialog.ui | ||
bootmanager.cpp | ||
bootmanager.h | ||
check_vulkan.cpp | ||
check_vulkan.h | ||
CMakeLists.txt | ||
compatdb.cpp | ||
compatdb.h | ||
compatdb.ui | ||
compatibility_list.cpp | ||
compatibility_list.h | ||
discord.h | ||
discord_impl.cpp | ||
discord_impl.h | ||
game_list.cpp | ||
game_list.h | ||
game_list_p.h | ||
game_list_worker.cpp | ||
game_list_worker.h | ||
hotkeys.cpp | ||
hotkeys.h | ||
Info.plist | ||
install_dialog.cpp | ||
install_dialog.h | ||
loading_screen.cpp | ||
loading_screen.h | ||
loading_screen.ui | ||
main.cpp | ||
main.h | ||
main.ui | ||
uisettings.cpp | ||
uisettings.h | ||
yuzu.qrc | ||
yuzu.rc |