Revert 274770 "Ensure that in-process plugins can't destroy them..."
> Ensure that in-process plugins can't destroy themselves by closing a URLLoader
>
> Previously in-process plugins could close the main URLLoader, which could result
> destruction of themselves. This only happens in-process because calling
> URLLoader.Close() results in synchronously calling in to blink, whereas the
> call is asynchronous due to IPC when OOP.
>
> This is fixed here by adding a hack to the in-process router. We should probably
> post every message to the message loop, but there is a chance this might break
> something and we will be removing in-process plugins altogether soon.
>
> There are also two other related bugs this fixes:
> 1) The PepperPluginInstanceImpl::DidDataFromWebURLResponse could be called
> after PepperPluginInstanceImpl::Delete() has been run, in which case the
> plugin instance may also be destroyed, so we should not run HandleDocumentLoad
> in that case.
> 2) The instance may be destroyed before the PepperURLLoaderHost so we need
> to check if it is null.
>
> BUG=372548
>
> Review URL: https://codereview.chromium.org/314603002
[email protected]
Review URL: https://codereview.chromium.org/321933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275861 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed