[webkit-changes] [WebKit/WebKit] 350492: REGRESSION(274288 at main): Null pointer dereference ...

Charlie Wolfe noreply at github.com
Mon Feb 19 21:19:34 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 35049289029387d9023e9f2a17986bf21629e857
      https://github.com/WebKit/WebKit/commit/35049289029387d9023e9f2a17986bf21629e857
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2024-02-19 (Mon, 19 Feb 2024)

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

  Log Message:
  -----------
  REGRESSION(274288 at main): Null pointer dereference in `WebPageProxy::activityStateDidChange()`
https://bugs.webkit.org/show_bug.cgi?id=269754
rdar://123032571

Reviewed by Chris Dumez.

`m_pageClient` is protected in `decidePolicyForNavigationAction()`, but not passed to the created
lambdas. When `Transaction` is destructed, `activityStateDidChange()` tries to create a strong reference
to `m_pageClient`, but it may already be destroyed. We should pass `protectedPageClient` into the
lambdas where `Transaction` is used.

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

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



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


More information about the webkit-changes mailing list