Files
cef/patch/patches/win_ax_platform_node.patch

16 lines
770 B
Diff

diff --git ui/accessibility/platform/ax_platform_node_win.cc ui/accessibility/platform/ax_platform_node_win.cc
index ff199a7f640fd43391bca752440315dc37d37f5a..88ef3a199d22a49b4760b08162ca3a1ae57f0adf 100644
--- ui/accessibility/platform/ax_platform_node_win.cc
+++ ui/accessibility/platform/ax_platform_node_win.cc
@@ -1662,6 +1662,10 @@ IFACEMETHODIMP AXPlatformNodeWin::accLocation(LONG* physical_pixel_left,
var_id, physical_pixel_left, physical_pixel_top, width, height, target);
AXPlatform::GetInstance().OnMinimalPropertiesUsed();
+ if (!target || target->IsDestroyed()) {
+ return S_FALSE;
+ }
+
gfx::Rect bounds = target->GetDelegate()->GetBoundsRect(
AXCoordinateSystem::kScreenPhysicalPixels,
AXClippingBehavior::kUnclipped);