Merge lp://staging/~3v1n0/ubuntu-system-settings-online-accounts/webview-prefs into lp://staging/ubuntu-system-settings-online-accounts
Status: | Approved | ||||
---|---|---|---|---|---|
Approved by: | Alberto Mardegan | ||||
Approved revision: | 238 | ||||
Proposed branch: | lp://staging/~3v1n0/ubuntu-system-settings-online-accounts/webview-prefs | ||||
Merge into: | lp://staging/ubuntu-system-settings-online-accounts | ||||
Diff against target: |
66 lines (+15/-1) 3 files modified
plugins/module/OAuth.qml (+3/-1) plugins/module/OAuthMain.qml (+8/-0) plugins/module/WebView.qml (+4/-0) |
||||
To merge this branch: | bzr merge lp://staging/~3v1n0/ubuntu-system-settings-online-accounts/webview-prefs | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Víctor R. Ruiz (community) | Needs Fixing | ||
Alberto Mardegan (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Review via email: mp+249877@code.staging.launchpad.net |
Commit message
OAuthMain: add ability to clients to change WebView preferences
Sometimes OAuthMain extenders might need to change the webview
preferences, this adds a webViewPreferences property that can
be filled with values for overriding defaults
Description of the change
I had to login to a service that needed the local storage to be available in the WebView when logging in, and this is not enabled by default in the account view.
I'm not sure whether is a good thing to enable that in the WebView for every account, so while I could just override the default OAuth.qml and WebView.qml in my app, this is not the best thing as it could lead to breakage on future changes.
So, I thought that it might be reasonable to add a webViewPreferences that every account that extends OAuthMain can easily change.
In this way I can get things working by just doing:
OAuthMain
{
webViewPrefer
}
Unmerged revisions
- 238. By Marco Trevisan (Treviño)
-
OAuthMain: add ability to clients to change WebView preferences
Sometimes OAuthMain extenders might need to change the webview
preferences, this adds a webViewPreferences property that can
be filled with values for overriding defaults
FAILED: Continuous integration, rev:238 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- online- accounts- ci/197/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 1380/console jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- online- accounts- vivid-amd64- ci/19 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- online- accounts- vivid-i386- ci/17 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1218/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1378 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1378/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 18094
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- system- settings- online- accounts- ci/197/ rebuild
http://