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

Issue 5697003: Fixes bug in instant where we wouldn't initially tell the page the (Closed)

Created:
10 years ago by sky
Modified:
9 years, 7 months ago
Reviewers:
tonyg, tonyg_google
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fixes bug in instant where we wouldn't initially tell the page the real bounds of the omnibox. The bug occurred because we didn't initially send down the bounds so that when the init script ran it sent a bounds of 0x0. When the browser then processed the response that the page supported instant it incorrectly assumed the page was told the right bounds. BUG=65463 TEST=see bug (specifcally comment 5). this is now covered by an interactive ui test as well. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69043

Patch Set 1 #

Patch Set 2 : Always track omnibox bounds #

Patch Set 3 : git add old_api.html #

Total comments: 1

Patch Set 4 : Update test for new API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -16 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 3 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/instant/instant_loader.cc View 7 chunks +23 lines, -11 lines 0 comments Download
A chrome/test/data/instant/old_api.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sky
10 years ago (2010-12-10 18:59:00 UTC) #1
tonyg_google
On 2010/12/10 18:59:00, sky wrote: LGTM
10 years ago (2010-12-10 19:05:33 UTC) #2
sky
I also needed to update InstantController as it wasn't recording the bounds when it should ...
10 years ago (2010-12-10 23:31:58 UTC) #3
tonyg
LGTM http://codereview.chromium.org/5697003/diff/7001/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): http://codereview.chromium.org/5697003/diff/7001/chrome/browser/instant/instant_browsertest.cc#newcode255 chrome/browser/instant/instant_browsertest.cc:255: true, "window.validHeight", What do you think about replacing ...
10 years ago (2010-12-11 00:44:17 UTC) #4
sky
10 years ago (2010-12-13 18:35:43 UTC) #5
On 2010/12/11 00:44:17, tonyg wrote:
> LGTM
> 
>
http://codereview.chromium.org/5697003/diff/7001/chrome/browser/instant/insta...
> File chrome/browser/instant/instant_browsertest.cc (right):
> 
>
http://codereview.chromium.org/5697003/diff/7001/chrome/browser/instant/insta...
> chrome/browser/instant/instant_browsertest.cc:255: true, "window.validHeight",
> What do you think about replacing this with a test for the new API (ie.
> window.searchBox.{x,y,width,height}) or if you want this one add a new one
along
> side. If you do that, there's a TODO on line 168 that can be killed.

I added coverage in this test along with a TODO to update it when we nuke the
old API. I couldn't write an entirely new test as that requires 66104 to be
fixed.

  -Scott

Powered by Google App Engine
This is Rietveld 408576698