Merge lp://qastaging/~mardy/webbrowser-app/creation-mode into lp://qastaging/webbrowser-app
Status: | Rejected |
---|---|
Rejected by: | Alberto Mardegan |
Proposed branch: | lp://qastaging/~mardy/webbrowser-app/creation-mode |
Merge into: | lp://qastaging/webbrowser-app |
Prerequisite: | lp://qastaging/~mardy/webbrowser-app/oa-runtime |
Diff against target: |
115 lines (+26/-5) 4 files modified
src/app/browserapplication.cpp (+7/-2) src/app/browserapplication.h (+8/-2) src/app/webcontainer/sqlitecookiestore.cpp (+8/-0) src/app/webcontainer/webapp-container.cpp (+3/-1) |
To merge this branch: | bzr merge lp://qastaging/~mardy/webbrowser-app/creation-mode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandre Abreu (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Ubuntu Phablet Team | Pending | ||
Review via email:
|
Commit message
Don't load the webview as soon as a webapp starts
The code in webapp-
"accountProvider" property and loads the webview if that's empty.
If this property is set after the component has been built, this will cause the
webview to be (accidentally) loaded for a fraction of a second, which in turn
will cause the WebProcess to be spawned. The WebProcess will read the
cookies.db file, and the same WebProcess instance will likely be reused for the
webapp, once we really want to use it. This has the unfortunate side-effect
that it will not re-read the cookies which we might have copied over from
Online Accounts in the meantime.
So, with this change we make sure that all properties (including
"accountProvider") will be set on the Window before the component is completed.
Description of the change
Don't load the webview as soon as a webapp starts
The code in webapp-
"accountProvider" property and loads the webview if that's empty.
If this property is set after the component has been built, this will cause the
webview to be (accidentally) loaded for a fraction of a second, which in turn
will cause the WebProcess to be spawned. The WebProcess will read the
cookies.db file, and the same WebProcess instance will likely be reused for the
webapp, once we really want to use it. This has the unfortunate side-effect
that it will not re-read the cookies which we might have copied over from
Online Accounts in the meantime.
So, with this change we make sure that all properties (including
"accountProvider") will be set on the Window before the component is completed.
PASSED: Continuous integration, rev:459 jenkins. qa.ubuntu. com/job/ webbrowser- app-ci/ 617/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 3718 jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty- touch/3309 jenkins. qa.ubuntu. com/job/ webbrowser- app-trusty- amd64-ci/ 119 jenkins. qa.ubuntu. com/job/ webbrowser- app-trusty- armhf-ci/ 119 jenkins. qa.ubuntu. com/job/ webbrowser- app-trusty- armhf-ci/ 119/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-trusty- i386-ci/ 119 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-trusty/ 3268 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/3723 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/3723/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/3311 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/3311/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/5679 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 4532
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/webbrowser- app-ci/ 617/rebuild
http://