sw/qa/uitest/navigator/tdf137274.py |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 00286e56d17090ffdf0abd76ba3c236126f8c116
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sat Oct 21 08:05:46 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sat Oct 21 08:54:59 2023 +0200

    tdf#153519 Another TreeListEntryUIObject heap-use-after-free
    
    ...similar to the one addressed with the commits leading up to
    9a23ded27470a4c57015e9e5d686259a60d464f2 "Fix thinko when to sleep"
    
    Change-Id: Iecf0146c4c079ae95f980128531ac8f51b4b8535
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158302
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/qa/uitest/navigator/tdf137274.py 
b/sw/qa/uitest/navigator/tdf137274.py
index 5273ddcb2f91..9bd780a7e5c2 100644
--- a/sw/qa/uitest/navigator/tdf137274.py
+++ b/sw/qa/uitest/navigator/tdf137274.py
@@ -42,6 +42,15 @@ class tdf137274(UITestCase):
             # wait until the navigator panel is available
             xNavigatorPanel = 
self.ui_test.wait_until_child_is_available('NavigatorPanel')
 
+            # HACK, see the `m_aUpdTimer.SetTimeout(1000)` in the 
SwContentTree ctor in
+            # sw/source/uibase/utlui/content.cxx, where that m_aUpdTimer is 
started by
+            # SwContentTree::ShowTree triggered from the SIDEBAR action above, 
and which can
+            # invalidate the TreeListEntryUIObjects used by the below code (see
+            # 2798430c8a711861fdcdfbf9ac00a0527abd3bfc "Mark the uses of 
TreeListEntryUIObject as
+            # dubious"); lets double that 1000 ms timeout value here to 
hopefully be on the safe
+            # side:
+            time.sleep(2)
+
             xContentTree = xNavigatorPanel.getChild("contenttree")
             xComments = self.get_item(xContentTree, 'Comments')
             self.assertEqual('Comments', get_state_as_dict(xComments)['Text'])

Reply via email to