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

Issue 24469006: Fixing crash Report - Magic Signature: views::View::ConvertPointToScreen (Closed)

Created:
7 years, 2 months ago by Mr4D (OOO till 08-26)
Modified:
7 years, 2 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, msw+watch_chromium.org, alicet1, tfarina, sky
Visibility:
Public.

Description

Fixing crash Report - Magic Signature: views::View::ConvertPointToScreen The problem: - The BubbleDelegateView tracks the destruction of the widget which owns the anchor view. - The anchor view gets queried dynamically for its location upon any position change of the anchor widget. - When a view gets deleted, the widget does not have to be deleted. Taking that all together and looking at the shelf it is possible to get to the following scenario: The user puts the shelf into auto hiding mode (so it changes its location). The bubble gets shown. The button - which was used for the anchor - gets deleted, which triggers the destruction of the bubble. The bubble however gets faded out slowly (while the shelf shifts out of view). In this case the location would get queried, but the view is already gone. BUG=297676 TEST=unittest, but none visually since there isn't a simple reproducible case known Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226158

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed #

Patch Set 3 : A self check encountered a few things.. #

Total comments: 47

Patch Set 4 : Addressed - git what are you doing today? #

Total comments: 14

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : Fixed unit test #

Total comments: 4

Patch Set 8 : . #

Total comments: 9

Patch Set 9 : Addressed #

Patch Set 10 : Addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -48 lines) Patch
M ash/shelf/overflow_bubble.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/caption_buttons/maximize_bubble_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/views/app_list_view.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -6 lines 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 3 4 5 6 7 8 7 chunks +42 lines, -21 lines 0 comments Download
M ui/views/bubble/bubble_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +59 lines, -0 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mr4D (OOO till 08-26)
As discussed. Please have a look!
7 years, 2 months ago (2013-09-25 22:59:15 UTC) #1
msw
Sorry I didn't fully understand the problem until I saw this CL. Overall this might ...
7 years, 2 months ago (2013-09-26 22:17:18 UTC) #2
Mr4D (OOO till 08-26)
Somehow I expected this - which is the reason why I told you at the ...
7 years, 2 months ago (2013-09-26 22:52:31 UTC) #3
sky
How about making Bubble use ViewStorage to track the view? ViewStorage associates an id with ...
7 years, 2 months ago (2013-09-26 23:18:13 UTC) #4
Mr4D (OOO till 08-26)
StorageView - interesting! I looked quickly at it and that looks good! Will update the ...
7 years, 2 months ago (2013-09-27 02:47:14 UTC) #5
Mr4D (OOO till 08-26)
Please have another look! Note: Since several commands were not "unix hacker style" anymore I ...
7 years, 2 months ago (2013-09-27 17:22:50 UTC) #6
msw
I think this will be a great change once it's simplified. https://codereview.chromium.org/24469006/diff/27001/ash/shelf/overflow_bubble.cc File ash/shelf/overflow_bubble.cc (right): ...
7 years, 2 months ago (2013-09-27 18:20:31 UTC) #7
Mr4D (OOO till 08-26)
Addressed. Please note: You asked to not overwrite the bounds explicitly in our chat earlier ...
7 years, 2 months ago (2013-09-27 20:29:35 UTC) #8
msw
https://codereview.chromium.org/24469006/diff/27001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/24469006/diff/27001/ui/views/bubble/bubble_delegate.cc#newcode291 ui/views/bubble/bubble_delegate.cc:291: anchor_view_storage_id_ = ViewStorage::GetInstance()->CreateStorageID(); On 2013/09/27 20:29:35, Mr4D wrote: > ...
7 years, 2 months ago (2013-09-27 21:21:52 UTC) #9
Mr4D (OOO till 08-26)
Okay. Please see comments. Have another look! https://codereview.chromium.org/24469006/diff/63001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/24469006/diff/63001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode840 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:840: if (bubble_delegate ...
7 years, 2 months ago (2013-09-27 22:52:20 UTC) #10
msw
LGTM with a couple minor comments. https://codereview.chromium.org/24469006/diff/42001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/24469006/diff/42001/ui/views/bubble/bubble_delegate.cc#newcode169 ui/views/bubble/bubble_delegate.cc:169: // We set ...
7 years, 2 months ago (2013-09-27 23:45:55 UTC) #11
Mr4D (OOO till 08-26)
Done thanks! Sky please can you have another look? https://codereview.chromium.org/24469006/diff/42001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/24469006/diff/42001/ui/views/bubble/bubble_delegate.cc#newcode169 ui/views/bubble/bubble_delegate.cc:169: ...
7 years, 2 months ago (2013-09-28 00:01:17 UTC) #12
sky
https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate.cc#newcode262 ui/views/bubble/bubble_delegate.cc:262: View* BubbleDelegateView::GetAnchorView() const { Make order match header. https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate.h ...
7 years, 2 months ago (2013-09-30 14:58:44 UTC) #13
Mr4D (OOO till 08-26)
Addressed (mostly - see comments). Please have another look! https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate.cc#newcode262 ui/views/bubble/bubble_delegate.cc:262: ...
7 years, 2 months ago (2013-09-30 16:22:32 UTC) #14
sky
https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate_unittest.cc File ui/views/bubble/bubble_delegate_unittest.cc (right): https://codereview.chromium.org/24469006/diff/83001/ui/views/bubble/bubble_delegate_unittest.cc#newcode120 ui/views/bubble/bubble_delegate_unittest.cc:120: TEST_F(BubbleDelegateTest, CloseAnchorViewTest) { On 2013/09/30 16:22:32, Mr4D wrote: > ...
7 years, 2 months ago (2013-09-30 16:44:51 UTC) #15
sky
And I'm fine with pushing const changes to a separate patch.
7 years, 2 months ago (2013-09-30 16:45:05 UTC) #16
Mr4D (OOO till 08-26)
Added. Please have another look!
7 years, 2 months ago (2013-09-30 17:06:33 UTC) #17
sky
LGTM
7 years, 2 months ago (2013-09-30 20:22:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/24469006/114001
7 years, 2 months ago (2013-09-30 20:31:04 UTC) #19
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 06:00:17 UTC) #20
Message was sent while issue was closed.
Change committed as 226158

Powered by Google App Engine
This is Rietveld 408576698