-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support preload scripts per user context #862
Conversation
1f64732
to
5b3ea11
Compare
5b3ea11
to
712afd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great, some nits and minor issues to fix.
Co-authored-by: Julian Descottes <jdescottes@mozilla.com>
Co-authored-by: Julian Descottes <jdescottes@mozilla.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my end, thanks for the update!
5ea2f50
to
f8311a9
Compare
1. Set |user contexts| to [=set/create|create a set=] with |command parameters|["<code>userContexts</code>"]. | ||
|
||
1. For each |user context id| of |user contexts|: | ||
|
||
1. Set |user context| to [=get user context=] with |user context id|. | ||
|
||
1. If |user context| is null, return [=error=] with [=error code=] [=no such user context=]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe iterate through the |command parameters|["<code>userContexts</code>"]
, assert valid values and append them to existing map |user contexts|
to increase readability and align with contexts
logic one step above?
Closes #849
Preview | Diff