1
0
Fork 0
forked from suyu/suyu
suyu/src
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
..
audio_core command_generator: Use u8 for tap index lut 2022-05-13 00:50:58 -04:00
common Merge pull request #8413 from behunin/bounded-queue 2022-06-11 00:07:18 -07:00
core gdbstub_arch: Add missing virtual destructor 2022-06-11 18:23:22 -04:00
input_common Merge pull request #8374 from german77/asnycvibrations 2022-05-28 00:55:53 -07:00
shader_recompiler general: Avoid ambiguous format_to compilation errors 2022-05-14 16:48:34 -04:00
tests chore: add missing SPDX tags 2022-04-28 18:24:11 +02:00
video_core Merge pull request #8413 from behunin/bounded-queue 2022-06-11 00:07:18 -07:00
web_service general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
yuzu tweak API usage in qt_web_browser.cpp 2022-06-21 17:48:17 -07:00
yuzu_cmd default_ini: Reflect new renderer backend default setting 2022-05-29 21:38:36 -04:00
.clang-format
CMakeLists.txt CMakeLists: Enforce C4505 and C5245 2022-04-07 23:00:04 -04:00