Merge lp:~abreu-alexandre/webbrowser-app/fix-url-opening into lp:webbrowser-app

Proposed by Alexandre Abreu
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 718
Merged at revision: 726
Proposed branch: lp:~abreu-alexandre/webbrowser-app/fix-url-opening
Merge into: lp:webbrowser-app
Diff against target: 23 lines (+2/-4)
1 file modified
src/app/webcontainer/webapp-container.qml (+2/-4)
To merge this branch: bzr merge lp:~abreu-alexandre/webbrowser-app/fix-url-opening
Reviewer Review Type Date Requested Status
Olivier Tilloy Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+235533@code.launchpad.net

Commit message

Fix UriHandler url opening operation for the webapp container.

Description of the change

Fix UriHandler url opening operation.

Test to validate the issue:
---------------------------

- open a webapp (e.g. facebook) and stay on the main page and leave it open,
- create small qml app that would basically trigger the whole url dispatcher loop w/ a call to e.g.

Qt.openUrlExternally("https://www.facebook.com/<your-homepage>")

- launch the app, trigger the url dispatch w/ the custom url,
- the facebook webapp should pick it up and browse to the url,

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:718
http://jenkins.qa.ubuntu.com/job/webbrowser-app-ci/1098/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/5074/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/3704
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-amd64-ci/297
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-armhf-ci/297
        deb: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-armhf-ci/297/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/webbrowser-app-utopic-i386-ci/297
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/4822/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/6326
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/6326/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/13565
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/3097
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4015
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/4015/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/webbrowser-app-ci/1098/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks good, and fixes the bug indeed.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/webcontainer/webapp-container.qml'
2--- src/app/webcontainer/webapp-container.qml 2014-08-27 13:21:34 +0000
3+++ src/app/webcontainer/webapp-container.qml 2014-09-22 21:00:28 +0000
4@@ -203,9 +203,7 @@
5 target: UriHandler
6 onOpened: {
7 // only consider the first one (if multiple)
8- if (uris.length === 0 ||
9- !webappPageComponentLoader.item ||
10- !webappPageComponentLoader.item.currentWebview) {
11+ if (uris.length === 0 || !browser.currentWebview) {
12 return;
13 }
14 var requestedUrl = uris[0].toString();
15@@ -214,7 +212,7 @@
16 && requestedUrl.indexOf(popupRedirectionUrlPrefix) === 0) {
17 return;
18 }
19- webappPageComponentLoader.item.currentWebview.url = requestedUrl;
20+ browser.currentWebview.url = requestedUrl;
21 }
22 }
23 }

Subscribers

People subscribed via source and target branches

to status/vote changes: