Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: guard more private API usage on MAS builds #37309

Merged
merged 1 commit into from
Feb 21, 2023
Merged

fix: guard more private API usage on MAS builds #37309

merged 1 commit into from
Feb 21, 2023

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Feb 16, 2023

Description of Change

Closes #37292.
Refs CL:4079319

Guards more usage of private APIs (see here) on Mac App Store builds causing rejections.

Checklist

Release Notes

Notes: Fixed potential private API usage for MAS builds on macOS.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. labels Feb 16, 2023
@codebytere codebytere marked this pull request as ready for review February 16, 2023 17:01
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 16, 2023
@codebytere codebytere requested a review from a team as a code owner February 16, 2023 17:01
Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

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

Thanks! 🙇‍♀️

@VerteDinde
Copy link
Member

We may also have to filter out kSBXProfilePureComputation , seeing this error on the Mac builds for tests: https://app.circleci.com/pipelines/github/electron/electron/63888/workflows/5d35c0ed-3734-40fc-8a45-3198b7a50d9e/jobs/1423850?invite=true#step-145-3218

@MarshallOfSound
Copy link
Member

@VerteDinde That just requires us to not guard the <sandbox.h> header include. Referencing that header is fine, but we've guarded it with the IS_MAS_BUILD

Copy link
Contributor

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

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

The unused function error need to be resolved.

../../sandbox/mac/seatbelt.cc:50:6: error: unused function 'HandleSandboxResult' [-Werror,-Wunused-function]
bool HandleSandboxResult(int rv, char* errorbuf, std::string* error) {
     ^
../../sandbox/mac/seatbelt.cc:63:6: error: unused function 'HandleSandboxErrno' [-Werror,-Wunused-function]
bool HandleSandboxErrno(int rv, const char* message, std::string* error) {
     ^

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 17, 2023
@release-clerk
Copy link

release-clerk bot commented Feb 21, 2023

Release Notes Persisted

Fixed potential private API usage for MAS builds on macOS.

@trop
Copy link
Contributor

trop bot commented Feb 21, 2023

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

@trop
Copy link
Contributor

trop bot commented Feb 21, 2023

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

@trop trop bot added in-flight/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. labels Feb 21, 2023
@trop trop bot added merged/24-x-y PR was merged to the "24-x-y" branch merged/23-x-y PR was merged to the "23-x-y" branch. and removed in-flight/24-x-y labels Feb 21, 2023
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
gecko19 pushed a commit to brightsign/electron that referenced this pull request Feb 28, 2023
mifi added a commit to mifi/lossless-cut that referenced this pull request Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/23-x-y PR was merged to the "23-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch semver/patch backwards-compatible bug fixes
Projects
None yet
4 participants