Description
When using a QWebEngineScript (with setWorldId) or QWebEnginePage::runJavaScript and passing in a world ID above 11, the callback never gets called.
Example:
#include <QApplication> #include <QWebEngineView> #include <QDebug> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebEngineView view; int world = 12; view.page()->runJavaScript("1 + 1", world, [](QVariant res){qDebug() << res; }); return app.exec(); }
If the world id is changed to 11, it prints the output as expected. With world id 12, there's no output.