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

Issue 19044005: Merge 210229 "Hide autofill popup before WebContentsImpl is dest..." (Closed)

Created:
7 years, 5 months ago by blundell
Modified:
7 years, 5 months ago
Reviewers:
blundell
CC:
chromium-reviews, Raman Kakilate, benquan, ahutter, browser-components-watch_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Merge 210229 "Hide autofill popup before WebContentsImpl is dest..." > Hide autofill popup before WebContentsImpl is destroyed. > > TabAutofillManagerDelegate was initiating the autofill popup hiding process in > its destructor. However, this process ends up calling back into the > WebContentsImpl instance via a virtual method call on the base WebContents > class. As TabAutofillManagerDelegate is a WebContentsUserData and thus has its > destructor called as part of the WebContents base class destructor, the call > into WebContents is occurring when the instance's vtable is that of > WebContents, where the method is pure virtual. > > This CL changes the autofill popup hiding process to occur on receiving the > WebContentsDestroyed notification, while the vtable of the WebContents instance > is still that of WebContentsImpl. > > BUG=254490 > TEST=On Windows, cause an autofill popup to appear and close the tab. The app > should not crash. > > Review URL: https://chromiumcodereview.appspot.com/18272015 TBR=blundell@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211373

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 2 chunks +10 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
blundell
7 years, 5 months ago (2013-07-12 10:47:56 UTC) #1
blundell
Committed patchset #1 manually as r211373.
7 years, 5 months ago (2013-07-12 10:48:36 UTC) #2
blundell
7 years, 5 months ago (2013-07-12 10:52:09 UTC) #3
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698