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

Restrict API access to Context #3

Open
lucidd opened this issue Jun 17, 2015 · 0 comments
Open

Restrict API access to Context #3

lucidd opened this issue Jun 17, 2015 · 0 comments

Comments

@lucidd
Copy link
Owner

lucidd commented Jun 17, 2015

The problem is that some APIs are exclusive to Apps or Extensions or ChromeOS. Currently you can access all APIs all the time and they will simply fail at runtime.
Some functions behave differently depending on the context and return different types like for example chrome.runtime.Runtime.getManifest which should return an AppManifest in an app context and a ExtensionManifest in an extension context.
This could probably achieved by using implicits but this has to be tested and compared to possible other solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant