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

Issue 1141793002: Reland: Fix WebViewPlugin::scheduleAnimation crash (Closed)

Created:
5 years, 7 months ago by trchen
Modified:
5 years, 7 months ago
Reviewers:
tommycli, jam, 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

Reland: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -3 lines) Patch
M chrome/browser/plugins/plugin_power_saver_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_webplugin_impl_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +207 lines, -0 lines 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/plugin_power_saver_helper.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -3 lines 0 comments Download

Messages

Total messages: 62 (28 generated)
trchen
In addition to the change in the original CL, this new CL also switches the ...
5 years, 7 months ago (2015-05-13 21:49:20 UTC) #2
tommycli
lgtm sans: https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h File content/renderer/pepper/pepper_webplugin_impl.h (right): https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h#newcode107 content/renderer/pepper/pepper_webplugin_impl.h:107: scoped_ptr<PluginInstanceThrottlerImpl> throttler_; I think this isn't quite ...
5 years, 7 months ago (2015-05-13 22:07:02 UTC) #3
trchen
https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h File content/renderer/pepper/pepper_webplugin_impl.h (right): https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h#newcode107 content/renderer/pepper/pepper_webplugin_impl.h:107: scoped_ptr<PluginInstanceThrottlerImpl> throttler_; On 2015/05/13 22:07:02, tommycli wrote: > I ...
5 years, 7 months ago (2015-05-13 22:17:05 UTC) #4
tommycli
On 2015/05/13 22:17:05, trchen wrote: > https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h > File content/renderer/pepper/pepper_webplugin_impl.h (right): > > https://codereview.chromium.org/1141793002/diff/20001/content/renderer/pepper/pepper_webplugin_impl.h#newcode107 > ...
5 years, 7 months ago (2015-05-13 22:24:58 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/40001
5 years, 7 months ago (2015-05-15 00:00:34 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 00:50:24 UTC) #10
raymes
Are you able to tickle this using a variant of PluginPowerSaverBrowserTest?
5 years, 7 months ago (2015-05-15 05:06:09 UTC) #11
trchen
On 2015/05/15 05:06:09, raymes wrote: > Are you able to tickle this using a variant ...
5 years, 7 months ago (2015-05-15 06:01:19 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/60001
5 years, 7 months ago (2015-05-15 09:50:22 UTC) #15
trchen
+jam@ for content_constants.
5 years, 7 months ago (2015-05-15 09:51:27 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/72524)
5 years, 7 months ago (2015-05-15 10:09:23 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/80001
5 years, 7 months ago (2015-05-15 11:35:41 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/16852)
5 years, 7 months ago (2015-05-15 11:59:56 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/100001
5 years, 7 months ago (2015-05-15 20:23:02 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/120001
5 years, 7 months ago (2015-05-15 20:56:21 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/140001
5 years, 7 months ago (2015-05-15 21:00:51 UTC) #33
trchen
Hello reviewers, I think this CL is ready now. PTAL. Thanks!
5 years, 7 months ago (2015-05-15 23:39:59 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-16 01:35:19 UTC) #36
raymes
lgtm! Nice work, thanks for adding the test.
5 years, 7 months ago (2015-05-18 04:38:02 UTC) #37
raymes
https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/pepper_webplugin_impl_browsertest.cc File content/renderer/pepper/pepper_webplugin_impl_browsertest.cc (right): https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/pepper_webplugin_impl_browsertest.cc#newcode91 content/renderer/pepper/pepper_webplugin_impl_browsertest.cc:91: static void DummyCallback(void*, int32_t) {} nit: newline below https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/pepper_webplugin_impl_browsertest.cc#newcode187 ...
5 years, 7 months ago (2015-05-18 04:39:07 UTC) #38
jam
https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/plugin_power_saver_helper.cc File content/renderer/pepper/plugin_power_saver_helper.cc (right): https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/plugin_power_saver_helper.cc#newcode126 content/renderer/pepper/plugin_power_saver_helper.cc:126: if (plugin_module_name == content::kAlwaysThrottleTestPluginName) we shouldn't have knowledge of ...
5 years, 7 months ago (2015-05-18 15:44:04 UTC) #39
jam
5 years, 7 months ago (2015-05-18 15:44:05 UTC) #40
trchen
On 2015/05/18 15:44:04, jam wrote: > https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/plugin_power_saver_helper.cc > File content/renderer/pepper/plugin_power_saver_helper.cc (right): > > https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/plugin_power_saver_helper.cc#newcode126 > ...
5 years, 7 months ago (2015-05-18 20:25:18 UTC) #41
tommycli
On 2015/05/18 20:25:18, trchen wrote: > On 2015/05/18 15:44:04, jam wrote: > > > https://codereview.chromium.org/1141793002/diff/140001/content/renderer/pepper/plugin_power_saver_helper.cc ...
5 years, 7 months ago (2015-05-18 20:27:32 UTC) #42
trchen
Done. PTAL thanks!
5 years, 7 months ago (2015-05-18 23:11:14 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/160001
5 years, 7 months ago (2015-05-18 23:11:34 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/180001
5 years, 7 months ago (2015-05-19 00:29:16 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/58769)
5 years, 7 months ago (2015-05-19 02:04:31 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/200001
5 years, 7 months ago (2015-05-19 02:42:38 UTC) #54
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-19 03:53:07 UTC) #56
jam
lgtm https://codereview.chromium.org/1141793002/diff/200001/content/renderer/pepper/plugin_power_saver_helper.cc File content/renderer/pepper/plugin_power_saver_helper.cc (right): https://codereview.chromium.org/1141793002/diff/200001/content/renderer/pepper/plugin_power_saver_helper.cc#newcode140 content/renderer/pepper/plugin_power_saver_helper.cc:140: if (override_for_testing_ == Always) nit: i think you ...
5 years, 7 months ago (2015-05-19 15:58:01 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141793002/220001
5 years, 7 months ago (2015-05-19 21:37:56 UTC) #60
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 7 months ago (2015-05-19 22:33:32 UTC) #61
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 22:35:20 UTC) #62
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/933b352b80d2cf8443bf18934b4296573c404a73
Cr-Commit-Position: refs/heads/master@{#330638}

Powered by Google App Engine
This is Rietveld 408576698