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

Provide a method to configure JS instrumented APIs. #353

Closed
englehardt opened this issue Oct 26, 2018 · 2 comments
Closed

Provide a method to configure JS instrumented APIs. #353

englehardt opened this issue Oct 26, 2018 · 2 comments
Assignees
Labels
extension Relates to the WebExtension written in TS and JS

Comments

@englehardt
Copy link
Collaborator

  • I'm submitting a ...
    [ ] bug report
    [X ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Right now it's not possible to configure the instrumented APIs without editing the content script. It would be great to be able to pass config options. One approach we've considered in the past was to pass something like:

'<API Name>: {
    logging: <all, none>,
    excluded_properties: [],
    included_properties: [],
    logging_flags: [logCallBack, logFunctionsAsStrings, ...]
},
'CanvasRenderingContext2D.prototype': {
...
},
...
@motin motin transferred this issue from mozilla/openwpm-webext-instrumentation Jun 27, 2019
@motin motin added extension Relates to the WebExtension written in TS and JS and removed extension Relates to the WebExtension written in TS and JS labels Jun 27, 2019
@motin motin self-assigned this Jun 27, 2019
@birdsarah birdsarah assigned birdsarah and unassigned motin May 7, 2020
@birdsarah
Copy link
Contributor

i'm working on some related stuff at the moment, so i'm self-assigning and if a pr comes out of it great. if i stop working on related stuff, i'll un-self assign.

@englehardt
Copy link
Collaborator Author

Addressed by #642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Relates to the WebExtension written in TS and JS
Projects
None yet
Development

No branches or pull requests

3 participants