Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 83eb46abacae268a355a32f5039c7593028589b1
      
https://github.com/WebKit/WebKit/commit/83eb46abacae268a355a32f5039c7593028589b1
  Author: Qianlang Chen <[email protected]>
  Date:   2025-12-19 (Fri, 19 Dec 2025)

  Changed paths:
    M Source/WebCore/loader/ResourceLoadNotifier.cpp

  Log Message:
  -----------
  Web Inspector: Prevent the frame from handling didFailLoading when already 
detached
rdar://164461773
https://bugs.webkit.org/show_bug.cgi?id=304421

Reviewed by BJ Burg.

As this didFailLoading event may occur during a frame's destruction,
follow existing patterns in e.g. EventHandler to avoid handling in a
partially-destroyed frame detached from the page.

No new tests. I couldn't develop a test case to repro a crash. Existing
tests should help cover frame unloading with inspector open.

* Source/WebCore/loader/ResourceLoadNotifier.cpp:
(WebCore::ResourceLoadNotifier::didFailToLoad):

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



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

Reply via email to