Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: MAS rejection for private APIs#49391

Merged
codebytere merged 1 commit intomainfrom
fix-mas-rejection
Jan 18, 2026
Merged

fix: MAS rejection for private APIs#49391
codebytere merged 1 commit intomainfrom
fix-mas-rejection

Conversation

@codebytere
Copy link
Member

@codebytere codebytere commented Jan 14, 2026

Description of Change

Closes #49386

Preprocesses out unguarded private API usages on macOS:

  • _toolbarView
  • _menuImpl
  • _removeFromGroups:
  • _isConsideredOpenForPersistentState
  • _boundsIfOpen
  • _resizeDirectionForMouseLocation:
  • NSAppendToKillRing
  • kCFBundleNumericVersionKey
  • __NSNewKillRingSequence
  • _CGSSetWindowCaptureExcludeShape 🔴 Removed Upstream
  • _CGRegionCreateWithRect 🔴 Removed Upstream
  • _CTFontCopyVariationAxesInternal 🔴 Removed Upstream
  • __NSInitializeKillRing
  • NSYankFromKillRing
  • NSSetKillRingToYankedState

Checklist

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jan 14, 2026
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/38-x-y PR should also be added to the "38-x-y" branch. target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels Jan 14, 2026
@codebytere codebytere force-pushed the fix-mas-rejection branch 2 times, most recently from ec4f1e5 to 49e5332 Compare January 15, 2026 09:10
@codebytere codebytere marked this pull request as ready for review January 15, 2026 11:25
@codebytere codebytere requested a review from a team as a code owner January 15, 2026 11:25
Copy link
Member

@dsanders11 dsanders11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has a patch conflict due to the patch changes on main, but otherwise LGTM.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jan 16, 2026
@codebytere codebytere merged commit faa21a7 into main Jan 18, 2026
104 of 105 checks passed
@codebytere codebytere deleted the fix-mas-rejection branch January 18, 2026 09:34
@release-clerk
Copy link

release-clerk bot commented Jan 18, 2026

No Release Notes

@trop
Copy link
Contributor

trop bot commented Jan 18, 2026

I was unable to backport this PR to "38-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/38-x-y PR should also be added to the "38-x-y" branch. label Jan 18, 2026
@trop
Copy link
Contributor

trop bot commented Jan 18, 2026

I was unable to backport this PR to "39-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/38-x-y needs-manual-bp/39-x-y and removed target/39-x-y PR should also be added to the "39-x-y" branch. labels Jan 18, 2026
@trop
Copy link
Contributor

trop bot commented Jan 18, 2026

I have automatically backported this PR to "40-x-y", please check out #49431

@trop trop bot added in-flight/40-x-y merged/40-x-y PR was merged to the "40-x-y" branch. and removed target/40-x-y PR should also be added to the "40-x-y" branch. in-flight/40-x-y labels Jan 18, 2026
@michalzaq12
Copy link
Contributor

@codebytere Did Electron use these methods? Will removing these private APIs have any consequences?

@DruidEdu
Copy link

@codebytere Hi, thanks for fixing this issue! Could you please let me know in which release this fix will be included, and approximately when that release will be published?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/40-x-y PR was merged to the "40-x-y" branch. needs-manual-bp/38-x-y needs-manual-bp/39-x-y semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MAS Rejection]:Private APIs in Electron Framework (NSAppendToKillRing, _toolbarView, etc.)

4 participants