summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 02:47:00 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 02:47:00 +0000
commite38232cafcee27c10ce182395063a35f3ca996f2 (patch)
treef60eb98f1cda0db36215c0afa744d4a14bda6992 /chrome/browser/instant
parent922ed27ba30b69a5e83e8719145997af5953697e (diff)
downloadchromium_src-e38232cafcee27c10ce182395063a35f3ca996f2.zip
chromium_src-e38232cafcee27c10ce182395063a35f3ca996f2.tar.gz
chromium_src-e38232cafcee27c10ce182395063a35f3ca996f2.tar.bz2
Don't update the instant results on the page due to omnibox popup changes
when the mouse button is down. BUG=71952 TEST=manual Review URL: http://codereview.chromium.org/6250201 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_loader.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index c8c8afb..3c27d20 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -547,6 +547,10 @@ void InstantLoader::SetOmniboxBounds(const gfx::Rect& bounds) {
if (omnibox_bounds_ == bounds)
return;
+ // Don't update the page while the mouse is down. http://crbug.com/71952
+ if (IsMouseDownFromActivate())
+ return;
+
omnibox_bounds_ = bounds;
if (preview_contents_.get() && is_showing_instant() &&
!is_waiting_for_load()) {