[tabs] WebView as a Tab child does not work reliably and sometimes crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Raring |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I tried to use WebView in Tabs, but it does not work as expected.
The example below starts nicely with qmlscene. Flicking between tab 1 and tab 2 is also fine. If I flick to tab 3 and back to tab 1, the WebView has empty page. Usally qmlscene crashes after a while.
import QtQuick 2.0
import QtWebKit 3.0
import Ubuntu.Components 0.1
MainView {
id: mainView
width: units.gu(45)
height: units.gu(80)
Tabs {
id: tabs
Tab {
title: "tab 1"
page: WebView {
id: webView
}
}
}
Tab {
title: "tab 2"
page: Text {
}
}
Tab {
title: "tab 3"
page: Text {
}
}
Tab {
title: "tab 4"
page: Text {
}
}
}
}
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 483 lines (+236/-83)6 files modifiedmodules/Ubuntu/Components/Tab.qml (+2/-0)
modules/Ubuntu/Components/Tabs.qml (+50/-11)
tests/resources/tabs/MyCustomPage.qml (+50/-0)
tests/resources/tabs/Tabs.qml (+99/-0)
themes/Ambiance/qmltheme/NewTabBar.qml (+30/-19)
themes/Ambiance/qmltheme/NewTabsDelegate.qml (+5/-53)
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Undecided → High |
summary: |
- WebView as a Tab child does not work + [tabs] WebView as a Tab child does not work |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Critical |
summary: |
- [tabs] WebView as a Tab child does not work + [tabs] WebView as a Tab child does not work reliably and sometimes + crashes |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
I've found WebView to be very sensitive to sizing in general. In the attached case, the WebView only shows up if width and height are given explicitly - anchors are not available in a Row.