Zest script types

1 view
Skip to first unread message

Simon Bennetts

unread,
Jul 4, 2013, 5:07:20 AM7/4/13
to mozill...@googlegroups.com
Right now we have 3 types of Zest scripts:
  • Active - scripts which attack a specified target (represented by a request)
  • Passive - scripts which attack a specified target (represented by a request)
  • Targeted - scripts which are 'stand alone'

However I'm wondering if it would be better to change it as follows:

  • Active/passive becomes a boolean property of the script, and just specifies if the script makes any changes or not
  • Scripts specify the parameters they expect:
    • if none then the script is 'stand-alone' 
    • If they expect a single Request then they will be like the 'old' Active and Passive scripts
    • We may initially just support mandatory parameters, but could support optional ones later?
  • Scripts could also specify the type they return, eg nothing or a Request or a boolean or ??

So an 'old' Active script would have the 'Active' property set, require one Request as a parameter and return a Request.

How does that sound?

Any thoughts or suggestions etc?

Cheers,

Simon

Reply all
Reply to author
Forward
0 new messages