nmggithub

#49654: refactor: don't log error just for unsigned code

Merged
Created: Feb 3, 2026, 8:25:48 PM
Merged: Feb 4, 2026, 10:26:17 PM
4 comments
Target: main

Description of Change

Should resolve #49652.

We don't really need to log an error when the code we're checking in ProcessSignatureIsSameWithCurrentApp is unsigned. It's not a system failure, we can just conclude that the signatures don't match (since we already return early if we ourselves aren't signed, the only way to reach that line of code is if we're signed; and no unsigned process (the thing were checking) has any way of matching the signature of our signed code).

Checklist

  • PR description included
  • I have built and tested this PR (it compiles and builds, but I don't have an Intel Mac with which to reproduce the original issue (though the code should be self-explanatory)).
  • PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.

Release Notes

Notes: none

Backports

39-x-y
Merged
PR Number
#49675
Merged At
Feb 6, 2026, 2:28:19 PM
Released In
v39.5.2
Release Date
Feb 10, 2026, 8:03:57 AM
40-x-y
Merged
PR Number
#49677
Merged At
Feb 5, 2026, 1:01:09 PM
Released In
v40.2.1
Release Date
Feb 5, 2026, 3:44:54 PM
41-x-y
Merged
PR Number
#49676
Merged At
Feb 5, 2026, 10:13:14 AM
Released In
v41.0.0-alpha.6
Release Date
Feb 9, 2026, 5:31:39 AM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron