[listitemlayout] setting RichText format with html image tag leads to crash (segfault)
Bug #1514173 reported by
Andrea Bernabei
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Critical
|
Andrea Bernabei |
Bug Description
ListItemLayout defines a default main slot, which is currently the internal class UCThreeLabelsSlot.
ListItemLayout currently doesn't set the QML context of the UCThsreeLabelsSlot, and UCThreeLabelsSlot doesn't set the QML context of its internal UCLabels.
This leads to a segfault when Qt tries to access the QML context of any of the predefined labels in ListItemLayout.
The following test case triggers the crash:
ListItemLayout {
id: layoutTestQmlCo
title.text: "<html><body><p dir='ltr'>TEST <img align=absmiddle height=\"10\" width=\"10\" src=\"file:
title.
}
Related branches
lp:~faenil/ubuntu-ui-toolkit/listitemlayout_lp1514173
- Zsombor Egri: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 314 lines (+83/-29)10 files modifiedcomponents.api (+1/-0)
examples/ubuntu-ui-toolkit-gallery/ListItemLayouts.qml (+8/-8)
examples/ubuntu-ui-toolkit-gallery/ListItemWithLabel.qml (+1/-1)
src/Ubuntu/Components/plugin/privates/threelabelsslot_p.cpp (+3/-3)
src/Ubuntu/Components/plugin/uclistitemlayout.cpp (+20/-11)
src/Ubuntu/Components/plugin/uclistitemlayout.h (+2/-1)
src/Ubuntu/Components/plugin/ucslotslayout.cpp (+10/-2)
src/Ubuntu/Components/plugin/ucslotslayout.h (+3/-2)
src/Ubuntu/Test/UbuntuTestCase.qml (+5/-0)
tests/unit_x11/tst_components/tst_slotslayout.qml (+30/-1)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Andrea Bernabei (faenil) |
status: | New → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Critical |
tags: | added: regression-proposed |
tags: | removed: regression-proposed |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM) |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Tentatively for OTA-8 if possible.