firebug/netexport — pull request #2 by vincentbernat (2013-03-15 13:22:48+00:00)
Title: Issue 5971: programmatic triggering of NetExport

An export can be triggered with
`window.NetExport.triggerExport("token")()`. Automatic export has to
be enabled for this function to be available. However, it is possible
to disable unattended automatic export by setting the timeout to 0.

Since we don't want any page to trigger an export, `token` is a
security token that should be kept secret and is set by the user in
`extensions.firebug.netexport.secretToken`. If the token is incorrect,
it is not possible to call the final function.

It should be easy to add other functions like this. I have tried to be secure in how the function is exported. Keep in mind I am not familiar with extensions.