summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebengineview.cpp
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2015-03-30 05:58:20 -0700
committerSzabolcs David <davidsz@inf.u-szeged.hu>2015-05-07 12:23:13 +0000
commit76a990cfa3409214530e77d132cdefd9e96685f9 (patch)
tree7d62ab06ba35446d0ba56a30fe6d3e93362a7cc6 /src/webengine/api/qquickwebengineview.cpp
parent8596813a10b66b539746bb890bd4304e5f65b348 (diff)
Quick: Share profiles between application windows
The applications should not create new WebEngineProfiles for each window, because the WebEngineView can not adopt content from a different profile when the target of the NewViewRequest is a new window (SHIFT+click) or a dialog. This also adds a notifier signal to the profile property in order to avoid "non-NOTIFYable" warnings. Change-Id: I235789f9bfa1a216f99592204e50266242d0ef1c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineview.cpp')
-rw-r--r--src/webengine/api/qquickwebengineview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineview.cpp b/src/webengine/api/qquickwebengineview.cpp
index bc58e2526..8b2adab58 100644
--- a/src/webengine/api/qquickwebengineview.cpp
+++ b/src/webengine/api/qquickwebengineview.cpp
@@ -724,9 +724,12 @@ QQmlListProperty<QQuickWebEngineScript> QQuickWebEngineView::userScripts()
void QQuickWebEngineViewPrivate::setProfile(QQuickWebEngineProfile *profile)
{
+ Q_Q(QQuickWebEngineView);
+
if (profile == m_profile)
return;
m_profile = profile;
+ Q_EMIT q->profileChanged();
m_settings->setParentSettings(profile->settings());
if (adapter && adapter->browserContext() != browserContextAdapter()->browserContext()) {