Skip to content

fix: disable private macOS APIs in MAS build except for CAContext/CALayerHost (7-1-x) - #21575

Merged
MarshallOfSound merged 3 commits into
7-1-xfrom
mas-patch-apart-from-calayerhost-7-1-x
Jan 13, 2020
Merged

MarshallOfSound merged 3 commits into
7-1-xfrom
mas-patch-apart-from-calayerhost-7-1-x

Conversation

@zcbenz

@zcbenz zcbenz commented Dec 19, 2019

Copy link
Copy Markdown
Contributor

Description of Change

Refs #20027.

This PR is split from #20967 to only include patches that are safe to merge.

Release Notes

Notes: no-notes

@zcbenz
zcbenz requested a review from a team as a code owner December 19, 2019 03:44
@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Dec 19, 2019
@MarshallOfSound
MarshallOfSound merged commit 4dac36d into 7-1-x Jan 13, 2020
@release-clerk

release-clerk Bot commented Jan 13, 2020

Copy link
Copy Markdown

No Release Notes

@jkleinsc
jkleinsc deleted the mas-patch-apart-from-calayerhost-7-1-x branch January 13, 2020 17:09
@ymmuse

ymmuse commented Jan 20, 2020 •

Copy link
Copy Markdown
Contributor

Hi @MarshallOfSound @jkleinsc, The newest 7-1-x mas version still has some private APIs in use.
There is missing a patch file look at this 4fcc2b0

@ghost

ghost commented Jan 24, 2020

Copy link
Copy Markdown

@zcbenz
will CAContext & CALayerHost apis be removed or anything has been decided regarding these apis ?
just checking as apps using 7.x.x depend on this decision.

@zcbenz

zcbenz commented Jan 27, 2020

Copy link
Copy Markdown
Contributor Author

@soundar78 Removing those APIs would have significant affects on app's battery performance and we are still seeking from Apple to provide an alternative solution or unblock those APIs. So currently CAContext/CALayerHost are still being included in 7.x and use it for your app may result in getting rejected by Apple.

@jarek-foksa

jarek-foksa commented Feb 9, 2020 •

Copy link
Copy Markdown

As of February 9th Apple is still rejecting Electron >= 7 apps because of the usage of CAContext and CALayerHost.

Wouldn't it make more sense to remove those APIs now (just like it was done in Electron 5.x and 6.x) and bring them back when a better solution is provided by Apple? It doesn't look like they are willing to do anything about it anytime soon. A version with poor battery performance is always better than a version that can't be used at all.

Besides, battery performance is not that important for desktop apps, so far none of my existing users have complained about it (I'm using a patched Electron 5.x MAS version). However, I have received several complains about the broken print dialog that can fixed without updating to Electron 7.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants