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

Issue 379483003: Fix use-after-free in BrowserActionOverflowMenuController (Closed)

Created:
6 years, 5 months ago by Devlin
Modified:
6 years, 5 months ago
Reviewers:
msw, sky, Finnur
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, leiyi.jp, sky, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix use-after-free in BrowserActionOverflowMenuController When BrowserActionOverflowMenuController is deleted, it deletes its associated IconUpdaters. When these go away, they remove themselves as the observer on the associated BrowserActionViews. This led to the use-after-free if the BrowserActionOverflowMenuController outlasts any of the BrowserActionViews. BUG=391061 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282224

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 chunk +2 lines, -0 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
Devlin
6 years, 5 months ago (2014-07-09 15:59:03 UTC) #1
msw
https://codereview.chromium.org/379483003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/379483003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode239 chrome/browser/ui/views/toolbar/browser_actions_container.cc:239: if (overflow_menu_) Can we simply close the overflow menu ...
6 years, 5 months ago (2014-07-09 16:56:27 UTC) #2
Devlin
https://codereview.chromium.org/379483003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/379483003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode239 chrome/browser/ui/views/toolbar/browser_actions_container.cc:239: if (overflow_menu_) On 2014/07/09 16:56:27, msw wrote: > Can ...
6 years, 5 months ago (2014-07-09 19:23:28 UTC) #3
msw
It seems like IconUpdater (added in r253406 for Issue 319619) is really not the right ...
6 years, 5 months ago (2014-07-09 19:36:40 UTC) #4
Devlin
On 2014/07/09 19:36:40, msw wrote: > It seems like IconUpdater (added in r253406 for Issue ...
6 years, 5 months ago (2014-07-09 20:25:56 UTC) #5
msw
On 2014/07/09 20:25:56, Devlin wrote: > On 2014/07/09 19:36:40, msw wrote: > > It seems ...
6 years, 5 months ago (2014-07-09 21:12:31 UTC) #6
msw
On 2014/07/09 21:12:31, msw wrote: > On 2014/07/09 20:25:56, Devlin wrote: > > On 2014/07/09 ...
6 years, 5 months ago (2014-07-09 21:13:45 UTC) #7
Devlin
On 2014/07/09 21:13:45, msw wrote: > On 2014/07/09 21:12:31, msw wrote: > > On 2014/07/09 ...
6 years, 5 months ago (2014-07-09 22:18:52 UTC) #8
msw
okay, lgtm I guess.
6 years, 5 months ago (2014-07-09 22:46:53 UTC) #9
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 5 months ago (2014-07-09 23:04:25 UTC) #10
Devlin
On 2014/07/09 22:46:53, msw wrote: > okay, lgtm I guess. Thanks :) If we can ...
6 years, 5 months ago (2014-07-09 23:05:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/379483003/1
6 years, 5 months ago (2014-07-09 23:06:10 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 02:59:36 UTC) #13
Message was sent while issue was closed.
Change committed as 282224

Powered by Google App Engine
This is Rietveld 408576698