~abreu-alexandre/webbrowser-app/fix-url-updates-for-manifest-webapps

« back to all changes in this revision

Viewing changes to src/app/webcontainer/WebViewImplOxide.qml

  • Committer: Alexandre Abreu
  • Date: 2015-11-09 20:42:09 UTC
  • Revision ID: alexandre.abreu@canonical.com-20151109204209-dh03ipu2uui329fb
updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        };
243
243
        var proxies = UnityWebAppsUtils.makeProxiesForWebViewBindee(webview, eventHandlers)
244
244
        proxies.navigateTo = function(url) {
245
 
            if (url.length !== 0 && webview.url.length === 0) {
 
245
            if (url.length !== 0 && (!webview.url || webview.url.toString().length === 0)) {
246
246
                webview.url = url;
247
247
            }
248
248
        }