Skip to content

Commit 0e1e456

Browse files
committed
fix
1 parent 02240d6 commit 0e1e456

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/platform/linux.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,16 @@ impl LinuxUiBackend {
353353
None
354354
};
355355

356-
let range = self.get_range_info(bname, opath).await;
356+
// Only query Value interface for element types that actually use ranges.
357+
// Chrome advertises Value on elements that don't implement it, causing
358+
// noisy ATK assertion spam: "impl_get_CurrentValue: assertion 'ATK_IS_VALUE'"
359+
let range = match element_type {
360+
ElementType::Slider
361+
| ElementType::SpinButton
362+
| ElementType::ProgressBar
363+
| ElementType::ScrollBar => self.get_range_info(bname, opath).await,
364+
_ => None,
365+
};
357366
let actions = self
358367
.collect_actions(bname, opath, &element_type, is_keyboard_focusable)
359368
.await;

0 commit comments

Comments
 (0)