Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9ce8d062590c7106bc64ef0c4b801e06823ceec3
      
https://github.com/WebKit/WebKit/commit/9ce8d062590c7106bc64ef0c4b801e06823ceec3
  Author: Said Abou-Hallawa <[email protected]>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp

  Log Message:
  -----------
  REGRESSION(307380@main): Possible null pointer dereference in 
WebPageProxy::takeSnapshot() when RemoteSnapshotting is enabled
https://bugs.webkit.org/show_bug.cgi?id=316814
rdar://172363560

Reviewed by Abrar Rahman Protyasha.

WKWebView -takeSnapshotWithConfiguration: can be invoked on a WKWebView whose
underlying WebPageProxy does not (yet, or any longer) have a main frame attached
— e.g. shortly after process exit/relaunch, during teardown, or before the first
provisional load installs m_mainFrame.

So having  uninitialized m_mainFrame is an expected case that WebPageProxy has
to deal with safely.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::takeSnapshot):

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



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

Reply via email to