aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/modify_body_inject_iframe.py
Commit message (Collapse)AuthorAgeFilesLines
* extend mypy example/simpleharsh vijay2017-04-291-2/+2
|
* configure(options, updated) -> configure(updated)Aldo Cortesi2017-04-261-8/+3
| | | | | Options are now available globally on ctx, so the first argument of configure is redundant.
* Revamp how addons workAldo Cortesi2017-04-251-20/+22
| | | | | | | | | | | | | | | | | | | - Addons now nest, which means that addons can manage addons. This has a number of salutary effects - the scripts addon no longer has to poke into the global addons list, we no longer have to replace/remove/boot-outof parent addons when we load scripts, and this paves the way for making our top-level tools into addons themselves. - All addon calls are now wrapped in a safe execution environment where exceptions are caught, and output to stdout/stderr are intercepted and turned into logs. - We no longer support script arguments in sys.argv - creating an option properly is the only way to pass arguments. This means that all scripts are always directly controllable from interctive tooling, and that arguments are type-checked. For now, I've disabled testing of the har dump example - it needs to be moved to the new argument handling, and become a class addon. I'll address that in a separate patch.
* addon loader: add boot_into, which replaces returning from start()Aldo Cortesi2017-03-251-2/+2
| | | | | While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.
* addons: start -> load throughoutAldo Cortesi2017-03-251-1/+1
|
* Enable custom options for addonsAldo Cortesi2017-03-141-1/+1
| | | | | | | | - Add an options parameter to the start() event. This is to be used by addons on startup to add custom options. - Add a running() event that is called once the proxy is up and running. - With the new paradigm we can't log during master __init__, so add a tiny termstatus addon to print proxy status to terminal once we're running.
* minor fixesMaximilian Hils2016-12-101-1/+1
|
* remove lxml-dependent codeMaximilian Hils2016-12-101-1/+1
|
* organize examplesMaximilian Hils2016-11-211-0/+29
This commit is largely based on work by Thiago Arrais (@thiagoarrais) and Shane Bradfield (@l33tLumberjack). I wasn't really able to get their PR reasonably merged onto the latest master, so I reapplied their changes manually here and did some further improvements on that.