DescriptionReland: Fix WebViewPlugin::scheduleAnimation crash
The crash was probably due to accessing a dangling pointer to the plugin
container during a small time frame between PepperWebPluginImpl::destroy()
and the destructor being called. (Speculated from source since no reliable
repro is found.)
This CL clears eveything in the destroy() function as if the destructor has
been called, only delaying memory release.
In additional to the original CL https://codereview.chromium.org/1137663006/
This CL also switched the destruction order of pepper instance and the
throttler. Engaging throttle during destruction cause crash and doesn't make
sense anyway.
R=tommycli,raymes
BUG=483068, 487607
Committed: https://crrev.com/933b352b80d2cf8443bf18934b4296573c404a73
Cr-Commit-Position: refs/heads/master@{#330638}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : reverting no-op changes in PepperWebPluginImpl #Patch Set 3 : test added #Patch Set 4 : revise test #Patch Set 5 : fix test resource loading #Patch Set 6 : correct gyp dependencies for test #Patch Set 7 : filepath windows issue #
Total comments: 3
Patch Set 8 : remove PPS test plugin name constant in favor of command line switch #Patch Set 9 : oops, we still need special PPS test plugin. #Patch Set 10 : don't forget to propagate to renderer #
Total comments: 1
Patch Set 11 : fix style nit #Messages
Total messages: 62 (28 generated)
|