prevent from running endless loop 54/233954/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.104853 accepted/tizen/6.0/unified/hotfix/20201102.235644 accepted/tizen/unified/20200608.214804 submit/tizen/20200608.010949 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 20 May 2020 15:10:13 +0000 (17:10 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 20 May 2020 15:19:04 +0000 (17:19 +0200)
Change-Id: I76a6115451adfd0d0a57215d57c6875e7531ee8e

atk-adaptor/adaptors/accessible-adaptor.c

index 889e300..e17ab03 100644 (file)
@@ -247,6 +247,13 @@ static void *_calculate_navigable_accessible_at_point_impl(accessibility_navigat
        // always return proxy, so atspi lib can call on it again
        if (CALL(object_is_proxy, target)) return target;
 
+       if (root == target) {
+           // browser likes small cycles in trees
+           // lets decline this party
+           return_value = target;
+           break;
+       }
+
        root = target;
        void *relation_obj = CALL(get_object_in_relation_by_type, root, ATSPI_RELATION_CONTROLLED_BY);
        unsigned char contains = 0;