From 5390a29859df2d7ce7a19247494b5074190f5be5 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 3 May 2017 23:05:05 +0100 Subject: [PATCH] tabletwebview-url-fix --- interface/resources/qml/controls/TabletWebView.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/resources/qml/controls/TabletWebView.qml b/interface/resources/qml/controls/TabletWebView.qml index 04e784e2ba..05cf307cfb 100644 --- a/interface/resources/qml/controls/TabletWebView.qml +++ b/interface/resources/qml/controls/TabletWebView.qml @@ -16,7 +16,6 @@ Item { property var parentStackItem: null property int headerHeight: 70 property string url - property alias address: displayUrl.text //for compatibility property string scriptURL property alias eventBridge: eventBridgeWrapper.eventBridge property bool keyboardEnabled: HMD.active @@ -82,6 +81,7 @@ Item { color: hifi.colors.baseGray font.pixelSize: 12 verticalAlignment: Text.AlignLeft + text: webview.url anchors { top: nav.bottom horizontalCenter: parent.horizontalCenter; @@ -159,7 +159,6 @@ Item { function loadUrl(url) { webview.url = url web.url = webview.url; - web.address = webview.url; } function onInitialPage(url) { @@ -253,7 +252,6 @@ Item { }); webview.profile.httpUserAgent = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36"; - web.address = url; } onFeaturePermissionRequested: { @@ -279,7 +277,6 @@ Item { } if (WebEngineView.LoadSucceededStatus == loadRequest.status) { - web.address = webview.url; if (startingUp) { web.initialPage = webview.url; startingUp = false; @@ -307,7 +304,6 @@ Item { Component.onCompleted: { web.isDesktop = (typeof desktop !== "undefined"); - address = url; } Keys.onPressed: {