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

Issue 1137663006: Fix WebViewPlugin::scheduleAnimation crash (Closed)

Created:
5 years, 7 months ago by trchen
Modified:
5 years, 7 months ago
Reviewers:
tommycli, raymes
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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. R=tommycli BUG=483068 Committed: https://crrev.com/6a9b5b10ff3515adb47718fc23ebe039a9e3b9ff Cr-Commit-Position: refs/heads/master@{#329309}

Patch Set 1 #

Total comments: 2

Patch Set 2 : reset throttler_ in PepperPluginInstanceImpl #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.cc View 2 chunks +2 lines, -0 lines 2 comments Download

Messages

Total messages: 23 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137663006/1
5 years, 7 months ago (2015-05-11 20:58:57 UTC) #2
trchen
Hello Tommy, This CL should fix the crash pointer bug. PTAL. Thanks! Not very sure ...
5 years, 7 months ago (2015-05-11 21:05:12 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-11 21:55:53 UTC) #5
tommycli
https://codereview.chromium.org/1137663006/diff/1/content/renderer/pepper/pepper_webplugin_impl.cc File content/renderer/pepper/pepper_webplugin_impl.cc (right): https://codereview.chromium.org/1137663006/diff/1/content/renderer/pepper/pepper_webplugin_impl.cc#newcode135 content/renderer/pepper/pepper_webplugin_impl.cc:135: throttler_.reset(); If the plugin has been initialized, the throttler_ ...
5 years, 7 months ago (2015-05-11 21:57:23 UTC) #6
trchen
https://codereview.chromium.org/1137663006/diff/1/content/renderer/pepper/pepper_webplugin_impl.cc File content/renderer/pepper/pepper_webplugin_impl.cc (right): https://codereview.chromium.org/1137663006/diff/1/content/renderer/pepper/pepper_webplugin_impl.cc#newcode135 content/renderer/pepper/pepper_webplugin_impl.cc:135: throttler_.reset(); On 2015/05/11 21:57:23, tommycli wrote: > If the ...
5 years, 7 months ago (2015-05-11 22:09:18 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137663006/20001
5 years, 7 months ago (2015-05-11 22:12:55 UTC) #9
tommycli
lgtm. I think this will fix your proposed 'bad' sequence of events. thanks for looking ...
5 years, 7 months ago (2015-05-11 22:46:57 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-11 23:14:19 UTC) #12
trchen
Just realize we still need owner's approval. PTAL. Thanks!
5 years, 7 months ago (2015-05-11 23:35:12 UTC) #16
raymes
lgtm https://codereview.chromium.org/1137663006/diff/20001/content/renderer/pepper/pepper_webplugin_impl.cc File content/renderer/pepper/pepper_webplugin_impl.cc (right): https://codereview.chromium.org/1137663006/diff/20001/content/renderer/pepper/pepper_webplugin_impl.cc#newcode127 content/renderer/pepper/pepper_webplugin_impl.cc:127: container_ = nullptr; I'm not sure that this ...
5 years, 7 months ago (2015-05-12 00:36:30 UTC) #17
trchen
https://codereview.chromium.org/1137663006/diff/20001/content/renderer/pepper/pepper_webplugin_impl.cc File content/renderer/pepper/pepper_webplugin_impl.cc (right): https://codereview.chromium.org/1137663006/diff/20001/content/renderer/pepper/pepper_webplugin_impl.cc#newcode127 content/renderer/pepper/pepper_webplugin_impl.cc:127: container_ = nullptr; On 2015/05/12 00:36:30, raymes wrote: > ...
5 years, 7 months ago (2015-05-12 01:35:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137663006/20001
5 years, 7 months ago (2015-05-12 01:37:45 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-12 02:01:45 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6a9b5b10ff3515adb47718fc23ebe039a9e3b9ff Cr-Commit-Position: refs/heads/master@{#329309}
5 years, 7 months ago (2015-05-12 02:03:20 UTC) #22
trchen
5 years, 7 months ago (2015-05-13 21:07:45 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1127293004/ by trchen@chromium.org.

The reason for reverting is: This is converting the original crash to another
crash. Will need another null check.

BUG=487607.

Powered by Google App Engine
This is Rietveld 408576698