Branch: refs/heads/webkitglib/2.50
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f7d16ad5fe887d2e98f0a4d799f687ef7d0978d
      
https://github.com/WebKit/WebKit/commit/6f7d16ad5fe887d2e98f0a4d799f687ef7d0978d
  Author: Antti Koivisto <[email protected]>
  Date:   2026-02-19 (Thu, 19 Feb 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderObject.h
    M Source/WebCore/rendering/RenderObjectInlines.h

  Log Message:
  -----------
  Cherry-pick 307833@main (0ce1f258ce6e). 
https://bugs.webkit.org/show_bug.cgi?id=308214

    Nullptr crash accessing settings when tearing down render tree
    https://bugs.webkit.org/show_bug.cgi?id=308214
    rdar://117839253

    Reviewed by Alan Baradlay.

    There is crash when tearing down a page cache entry where we access 
RenderObject::settings() from
    RenderTreeBuilder::Inline::Inline() and hit a null WeakPtr accessing 
frame/page.

    It is not clear how this happens so the fix is speculative.

    * Source/WebCore/rendering/RenderObject.h:

    Also make it const accessor.

    * Source/WebCore/rendering/RenderObjectDocument.h:
    (WebCore::RenderObject::settings const):

    Fix by getting Settings via document.settings() which won't be null even if 
the document is disconnected from the frame.
    This is a faster more direct way to do it anyway.

    * Source/WebCore/rendering/RenderObjectInlines.h:
    (WebCore::RenderObject::settings const): Deleted.

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

Canonical link: https://commits.webkit.org/298234.431@webkitglib/2.50



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

Reply via email to