@@ -16,6 +16,7 @@
1616
1717import QtQuick 2.4
1818import Ubuntu.Components 1.3
19+import Ubuntu.Web 0.2
1920import ".." as LocalComponents
2021
2122LocalComponents.Page {
@@ -62,29 +63,18 @@ LocalComponents.Page {
6263 onLinkActivated: {
6364 webview.url = "http://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
6465 webview.visible = true;
65− webview.active = true;
6666 }
6767 }
6868
69− // FIXME: we use a loader, because we're seeing freezes in unity8 after
70− // wizard shuts down, seemingly due to oxide? So for now, as a hotfix,
71− // we only load the webview when necessary.
72− // Also see Wizard.qml, where we avoid unloading the wizard at all for
73− // similar mitigation reasons while we root-cause the problem.
74− Loader {
69+ WebView {
7570 id: webview
71+ objectName: "webview"
7672 anchors.left: parent.left
7773 anchors.right: parent.right
7874 anchors.leftMargin: -leftMargin
7975 anchors.rightMargin: -rightMargin
8076 height: parent.height
8177 visible: false
82− active: false
83− property string url
84− sourceComponent: LocalComponents.DelayedWebView {
85− objectName: "webview"
86− url: webview.url
87− }
8878 }
8979 }
9080