Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fc03b8e1ac8ca9e9ebcd02517c1317d810ea6bc9
      
https://github.com/WebKit/WebKit/commit/fc03b8e1ac8ca9e9ebcd02517c1317d810ea6bc9
  Author: David Kilzer <[email protected]>
  Date:   2026-01-11 (Sun, 11 Jan 2026)

  Changed paths:
    M Source/WTF/wtf/text/StringView.h
    M Source/WebKit/WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm
    M Source/WebKitLegacy/mac/WebView/WebTextIterator.mm

  Log Message:
  -----------
  [WebKit] Fix -Wreturn-stack-address in -currentTextPointer
<https://bugs.webkit.org/show_bug.cgi?id=305247>
<rdar://167885469>

Reviewed by Geoffrey Garen.

No new tests since no change in behavior.

* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::unsafeSpan16): Add.
- Add version of span16() without lifetimebound attribute.
* Source/WebKit/WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm:
(-[WKDOMTextIterator currentTextPointer]):
- Use unsafeSpan16() to avoid lifetimebound warning.
* Source/WebKitLegacy/mac/WebView/WebTextIterator.mm:
(-[WebTextIterator currentTextPointer]):
- Ditto.

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



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

Reply via email to