[webkit-changes] [WebKit/WebKit] 0061ee: Fix WebContentProcess crashes after 284006 at main

Rupin Mittal noreply at github.com
Fri Sep 20 17:14:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0061ee04041ab917a1e1ba865a76a8ad1cd86751
      https://github.com/WebKit/WebKit/commit/0061ee04041ab917a1e1ba865a76a8ad1cd86751
  Author: Rupin Mittal <rupin at apple.com>
  Date:   2024-09-20 (Fri, 20 Sep 2024)

  Changed paths:
    M Source/WebKit/UIProcess/WebContextSupplement.h
    M Source/WebKit/UIProcess/WebGeolocationManagerProxy.cpp

  Log Message:
  -----------
  Fix WebContentProcess crashes after 284006 at main
https://bugs.webkit.org/show_bug.cgi?id=280095
rdar://136391408

Reviewed by Geoffrey Garen.

Based on an issue found by the smart pointer static analyzer, to ensure
that the WebProcessPool is alive while making a call to addMessageReceiver()
in the WebGeolocationManagerProxy constructor, 284006 at main added a
protectedProcessPool() function.

The problem is that we are ref'ing the C++ wrapper of the Objective-C process
pool while it's being constructed (The process pool's constructor is what
calls the constructor of WebGeolocationManagerProxy). This causes
WebContentProcess crashes, so we're undoing this change for now until we can
figure out a better way to make this code pointer safe.

* Source/WebKit/UIProcess/WebContextSupplement.h:
(WebKit::WebContextSupplement::protectedProcessPool): Deleted.
* Source/WebKit/UIProcess/WebGeolocationManagerProxy.cpp:
(WebKit::WebGeolocationManagerProxy::WebGeolocationManagerProxy):

Canonical link: https://commits.webkit.org/284023@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