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.
Attachments
For Gerrit Dashboard: QTBUG-69904 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
236635,4 | Bump maximum number of custom isolated world ids | 65-based | qt/qtwebengine-chromium | Status: MERGED | +2 | 0 |
237369,4 | Document world ID limit | 5.11.2 | qt/qtwebengine | Status: MERGED | +2 | 0 |