Skip to content

feat: [extensions] background pages#21591

Merged
nornagon merged 5 commits intomasterfrom
extensions-background-pages
Jan 13, 2020
Merged

feat: [extensions] background pages#21591
nornagon merged 5 commits intomasterfrom
extensions-background-pages

Conversation

@nornagon
Copy link
Copy Markdown
Contributor

@nornagon nornagon commented Dec 20, 2019

Description of Change

This adds support for lazy background pages when building with ENABLE_ELECTRON_EXTENSIONS. One step closer to a functional React DevTools!

NB. no release notes because this feature is still behind the ENABLE_ELECTRON_EXTENSIONS flag, which is not enabled in Electron release builds.

Ref #19447

Checklist

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Dec 20, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Dec 21, 2019
Copy link
Copy Markdown
Member

@samuelmaddock samuelmaddock left a comment

Choose a reason for hiding this comment

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

Left a few comments. It looks surprisingly straightforward to add background page support after reading through the code, nice!

: api_client_(new extensions::ExtensionsAPIClient),
// : api_client_(new extensions::AtomExtensionsAPIClient),
: api_client_(new extensions::ElectronExtensionsAPIClient),
process_manager_delegate_(new extensions::ElectronProcessManagerDelegate),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Random thought while reading this code. It might be cool if the extensions system could be configured at startup from the JS runtime. That way only projects interested in using extensions could opt-in to initializing all of these subsystems.

Copy link
Copy Markdown
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.

Looks good to me.

Copy link
Copy Markdown
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

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

Looking good 👍

@nornagon nornagon merged commit 8bc0c92 into master Jan 13, 2020
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Jan 13, 2020

No Release Notes

@nornagon nornagon deleted the extensions-background-pages branch January 13, 2020 22:56
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