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

Issue 63125: Fix a flicker of the URL bar after you enter it. Since no tab contents was... (Closed)

Created:
11 years, 8 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a flicker of the URL bar after you enter it. The code inBrowser::OpenURLFromTab was not using the current tab when no source was specified. This means we didn't update the correct tab. This change uses the computed current URL for updating, and also clarifies the comments in the TabContentsDelegate about what NULL means. BUG=9799 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13458

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M chrome/browser/browser.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
brettw
11 years, 8 months ago (2009-04-08 17:02:22 UTC) #1
brettw
I removed the assert. This function is used by about one brazillion unit tests, and ...
11 years, 8 months ago (2009-04-08 17:41:15 UTC) #2
Peter Kasting
http://codereview.chromium.org/63125/diff/1003/1005 File chrome/browser/browser.cc (right): http://codereview.chromium.org/63125/diff/1003/1005#newcode639 Line 639: OpenURLFromTab(GetSelectedTabContents(), Did you also audit other callers of ...
11 years, 8 months ago (2009-04-08 19:34:42 UTC) #3
brettw
I figured out the actual problem this time. After studying calls to OpenURL, I realized ...
11 years, 8 months ago (2009-04-08 20:41:51 UTC) #4
Peter Kasting
11 years, 8 months ago (2009-04-08 20:44:47 UTC) #5
LGTM on the code change.  Is there any way to add a UI regression test for this?
 I don't know one offhand but maybe you're smarter than me.

http://codereview.chromium.org/63125/diff/14/1011
File chrome/browser/tab_contents/tab_contents_delegate.h (right):

http://codereview.chromium.org/63125/diff/14/1011#newcode32
Line 32: void OpenURL(const GURL& url, const GURL& referrer,
Was it safe to un-virtualize this?  No implementers actually overrode it?

Powered by Google App Engine
This is Rietveld 408576698