summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginescriptcollection_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-01-29 15:57:18 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-01-31 21:31:45 +0000
commitef1f608f76f02f11b4bdcc8d52fa41cdf4cdf5c3 (patch)
tree047a52a007af9f835f077d5061861557296ae7a8 /src/webenginewidgets/api/qwebenginescriptcollection_p.h
parent23c652c3c1680f42adfd5c6500280b103ce1d095 (diff)
Preserve webchannel and userscripts when restoring history
Most page-state is set in webcontentsadapter::initialize except user scripts and webchannel. This patch ensures those are initialized too when changing to a new adapter during history restore. Change-Id: I4dca23ddab50480b1a72252a038834ce1802ad77 Task-number: QTBUG-50751 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: David Rosca <nowrep@gmail.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginescriptcollection_p.h')
-rw-r--r--src/webenginewidgets/api/qwebenginescriptcollection_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginescriptcollection_p.h b/src/webenginewidgets/api/qwebenginescriptcollection_p.h
index cc6e88445..b5ae60a2c 100644
--- a/src/webenginewidgets/api/qwebenginescriptcollection_p.h
+++ b/src/webenginewidgets/api/qwebenginescriptcollection_p.h
@@ -69,6 +69,8 @@ public:
QList<QWebEngineScript> toList(const QString &scriptName = QString()) const;
QWebEngineScript find(const QString & name) const;
+ void rebindToContents(QtWebEngineCore::WebContentsAdapter *contents);
+
void insert(const QWebEngineScript &);
bool remove(const QWebEngineScript &);
void clear();