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

Issue 7833045: Fixes crash by checking for NULL when showing popup. This can happen (Closed)

Created:
9 years, 3 months ago by sky
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Hironori Bono
Visibility:
Public.

Description

Fixes crash by checking for NULL when showing popup. This can happen because ImmGetDefaultIMEWnd may trigger a focus lost, thereby closing the popup so that when we get to Show the popup is NULL. BUG=92497 TEST=none R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99773

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 chunk +7 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
sky
9 years, 3 months ago (2011-09-06 15:38:38 UTC) #1
Ben Goodger (Google)
LGTM On Tue, Sep 6, 2011 at 8:38 AM, <sky@chromium.org> wrote: > Reviewers: Ben Goodger ...
9 years, 3 months ago (2011-09-06 15:43:49 UTC) #2
Peter Kasting
Did you investigate or file a bug for the stuff we chatted about before I ...
9 years, 3 months ago (2011-09-12 18:36:52 UTC) #3
sky
9 years, 3 months ago (2011-09-12 20:19:29 UTC) #4
Yes. There was a thread with the guys in Tokyo (sorry I didn't cc you,
but I did forward the last email in the thread). They are
investigating closing the popup when the IME window is active. Given
that, this workaround seemed fine for the time being.

  -Scott

On Mon, Sep 12, 2011 at 11:36 AM,  <pkasting@chromium.org> wrote:
> Did you investigate or file a bug for the stuff we chatted about before I
> left
> on vacation?  Namely, that we'd like to detect this case and somehow avoid
> losing focus or closing the popup, if feasible?
>
>
>
http://codereview.chromium.org/7833045/diff/1/chrome/browser/ui/views/autocom...
> File
> chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc
> (right):
>
>
http://codereview.chromium.org/7833045/diff/1/chrome/browser/ui/views/autocom...
> chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc:370:
> // TODO: this won't be needed once we close the omnibox on input window
> ? We explicitly wanted to avoid closing the omnibox when the input
> window was showing, hence the current code that tries to avoid
> overlapping the two.
>
> http://codereview.chromium.org/7833045/
>

Powered by Google App Engine
This is Rietveld 408576698