Bug 829557 - Part 1: When calling into plugin code, identify situations where it is safe (or unsafe) to reenter Gecko from plugin code. r=bsmedberg, a=akeybl

When Gecko is reentered from unsafe call sites, we allow the reentry, but we
suppress execution of the refresh driver to minimize the danger.
In this patch, we treat all sites as unsafe.

--HG--
extra : rebase_source : 4e9ae763507b82e13d2dbd97eea29630fb01a818
Bug 829557. Part 2: Allow plugin code to reenter Gecko safely while while the plugin is processing an input event. r=bsmedberg, a=akeybl

When nsPluginInstanceOwner passes input events to the plugin instance,
it's safe to reenter Gecko from plugin code and do anything, even
arbitrary script execution.

--HG--
extra : rebase_source : 57f729adcc64e00a04a8c91caf4f2c3033752651
Bug 829829 - The stub installer fails to download the file when the server redirects to an HTTPS server. r=bbondy, a=akeybl
Windows stub installer code only - Bug 811573 - 'Add more data points to the metrics ping for the stub installer'. Also fixes bug 797998 - 'In the download phase of the stub installer without an internet connection, the stub installer should eventually time out and report an error' and bug 836044 - 'Aurora stub installer doesn't seem to be working'. r=bbondy, a=akeybl