Set widget.definition and repository properties in its constructor, not earlier.
Merge branch 't/10864' into major