[webkit-changes] [WebKit/WebKit] b85d78: Add a null check for the current process' name whe...

Ryan Reno noreply at github.com
Tue May 16 15:50:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b85d783df356a1bf6e88e5484e666c133efb23bd
      https://github.com/WebKit/WebKit/commit/b85d783df356a1bf6e88e5484e666c133efb23bd
  Author: Ryan Reno <rreno at apple.com>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm

  Log Message:
  -----------
  Add a null check for the current process' name when launching a new process on macOS
https://bugs.webkit.org/show_bug.cgi?id=256853
rdar://109210266

Reviewed by Chris Dumez.

-[NSRunningApplication localizedName] is nullable. This adds a null
check and falls back to the -[NSProcessInfo processName] if it is null
on macOS.

* Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm:
(WebKit::ProcessLauncher::launchProcess):

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




More information about the webkit-changes mailing list