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

Issue 2504573003: Plugin Power Saver: Fix race between GIN bindings and destruction (Closed)

Created:
4 years, 1 month ago by tommycli
Modified:
4 years, 1 month ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Fix race between GIN bindings and destruction Sometimes the plugin.didFinishIconRepositionForTesting() C++ handler triggers after the plugin has been marked for deletion. This leads to a use-after-free crash as reported in the bug. This CL fixes that by checking for plugin() being nullptr. Other GIN callbacks use this check already to handle this case. BUG=512140 Committed: https://crrev.com/2c329c9ed91c9aeae56633a50128f4d1b9abf927 Cr-Commit-Position: refs/heads/master@{#432550}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
tommycli
bauerb: PTAL, thanks!
4 years, 1 month ago (2016-11-15 23:01:51 UTC) #2
Bernhard Bauer
RS LGTM
4 years, 1 month ago (2016-11-16 17:40:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2504573003/1
4 years, 1 month ago (2016-11-16 17:53:05 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-16 18:00:34 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 18:20:08 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2c329c9ed91c9aeae56633a50128f4d1b9abf927
Cr-Commit-Position: refs/heads/master@{#432550}

Powered by Google App Engine
This is Rietveld 408576698