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

feat(extensions): add support for some chrome.management APIs #25098

Merged
merged 13 commits into from Sep 2, 2020

Conversation

sentialx
Copy link
Contributor

@sentialx sentialx commented Aug 23, 2020

Description of Change

This PR implements missing extensions::ManagementAPIDelegate which is being used by chrome.management API and also fixes a crash when an extension is attempting to use the API.
It doesn't implement all of the chrome.management functionalities, as they need to emit relevant events in session or in session.extensions, so that developers could set their own behavior. I will probably do that in another PR.

Could this be backported to 9-x-y?

Checklist

Release Notes

Notes: Added support for some chrome.management APIs.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 23, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 24, 2020
docs/api/extensions.md Outdated Show resolved Hide resolved
@sentialx sentialx changed the title fix(extensions): crash when using chrome.management feat(extensions): add support for some chrome.management APIs Aug 25, 2020
@zcbenz zcbenz merged commit 3745b76 into electron:master Sep 2, 2020
@release-clerk
Copy link

release-clerk bot commented Sep 2, 2020

Release Notes Persisted

Added support for some chrome.management APIs.

@sentialx
Copy link
Contributor Author

sentialx commented Sep 2, 2020

@zcbenz Could it be backported to 9-x-y?

@zcbenz
Copy link
Member

zcbenz commented Sep 3, 2020

/trop run backport

@trop
Copy link
Contributor

trop bot commented Sep 3, 2020

The backport process for this PR has been manually initiated, here we go! :D

@trop
Copy link
Contributor

trop bot commented Sep 3, 2020

I was unable to backport this PR to "10-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/10-x-y label Sep 3, 2020
@trop
Copy link
Contributor

trop bot commented Sep 3, 2020

I was unable to backport this PR to "11-x-y" cleanly;
you will need to perform this backport manually.

@zcbenz
Copy link
Member

zcbenz commented Sep 3, 2020

@sentialx You have to manually backport the PR to 11/10/9 branches, and it would also require approval from @electron/wg-api to get merged.

sentialx added a commit to sentialx/electron that referenced this pull request Sep 6, 2020
…on#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
@trop
Copy link
Contributor

trop bot commented Sep 6, 2020

@sentialx has manually backported this PR to "11-x-y", please check out #25342

sentialx added a commit to sentialx/electron that referenced this pull request Sep 6, 2020
…on#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
@trop
Copy link
Contributor

trop bot commented Sep 6, 2020

@sentialx has manually backported this PR to "9-x-y", please check out #25344

sentialx added a commit to sentialx/electron that referenced this pull request Sep 6, 2020
…on#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
@trop
Copy link
Contributor

trop bot commented Sep 6, 2020

@sentialx has manually backported this PR to "10-x-y", please check out #25345

sentialx added a commit to sentialx/electron that referenced this pull request Sep 6, 2020
…on#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
zcbenz pushed a commit that referenced this pull request Sep 8, 2020
#25342)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
zcbenz pushed a commit that referenced this pull request Sep 8, 2020
#25345)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings
zcbenz pushed a commit that referenced this pull request Sep 8, 2020
* feat(extensions): add support for some chrome.management APIs (#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings

* feat(extensions): add support for some chrome.management APIs (#25098)

* fix: initialize management policy

* fix(extensions): crash when using chrome.management

* test: add tests

* docs: add a note about chrome.management

* fix: lint errors

* fix: lint errors

* fix: remove favicon_service include

* fix: add missing management permission

* docs: more supported apis

* fix: extensions.md line endings

* Update electron_extensions_api_client.cc
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.

None yet

2 participants