yuzu-mainline/src/yuzu
Kyle Kienapfel 31c6ba7ecd tweak API usage in qt_web_browser.cpp
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()
2022-06-21 17:48:17 -07:00
..
applets tweak API usage in qt_web_browser.cpp 2022-06-21 17:48:17 -07:00
configuration Merge pull request #8393 from lat9nq/default-vulkan 2022-06-11 00:06:59 -07:00
debugger general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
util general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
about_dialog.cpp about dialog: Fix the logo in a multiplatform way 2022-05-16 05:42:38 -07:00
about_dialog.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
aboutdialog.ui about dialog: Fix the logo in a multiplatform way 2022-05-16 05:42:38 -07:00
bootmanager.cpp Merge pull request #8318 from Docteh/cmake-qt56-entry 2022-06-10 23:09:49 -04:00
bootmanager.h Merge pull request #8318 from Docteh/cmake-qt56-entry 2022-06-10 23:09:49 -04:00
check_vulkan.cpp yuzu-qt: Make has_broken_vulkan only for crashes 2022-05-30 10:58:18 -04:00
check_vulkan.h yuzu-qt: Make has_broken_vulkan only for crashes 2022-05-30 10:58:18 -04:00
CMakeLists.txt Merge pull request #8353 from Docteh/msvc_report_runtime 2022-06-11 13:21:23 -04:00
compatdb.cpp
compatdb.h
compatdb.ui ui: Fix Game Compatibility list translations 2022-04-16 16:30:45 -07:00
compatibility_list.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
compatibility_list.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
discord_impl.cpp
discord_impl.h
discord.h
game_list_p.h ui: Fix Game Compatibility list translations 2022-04-16 16:30:45 -07:00
game_list_worker.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
game_list_worker.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
game_list.cpp Merge pull request #8449 from Docteh/translate_placeholder 2022-06-11 13:19:18 -04:00
game_list.h UI: retranslate the game list placeholder 2022-06-10 20:15:52 -07:00
hotkeys.cpp
hotkeys.h
Info.plist
install_dialog.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
install_dialog.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
loading_screen.cpp Update some files with Qt 5.15.2 best practices in mind 2022-05-29 09:21:52 -07:00
loading_screen.h Update some files with Qt 5.15.2 best practices in mind 2022-05-29 09:21:52 -07:00
loading_screen.ui
main.cpp Merge pull request #8353 from Docteh/msvc_report_runtime 2022-06-11 13:21:23 -04:00
main.h ui: Status bars dock button becomes dock/undock button 2022-06-01 17:22:53 -07:00
main.ui
uisettings.cpp
uisettings.h yuzu-qt: Make has_broken_vulkan only for crashes 2022-05-30 10:58:18 -04:00
yuzu.qrc
yuzu.rc