Real Browser implementation throught mozrepl
=============================================

TODO:

    - Handle configuration with mozrunner for:

        - user agent faking
        - proxies management

First, we need to instantiate the sources where we come from::

    >>> from collective.anonymousbrowser.real import *

In the section [collective.anonymousbrowser] of your configuration file you
can add those parameters:

    - ``host`` : host of firefox mozrepl instance
    - ``port`` : port of firefox mozrepl instance
    - ``firefox`` : path to the firefox binary
    - ``firefox-profile`` : path to the firefox profile to use


Start to use it on our little http server::

    >>> b = Browser('http://localhost:45675')
    >>> b.contents
    '<html>...<pre>...localhost:45675...</pre>...</html>'

    >>> b.open('http://localhost:45675')
    >>> b.contents
    '<html>...<pre>...localhost:45675...</pre>...</html>'

Kill any launched firefox from the browser instance with its configuration
settings::

    >>> b.stop_ff()
    >>> b.start_ff()
    <mozrunner.runner.Firefox object at ...>
    >>> b.restart_ff()
    <mozrunner.runner.Firefox object at ...>

Cleanup::

    >>> b.stop_ff()

..  vim:set ft=doctest:
