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

Issue 1572743002: Make sure bubbles in Views default to close before their RenderFrameHosts. (Closed)

Created:
4 years, 11 months ago by Jeffrey Yasskin
Modified:
4 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, groby+bubble_chromium.org, msw+watch_chromium.org, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure bubbles in Views close before their RenderFrameHosts. This is probably covered by navigation, but that isn't obvious from reading the code, so this change adds code to close bubbles directly. BUG=571466 Committed: https://crrev.com/4a12e67ac24b290e3da1ce7403bcd73be0a4dc8e Cr-Commit-Position: refs/heads/master@{#374503}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Give each bubble an owner #

Patch Set 3 : Clean up #

Total comments: 13

Patch Set 4 : Update names and matching computation #

Patch Set 5 : Add tests #

Patch Set 6 : Add a test and only allow one filter in CloseAllMatchingBubbles. #

Total comments: 2

Patch Set 7 : Move DCHECK string into longer comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -55 lines) Patch
M chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/chrome_bubble_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/chrome_bubble_manager.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/chrome_bubble_manager_unittest.cc View 1 2 3 4 2 chunks +57 lines, -27 lines 0 comments Download
M chrome/browser/ui/extensions/extension_installed_bubble.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_installed_bubble.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/chooser_bubble_delegate.h View 1 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/chooser_bubble_delegate.cc View 1 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/usb/usb_chooser_bubble_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/usb_chooser_bubble_delegate.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/usb/web_usb_permission_bubble.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/bubble/bubble_close_reason.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/bubble/bubble_controller.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M components/bubble/bubble_controller.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/bubble/bubble_delegate.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M components/bubble/bubble_manager.h View 1 2 3 4 5 3 chunks +14 lines, -4 lines 0 comments Download
M components/bubble/bubble_manager.cc View 1 2 3 4 5 6 3 chunks +24 lines, -9 lines 0 comments Download
M components/bubble/bubble_manager_mocks.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/bubble/bubble_manager_mocks.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/bubble/bubble_manager_unittest.cc View 1 2 3 4 5 4 chunks +39 lines, -2 lines 0 comments Download
M content/public/test/test_renderer_host.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 73 (23 generated)
Jeffrey Yasskin
How's this look?
4 years, 11 months ago (2016-01-08 22:50:07 UTC) #2
Avi (use Gerrit)
That closes the bubble when any frame on the page goes away?
4 years, 11 months ago (2016-01-08 22:53:54 UTC) #3
Jeffrey Yasskin
On 2016/01/08 22:53:54, Avi wrote: > That closes the bubble when any frame on the ...
4 years, 11 months ago (2016-01-08 22:57:14 UTC) #4
Jeffrey Yasskin
On 2016/01/08 22:57:14, Jeffrey Yasskin wrote: > On 2016/01/08 22:53:54, Avi wrote: > > That ...
4 years, 11 months ago (2016-01-08 22:59:18 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/1572743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/1
4 years, 11 months ago (2016-01-08 23:24:07 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-09 00:58:43 UTC) #9
Peter Kasting
https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h File components/bubble/bubble_close_reason.h (right): https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h#newcode13 components/bubble/bubble_close_reason.h:13: BUBBLE_CLOSE_FORCED, Can't we just use this? We only need ...
4 years, 11 months ago (2016-01-09 01:19:35 UTC) #10
Jeffrey Yasskin
https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h File components/bubble/bubble_close_reason.h (right): https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h#newcode13 components/bubble/bubble_close_reason.h:13: BUBBLE_CLOSE_FORCED, On 2016/01/09 01:19:35, Peter Kasting wrote: > Can't ...
4 years, 11 months ago (2016-01-09 02:22:35 UTC) #11
Peter Kasting
https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h File components/bubble/bubble_close_reason.h (right): https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h#newcode13 components/bubble/bubble_close_reason.h:13: BUBBLE_CLOSE_FORCED, On 2016/01/09 02:22:34, Jeffrey Yasskin wrote: > On ...
4 years, 11 months ago (2016-01-09 02:26:18 UTC) #12
Avi (use Gerrit)
On 2016/01/08 22:59:18, Jeffrey Yasskin wrote: > I also think this is any frame in ...
4 years, 11 months ago (2016-01-10 00:38:18 UTC) #13
hcarmona
On 2016/01/10 00:38:18, Avi wrote: > On 2016/01/08 22:59:18, Jeffrey Yasskin wrote: > > I ...
4 years, 11 months ago (2016-01-11 19:07:22 UTC) #14
Peter Kasting
https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h File components/bubble/bubble_close_reason.h (right): https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h#newcode13 components/bubble/bubble_close_reason.h:13: BUBBLE_CLOSE_FORCED, On 2016/01/11 19:07:22, Hector Carmona wrote: > On ...
4 years, 11 months ago (2016-01-11 21:42:19 UTC) #15
hcarmona
On 2016/01/11 21:42:19, Peter Kasting wrote: > https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h > File components/bubble/bubble_close_reason.h (right): > > https://codereview.chromium.org/1572743002/diff/1/components/bubble/bubble_close_reason.h#newcode13 ...
4 years, 11 months ago (2016-01-11 22:15:10 UTC) #16
Peter Kasting
On 2016/01/11 22:15:10, Hector Carmona wrote: > On 2016/01/11 21:42:19, Peter Kasting wrote: > > ...
4 years, 11 months ago (2016-01-11 22:21:00 UTC) #17
Jeffrey Yasskin
On 2016/01/11 22:21:00, Peter Kasting wrote: > There should be only one renderer host visible ...
4 years, 11 months ago (2016-01-11 22:48:17 UTC) #18
Peter Kasting
On 2016/01/11 22:48:17, Jeffrey Yasskin wrote: > On 2016/01/11 22:21:00, Peter Kasting wrote: > > ...
4 years, 11 months ago (2016-01-11 22:53:01 UTC) #19
hcarmona
On 2016/01/11 22:21:00, Peter Kasting wrote: > On 2016/01/11 22:15:10, Hector Carmona wrote: > > ...
4 years, 11 months ago (2016-01-11 22:55:51 UTC) #20
Peter Kasting
On Mon, Jan 11, 2016 at 2:55 PM, <hcarmona@chromium.org> wrote: > The Foil bubble which ...
4 years, 11 months ago (2016-01-11 23:06:38 UTC) #21
groby-ooo-7-16
On 2016/01/11 23:06:38, Peter Kasting wrote: > On Mon, Jan 11, 2016 at 2:55 PM, ...
4 years, 11 months ago (2016-01-12 02:46:48 UTC) #22
Peter Kasting
On 2016/01/12 02:46:48, groby wrote: > On 2016/01/11 23:06:38, Peter Kasting wrote: > > On ...
4 years, 11 months ago (2016-01-12 03:03:26 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/20001
4 years, 10 months ago (2016-02-05 01:07:10 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/18663) mac_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-05 01:24:31 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/1572743002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/60001
4 years, 10 months ago (2016-02-05 02:27:48 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/17803) android_chromium_gn_compile_rel on ...
4 years, 10 months ago (2016-02-05 02:54:42 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/100001
4 years, 10 months ago (2016-02-05 21:48:34 UTC) #36
Jeffrey Yasskin
Sorry it took me so long to get back to this. Here's a patch that ...
4 years, 10 months ago (2016-02-05 22:13:44 UTC) #38
hcarmona
https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc File components/bubble/bubble_manager.cc (right): https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc#newcode106 components/bubble/bubble_manager.cc:106: bool matches = true; If both |match| and |frame| ...
4 years, 10 months ago (2016-02-05 22:48:24 UTC) #40
Peter Kasting
LGTM https://codereview.chromium.org/1572743002/diff/120001/chrome/browser/ui/extensions/extension_installed_bubble.cc File chrome/browser/ui/extensions/extension_installed_bubble.cc (right): https://codereview.chromium.org/1572743002/diff/120001/chrome/browser/ui/extensions/extension_installed_bubble.cc#newcode216 chrome/browser/ui/extensions/extension_installed_bubble.cc:216: return nullptr; I don't know anything about this ...
4 years, 10 months ago (2016-02-06 04:13:08 UTC) #41
Jeffrey Yasskin
Avi, could you double-check the addition to TestRenderFrameHost? It seems to work to destroy a ...
4 years, 10 months ago (2016-02-08 23:59:09 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/160001
4 years, 10 months ago (2016-02-09 00:24:08 UTC) #44
hcarmona
components/bubble/* looks good, but please add some unit tests to components/bubble/bubble_manager_unittest.cc that verify closing with ...
4 years, 10 months ago (2016-02-09 00:31:05 UTC) #45
Peter Kasting
https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc File components/bubble/bubble_manager.cc (right): https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc#newcode106 components/bubble/bubble_manager.cc:106: bool matches = true; On 2016/02/09 00:31:05, Hector Carmona ...
4 years, 10 months ago (2016-02-09 00:42:41 UTC) #46
hcarmona
https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc File components/bubble/bubble_manager.cc (right): https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc#newcode106 components/bubble/bubble_manager.cc:106: bool matches = true; On 2016/02/09 00:42:41, Peter Kasting ...
4 years, 10 months ago (2016-02-09 00:59:44 UTC) #47
Peter Kasting
On 2016/02/09 00:59:44, Hector Carmona wrote: > I can't think of a reason we would ...
4 years, 10 months ago (2016-02-09 01:02:11 UTC) #48
Jeffrey Yasskin
On 2016/02/09 00:59:44, Hector Carmona wrote: > https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc > File components/bubble/bubble_manager.cc (right): > > https://codereview.chromium.org/1572743002/diff/120001/components/bubble/bubble_manager.cc#newcode106 ...
4 years, 10 months ago (2016-02-09 01:24:36 UTC) #49
hcarmona
On 2016/02/09 01:24:36, Jeffrey Yasskin wrote: > On 2016/02/09 00:59:44, Hector Carmona wrote: > > ...
4 years, 10 months ago (2016-02-09 01:30:12 UTC) #50
Jeffrey Yasskin
On 2016/02/09 01:30:12, Hector Carmona wrote: > On 2016/02/09 01:24:36, Jeffrey Yasskin wrote: > > ...
4 years, 10 months ago (2016-02-09 01:33:23 UTC) #51
Jeffrey Yasskin
On 2016/02/09 01:33:23, Jeffrey Yasskin wrote: > On 2016/02/09 01:30:12, Hector Carmona wrote: > > ...
4 years, 10 months ago (2016-02-09 01:33:47 UTC) #52
hcarmona
LGTM for components/bubble/* Thanks for the test :-)
4 years, 10 months ago (2016-02-09 01:51:42 UTC) #53
Avi (use Gerrit)
Exposing detach in that way lgtm
4 years, 10 months ago (2016-02-09 02:03:10 UTC) #54
Peter Kasting
LGTM https://codereview.chromium.org/1572743002/diff/180001/components/bubble/bubble_manager.cc File components/bubble/bubble_manager.cc (right): https://codereview.chromium.org/1572743002/diff/180001/components/bubble/bubble_manager.cc#newcode101 components/bubble/bubble_manager.cc:101: "bubble iff it's owned by a particular frame."; ...
4 years, 10 months ago (2016-02-09 02:10:53 UTC) #55
Jeffrey Yasskin
Reilly, PTAL at the changes to chrome/browser/usb. Alexei, PTAL at histograms.xml. Thanks! https://codereview.chromium.org/1572743002/diff/180001/components/bubble/bubble_manager.cc File components/bubble/bubble_manager.cc ...
4 years, 10 months ago (2016-02-09 20:54:44 UTC) #57
Reilly Grant (use Gerrit)
chrome/browser/usb lgtm
4 years, 10 months ago (2016-02-09 21:01:25 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/200001
4 years, 10 months ago (2016-02-09 21:04:23 UTC) #60
Alexei Svitkine (slow)
lgtm
4 years, 10 months ago (2016-02-09 21:36:53 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/200001
4 years, 10 months ago (2016-02-09 21:49:11 UTC) #65
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
4 years, 10 months ago (2016-02-09 22:15:20 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572743002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572743002/200001
4 years, 10 months ago (2016-02-09 22:19:33 UTC) #69
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 10 months ago (2016-02-09 22:39:16 UTC) #71
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 22:41:29 UTC) #73
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4a12e67ac24b290e3da1ce7403bcd73be0a4dc8e
Cr-Commit-Position: refs/heads/master@{#374503}

Powered by Google App Engine
This is Rietveld 408576698