Merge lp:~abreu-alexandre/webbrowser-app/fix-url-updates-for-manifest-webapps into lp:webbrowser-app

Proposed by Alexandre Abreu
Status: Work in progress
Proposed branch: lp:~abreu-alexandre/webbrowser-app/fix-url-updates-for-manifest-webapps
Merge into: lp:webbrowser-app
Diff against target: 18 lines (+7/-1)
1 file modified
src/app/webcontainer/WebViewImplOxide.qml (+7/-1)
To merge this branch: bzr merge lp:~abreu-alexandre/webbrowser-app/fix-url-updates-for-manifest-webapps
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Olivier Tilloy Needs Fixing
Review via email: mp+276413@code.launchpad.net

Commit message

Fix URL update for webapps that are based on local manifest.json files. The update is done no matter what overriding any other potential url currently being browsed to.

Description of the change

Fix URL update for webapps that are based on local manifest.json files. The update is done no matter what overriding any other potential url currently being browsed to.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

This change breaks 3 existing autopilot tests.

review: Needs Fixing
1263. By Alexandre Abreu

updated

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

updated

Revision history for this message
Olivier Tilloy (osomon) wrote :

I’m not familiar with this code, and I’m not sure how to verify that it actually fixes the bug, but at least the autopilot tests all pass on my desktop.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

I updated the TEstPlan to account for those uri-handler tests:

https://wiki.ubuntu.com/Process/Merges/TestPlan/webapp-container

I will update the MR though with tests for that since the matrix of tests is not getting simpler to cover all the cases, it'll be better if automated

Unmerged revisions

1263. By Alexandre Abreu

updated

1262. By Alexandre Abreu

Fix url updates

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/webcontainer/WebViewImplOxide.qml'
2--- src/app/webcontainer/WebViewImplOxide.qml 2015-08-20 10:42:09 +0000
3+++ src/app/webcontainer/WebViewImplOxide.qml 2015-11-09 20:42:31 +0000
4@@ -240,7 +240,13 @@
5 }
6 }
7 };
8- return UnityWebAppsUtils.makeProxiesForWebViewBindee(webview, eventHandlers)
9+ var proxies = UnityWebAppsUtils.makeProxiesForWebViewBindee(webview, eventHandlers)
10+ proxies.navigateTo = function(url) {
11+ if (url.length !== 0 && (!webview.url || webview.url.toString().length === 0)) {
12+ webview.url = url;
13+ }
14+ }
15+ return proxies
16 }
17
18 onGeolocationPermissionRequested: {

Subscribers

People subscribed via source and target branches

to status/vote changes: