-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
chrome-extension.js is a big, but ugly, file that holds big parts of logic. If we want to make the lib more easy to work on, we should refactor this file.
chrome-extension.js expose 2 public APIs:
addExtension(extensionId, srcDirectory)removeExtension(extensionId)
addExtension is responsible for:
- reading and interpreting
manifest.json - starting background pages
- instantiating API handlers via (fairly recent)
ChromeAPIHandlerforstorage,webRequest,windows - defining some API handlers (legacy, to be moved to
ChromeAPIHandler) forruntime,tabs,web navigation(others ?) - doing content scrips injection
- doing content-security injection (?): seems very hacky
- load devtools extension:
hacky, needs to be done via support ofchrome.devtoolsAPIs - (outside
chrome-extension.js): servechrome-extension://*inengine/protocol
These responsibilities could be split into several modules.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels