Skip to content

feat: [extensions] background pages - #21591

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

nornagon merged 5 commits into
masterfrom
extensions-background-pages

Conversation

@nornagon

@nornagon nornagon commented Dec 20, 2019 •

Copy link
Copy Markdown
Contributor

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
@nornagon nornagon mentioned this pull request Dec 20, 2019
8 of 11 tasks
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Dec 21, 2019

@samuelmaddock samuelmaddock left a comment

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.

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

Comment thread electron_paks.gni Resolved
: 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.

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

@MarshallOfSound MarshallOfSound left a comment

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.

Looking good 👍

Comment thread electron_paks.gni Resolved
@nornagon
nornagon merged commit 8bc0c92 into master Jan 13, 2020
@release-clerk

release-clerk Bot commented Jan 13, 2020

Copy link
Copy Markdown

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