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

Issue 433633003: Pepper: Fix renderer crash on plugin destruction. (Closed)

Created:
6 years, 4 months ago by teravest
Modified:
6 years, 4 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Pepper: Fix renderer crash on plugin destruction. The FileDownloader refactor caused callbacks to be more tightly bound to PnaclCoordinator than they were previously. Before the refactor, callbacks that were invoked as the pexe was downloaded (or the cached translated nexe was received) were generated through the CompletionCallbackFactory interface, which would cause them to be cancelled when PnaclCoordinator was destroyed. This change checks that the plugin instance is still alive before calling any of the callbacks in the PPP_PexeStreamHandler interface. I tried conducting some local testing, but didn't manage to hit quite the same codepath as the one reported in the bug. BUG=400171 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287472

Patch Set 1 : #

Total comments: 1

Patch Set 2 : add comment for dmichael #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 3 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
teravest
6 years, 4 months ago (2014-08-04 17:37:53 UTC) #1
dmichael (off chromium)
In the longer term it might be better for the PexeDownloader to have an owner ...
6 years, 4 months ago (2014-08-04 20:58:48 UTC) #2
teravest
Yes, it'd be better for PexeDownloader to have an owner. We'll have to be careful ...
6 years, 4 months ago (2014-08-04 21:04:39 UTC) #3
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 4 months ago (2014-08-04 21:52:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/433633003/40001
6 years, 4 months ago (2014-08-04 21:54:12 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 00:50:52 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-08-05 06:41:09 UTC) #7
Message was sent while issue was closed.
Change committed as 287472

Powered by Google App Engine
This is Rietveld 408576698