Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cb638e335cee94194ed63ef497f1917166ee275c
      
https://github.com/WebKit/WebKit/commit/cb638e335cee94194ed63ef497f1917166ee275c
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    A 
LayoutTests/accessibility/gtk/text-attribute-run-offsets-for-inline-elements-expected.txt
    A 
LayoutTests/accessibility/gtk/text-attribute-run-offsets-for-inline-elements.html
    M Source/WebCore/accessibility/atspi/AccessibilityObjectTextAtspi.cpp

  Log Message:
  -----------
  Reliable crash triggered by 
WebCore::AccessibilityObjectAtspi::textAttributesWithUTF88888888Offset
https://bugs.webkit.org/show_bug.cgi?id=317078

Reviewed by Carlos Garcia Campos.

textAttributes() maps an offset to a node via visiblePositionForIndex(), whose
canonical position can resolve outside the object for inline content not at the
start of its container; the run-boundary walk then returns out-of-range offsets,
crashing (CrashOnOverflow) when the text is a single object replacement 
character.
Keep the resolved node inside the object by falling back to the downstream 
position.

* 
LayoutTests/accessibility/gtk/text-attribute-run-offsets-for-inline-elements-expected.txt:
 Added.
* 
LayoutTests/accessibility/gtk/text-attribute-run-offsets-for-inline-elements.html:
 Added.
* Source/WebCore/accessibility/atspi/AccessibilityObjectTextAtspi.cpp:
(WebCore::AccessibilityObjectAtspi::textAttributes const):

Canonical link: https://commits.webkit.org/315208@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to