diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-08-31 10:29:07 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-09-12 10:22:28 +0000 |
commit | a5e680c2ef404693870aedfb10f22ffc83cd38e7 (patch) | |
tree | dcaf1c152848cb5cc0b710e241661b87e83bafa1 /tests/auto/quick/quick.pro | |
parent | 5b5b7d9a5f922ef5fa99cfac41da348e23970032 (diff) |
Fix issues with qml bindings accessing non-existing adapter
We have currently two levels of initialization for WebEngineView:
the profile initialization and the adapter initialization.
The adapter initialization is delayed to first navigation request
to pick the right initial site instance and avoid creating dummy/blank
WebContents, which in turn would start unnecessary render process.
Profile initialization is delayed to make sure we avoid unnecessary
default profile creations. Created profiles use filestorage. Unfortunately
qml will call QQuickItem::componentComplete() only when the root element
is completed and the bindings can be already in use by that time.
Profile initialization has to take place before adapter initialization.
Construct adapter together with WebEngineView, but create and initialize
profile before adapter initialization.
Go through WebEngineView and fix emitting signals based on adapter
initialization. Most of the signals are emitted on initializationFinished().
Task-number: QTBUG-70248
Change-Id: I2acd8bff761c692a360733cbf537de53e1295695
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick/quick.pro')
-rw-r--r-- | tests/auto/quick/quick.pro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/quick/quick.pro b/tests/auto/quick/quick.pro index 02ce59f17..50a6a8587 100644 --- a/tests/auto/quick/quick.pro +++ b/tests/auto/quick/quick.pro @@ -8,7 +8,8 @@ SUBDIRS += \ inspectorserver \ publicapi \ qquickwebenginedefaultsurfaceformat \ - qquickwebengineview + qquickwebengineview \ + qtbug-70248 qtConfig(webengine-testsupport) { SUBDIRS += \ @@ -17,4 +18,4 @@ qtConfig(webengine-testsupport) { } # QTBUG-66055 -boot2qt: SUBDIRS -= inspectorserver qquickwebenginedefaultsurfaceformat qquickwebengineview qmltests dialogs +boot2qt: SUBDIRS -= inspectorserver qquickwebenginedefaultsurfaceformat qquickwebengineview qmltests dialogs qtbug-70248 |