Branch: refs/heads/webkitglib/2.52
  Home:   https://github.com/WebKit/WebKit
  Commit: bc22e64695c742626a408df1cad5783fe6437d38
      
https://github.com/WebKit/WebKit/commit/bc22e64695c742626a408df1cad5783fe6437d38
  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:
  -----------
  Cherry-pick 44721@main (cb638e335cee). 
https://bugs.webkit.org/show_bug.cgi?id=317078

    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

Canonical link: https://commits.webkit.org/305877.763@webkitglib/2.52



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

Reply via email to