We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca92de commit f05d65aCopy full SHA for f05d65a
src/webengine/api/qquickwebengineview.cpp
@@ -573,6 +573,10 @@ void QQuickWebEngineViewPrivate::adoptWebContents(WebContentsAdapter *webContent
573
if (qmlWebChannel)
574
adapter->setWebChannel(qmlWebChannel);
575
576
+ // re-bind the userscrips to the new adapter
577
+ Q_FOREACH (QQuickWebEngineScript *script, m_userScripts)
578
+ script->d_func()->bind(browserContextAdapter()->userScriptController(), adapter.data());
579
+
580
// Emit signals for values that might be different from the previous WebContentsAdapter.
581
emit q->titleChanged();
582
emit q->urlChanged();
0 commit comments