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

Issue 18543012: Don't mess with omnibox selection on update when the omnibox doesn't have focus. (Closed)

Created:
7 years, 5 months ago by Peter Kasting
Modified:
7 years, 5 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, James Su
Visibility:
Public.

Description

Don't mess with omnibox selection on update when the omnibox doesn't have focus. This fixes a regression in selection behavior when navigating from the NTP. BUG=247933 TEST=Visit NTP, click a tile, URL should not be selected R=msw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209839

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 1 chunk +11 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
This is the regression fix alone.
7 years, 5 months ago (2013-07-02 23:09:00 UTC) #1
msw
Please add 256789 to BUG= (that's the regression). https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode389 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:389: const ...
7 years, 5 months ago (2013-07-02 23:35:21 UTC) #2
msw
On 2013/07/02 23:35:21, msw wrote: > Please add 256789 to BUG= (that's the regression). Doh, ...
7 years, 5 months ago (2013-07-02 23:37:10 UTC) #3
Peter Kasting
https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode389 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:389: const bool was_select_all = (range.length() == text().length()); On 2013/07/02 ...
7 years, 5 months ago (2013-07-02 23:38:44 UTC) #4
msw
https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/18543012/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode389 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:389: const bool was_select_all = (range.length() == text().length()); On 2013/07/02 ...
7 years, 5 months ago (2013-07-03 00:04:07 UTC) #5
Peter Kasting
Reworked the change to check focus, since on reflection I think you're right that that's ...
7 years, 5 months ago (2013-07-03 00:16:06 UTC) #6
msw
LGTM. Nice rework; please consider changing the CL title.
7 years, 5 months ago (2013-07-03 00:30:19 UTC) #7
Peter Kasting
7 years, 5 months ago (2013-07-03 01:12:32 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r209839 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698