[Qt 6] webapp-container's --user-scripts= does not work
Initially reported on forums:
I've noticed a small bug on 24.04-2.0 RC3 and the new webapp-container based on Qt6.
It seems that the option "--user-scripts=" of webapp-container , no longer works. If I specify a script, not only will it not be executed, but also the app will start to ask me for every domain reached by the site, including the domain of the main url, if I want to allow it or block it.
With the exact same use of the option it works on 24.04-1.3 and webapp-container based on Qt5.
This seems to be a very simple case of "forgot to port to Qt 6". Basically
Qt.createQmlObject('import QtWebEngine 1.10; WebEngineScript {}', webappViewLoader);has to be changed to simply WebEngine.script().
Will have a look.