Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Issue 321933002: Revert 274770 "Ensure that in-process plugins can't destroy them..." (Closed)

Created:
6 years, 6 months ago by Lei Zhang
Modified:
6 years, 6 months ago
Reviewers:
raymes
CC:
chromium-reviews
Visibility:
Public.

Description

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 TBR=raymes@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275861

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -42 lines) Patch
M trunk/src/content/renderer/pepper/pepper_in_process_router.cc View 1 chunk +6 lines, -34 lines 0 comments Download
M trunk/src/content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/content/renderer/pepper/pepper_url_loader_host.cc View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lei Zhang
6 years, 6 months ago (2014-06-09 21:48:47 UTC) #1
Lei Zhang
Committed patchset #1 manually as r275861.
6 years, 6 months ago (2014-06-09 21:49:11 UTC) #2
Lei Zhang
Sorry to revert. I didn't have enough time to fix it and the TPMs wanted ...
6 years, 6 months ago (2014-06-09 21:50:11 UTC) #3
raymes
6 years, 6 months ago (2014-06-09 22:20:29 UTC) #4
Thanks for reverting. I'll take a look today.
On Jun 10, 2014 7:50 AM, <thestig@chromium.org> wrote:

> Sorry to revert. I didn't have enough time to fix it and the TPMs wanted
> to a
> dev channel build that can load PDFs. See http://crbug.com/382337
>
> https://codereview.chromium.org/321933002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698