feat: Tool to automatically collect API information from Chrome #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tool automatically generates metadata from Chrome's runtime, by walking the API namespace, calling the methods with invalid parameters and catching the error. The error message includes a useful method signature.
This PR contains two test extensions, because the
page_action
andbrowser_action
manifest keys are mutually exclusive. I have added a Node.js server to collect and merge the results from separate runs.The permissions to unlock the APIs are based on:
I double-checked with:
Alternatives that I have considered and rejected: