DescriptionPepper: 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 #Messages
Total messages: 7 (0 generated)
|