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
Add @grant metadata #1425
Milestone
Comments
The implication that an explicit I could see surfacing |
arantius
pushed a commit
to arantius/greasemonkey
that referenced
this issue
May 22, 2012
arantius
pushed a commit
to arantius/greasemonkey
that referenced
this issue
May 22, 2012
arantius
pushed a commit
to arantius/greasemonkey
that referenced
this issue
May 22, 2012
This seems to be working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There should be a metadata imperative like
@grant
that would grant access to special APIs.A value of
@grant none
would mean that the script has no special API access, and will instead execute within the content scope.Any other value provided to
@grant
would run the script in legacy (sandbox / wrappers) mode, with only the named APIs provided. This imperative can be repeated as many times as necessary to request access to all necessary functions.If a script has no
@grant
at all, at install time, it and its@require
s will be scanned for implied APIs. The appropriate@grant
s to provide the discovered APIs will be implicitly provided.The text was updated successfully, but these errors were encountered: