Merge lp:~mardy/webbrowser-app/no-content-hub into lp:webbrowser-app

Proposed by Alberto Mardegan
Status: Needs review
Proposed branch: lp:~mardy/webbrowser-app/no-content-hub
Merge into: lp:webbrowser-app
Diff against target: 25 lines (+3/-1)
2 files modified
src/app/Downloader.qml (+1/-0)
src/app/WebViewImpl.qml (+2/-1)
To merge this branch: bzr merge lp:~mardy/webbrowser-app/no-content-hub
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+322092@code.launchpad.net

Commit message

Don't use the ContentHub-based downloader if the service is not available

This change makes use of the "valid" property added to the ContentHub singleton in
https://code.launchpad.net/~mardy/content-hub/valid-1676893/+merge/322091

Description of the change

Don't use the ContentHub-based downloader if the service is not available

This change makes use of the "valid" property added to the ContentHub singleton in
https://code.launchpad.net/~mardy/content-hub/valid-1676893/+merge/322091

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

PASSED: Continuous integration, rev:1587
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/5/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/2472
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2472
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2283/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2283/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2283/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2283/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2283/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2283
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2283/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-webbrowser-app-ci/5/rebuild

review: Approve (continuous-integration)

Unmerged revisions

1587. By Alberto Mardegan

Don't use ContentHub APIs if service unavailable

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/Downloader.qml'
2--- src/app/Downloader.qml 2016-09-22 15:12:01 +0000
3+++ src/app/Downloader.qml 2017-04-06 08:42:59 +0000
4@@ -29,6 +29,7 @@
5
6 property string filename
7 property string mimeType
8+ property bool valid: ContentHub.valid
9
10 signal showDownloadDialog(string downloadId, var contentType, var downloader, string filename, string mimeType)
11
12
13=== modified file 'src/app/WebViewImpl.qml'
14--- src/app/WebViewImpl.qml 2016-09-22 15:12:01 +0000
15+++ src/app/WebViewImpl.qml 2017-04-06 08:42:59 +0000
16@@ -53,7 +53,8 @@
17 return
18 }
19
20- if (downloadLoader.status == Loader.Ready) {
21+ if (downloadLoader.status == Loader.Ready &&
22+ downloadLoader.item.valid) {
23 var headers = { }
24 if (request.cookies.length > 0) {
25 headers["Cookie"] = request.cookies.join(";")

Subscribers

People subscribed via source and target branches

to status/vote changes: