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
chore(extensions): remove unused features json #25660
chore(extensions): remove unused features json #25660
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
Was this a random find, or did you do something that led you to this? I'm wondering now if we include other unused pieces...
I had been looking into how script contexts are classified by the extensions system. Different classifications cause different APIs to be injected/supported. In this case, I was comparing which extension permissions are supported in Electron vs Chrome. Fwiw, I checked the other |
CI failure looks like a legit crash caused by this PR:
|
A few of the features we include were copied from Chrome's feature json files. As such, they included a support for contexts unsupported by Electron such as platform apps, hosted apps, and login screens (ChromeOS). Simply put, this will generate extra code not relevant to Electron.
d6afe54
to
5d030ad
Compare
@ckerr to elaborate further on unused APIs, the extensions system includes its own core collection of them which we use via
This comes with a lot of API features via _api_features.json which we're not making full use of yet. My hope is to one day change that by possibly allowing a script context type to be configurable in Electron. |
@codebytere thanks, it should be good now. the mac build may need a restart |
No Release Notes |
Description of Change
A few of the extension features we include were copied from Chrome's feature json files. As such, they included support for contexts unsupported by Electron such as platform apps, hosted apps, and login screens (ChromeOS).
ref #19447
Checklist
npm test
passesRelease Notes
Notes: none