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

Issue 2724903008: Force chooser bubbles to close synchronously. (Closed)

Created:
3 years, 9 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 9 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force chooser bubbles to close synchronously. This fixes a potential use-after-free because UsbChooserController holds a raw pointer to the RenderFrameHost and so must be destroyed as part of RenderFrameHost destruction. BUG=697486 Review-Url: https://codereview.chromium.org/2724903008 Cr-Commit-Position: refs/heads/master@{#454989} Committed: https://chromium.googlesource.com/chromium/src/+/692db28a688889a7946b04debfd890673ae2269f

Patch Set 1 #

Patch Set 2 : Make ChooserBubbleUiView a WidgetObserver. #

Total comments: 4

Patch Set 3 : Address msw@'s nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc View 1 2 2 chunks +24 lines, -14 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
Reilly Grant (use Gerrit)
Please take a look.
3 years, 9 months ago (2017-03-03 23:01:38 UTC) #4
msw
lgtm
3 years, 9 months ago (2017-03-03 23:06:33 UTC) #5
Reilly Grant (use Gerrit)
Make ChooserBubbleUiView a WidgetObserver.
3 years, 9 months ago (2017-03-04 02:52:18 UTC) #8
Reilly Grant (use Gerrit)
Please take another look. To close the widget the caller should be a WidgetObserver so ...
3 years, 9 months ago (2017-03-04 02:52:52 UTC) #9
msw
lgtm with nits https://codereview.chromium.org/2724903008/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc (right): https://codereview.chromium.org/2724903008/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc#newcode212 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc:212: if (!widget->IsClosed()) { optional nit: If ...
3 years, 9 months ago (2017-03-04 03:22:59 UTC) #12
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2724903008/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc (right): https://codereview.chromium.org/2724903008/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc#newcode212 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc:212: if (!widget->IsClosed()) { On 2017/03/04 03:22:59, msw wrote: > ...
3 years, 9 months ago (2017-03-06 19:09:59 UTC) #15
Reilly Grant (use Gerrit)
Address msw@'s nits.
3 years, 9 months ago (2017-03-06 19:10:02 UTC) #16
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/2724903008/40001
3 years, 9 months ago (2017-03-06 19:11:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/377628)
3 years, 9 months ago (2017-03-06 20:24:00 UTC) #21
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/2724903008/40001
3 years, 9 months ago (2017-03-06 22:54:34 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/692db28a688889a7946b04debfd890673ae2269f
3 years, 9 months ago (2017-03-06 23:01:32 UTC) #26
Reilly Grant (use Gerrit)
3 years, 9 months ago (2017-03-07 15:50:01 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2736793003/ by reillyg@chromium.org.

The reason for reverting is: Reverting this patchset because it was
insufficiently tested and introduced a new bug..

Powered by Google App Engine
This is Rietveld 408576698