Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a4228a6eb4ff8259274d9555f076885035670f67
      
https://github.com/WebKit/WebKit/commit/a4228a6eb4ff8259274d9555f076885035670f67
  Author: Kiet Ho <[email protected]>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M Source/WebCore/page/ResizeObservation.cpp

  Log Message:
  -----------
  [resize-observer] m_target could be null in 
ResizeObservation::computeObservedSizes
rdar://179427046
https://bugs.webkit.org/show_bug.cgi?id=317698

Reviewed by Simon Fraser.

Crash reports indicate that when ResizeObservation::computeObservedSizes is 
called,
it's possible for m_target to be nullptr, indicating the Element was destroyed
before the method is called. So far I've not been able to reproduce this nor
figure out a plausible explanation, so this patch speculatively fixes it by
adding a null check, plus turning the WeakPtr into RefPtr before using it.

* Source/WebCore/page/ResizeObservation.cpp:
(WebCore::ResizeObservation::computeObservedSizes const):
(WebCore::ResizeObservation::computeTargetLocation const):

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



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

Reply via email to