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

Issue 301243018: Fix issue with Virtual vs. real URLs. (Closed)

Created:
6 years, 6 months ago by wjmaclean
Modified:
6 years, 6 months ago
Reviewers:
jam, Peter Kasting
CC:
chromium-reviews, darin-cc_chromium.org, Fady Samuel
Visibility:
Public.

Description

Fix issue with Virtual vs. real URLs. In r273854 a regression was introduced in which HostZoomMapImpl::SetZoomLevelForWebContents() used a virtual url for setting page zoom, when the real url is required. This CL fixes that by calling GetLastCommittedEntry() on the WebContents navigation controller, instead of calling it directly on the WebContents; the latter returns a virtual url. BUG=379622 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275268

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address comments. #

Total comments: 3

Patch Set 3 : Modify entry checking in SetZoomLevel(). #

Total comments: 1

Patch Set 4 : Remove extra spaces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M content/browser/host_zoom_map_impl.cc View 1 2 3 2 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
wjmaclean
Not sure who to ask for a review here, so please feel free to pass ...
6 years, 6 months ago (2014-06-02 20:33:02 UTC) #1
Peter Kasting
https://codereview.chromium.org/301243018/diff/1/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/301243018/diff/1/content/browser/host_zoom_map_impl.cc#newcode245 content/browser/host_zoom_map_impl.cc:245: web_contents_impl.GetController().GetLastCommittedEntry()->GetURL(); (1) Are we guaranteed to have a committed ...
6 years, 6 months ago (2014-06-02 20:38:53 UTC) #2
wjmaclean
On 2014/06/02 20:38:53, Peter Kasting wrote: > https://codereview.chromium.org/301243018/diff/1/content/browser/host_zoom_map_impl.cc > File content/browser/host_zoom_map_impl.cc (right): > > https://codereview.chromium.org/301243018/diff/1/content/browser/host_zoom_map_impl.cc#newcode245 ...
6 years, 6 months ago (2014-06-02 21:41:16 UTC) #3
Peter Kasting
https://codereview.chromium.org/301243018/diff/40001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/301243018/diff/40001/content/browser/host_zoom_map_impl.cc#newcode230 content/browser/host_zoom_map_impl.cc:230: if (entry) So, when I asked if we were ...
6 years, 6 months ago (2014-06-02 21:46:55 UTC) #4
wjmaclean
On 2014/06/02 21:46:55, Peter Kasting wrote: > https://codereview.chromium.org/301243018/diff/40001/content/browser/host_zoom_map_impl.cc > File content/browser/host_zoom_map_impl.cc (right): > > https://codereview.chromium.org/301243018/diff/40001/content/browser/host_zoom_map_impl.cc#newcode230 ...
6 years, 6 months ago (2014-06-02 22:11:09 UTC) #5
Peter Kasting
On 2014/06/02 22:11:09, wjmaclean wrote: > OK. I'll see if I can figure out if ...
6 years, 6 months ago (2014-06-02 22:13:08 UTC) #6
wjmaclean
On 2014/06/02 22:13:08, Peter Kasting wrote: > On 2014/06/02 22:11:09, wjmaclean wrote: > > OK. ...
6 years, 6 months ago (2014-06-04 20:00:20 UTC) #7
Peter Kasting
https://codereview.chromium.org/301243018/diff/60001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/301243018/diff/60001/content/browser/host_zoom_map_impl.cc#newcode233 content/browser/host_zoom_map_impl.cc:233: url = entry->GetURL(); Nit: You still have an extra ...
6 years, 6 months ago (2014-06-04 20:03:39 UTC) #8
wjmaclean
On 2014/06/04 20:03:39, Peter Kasting wrote: > https://codereview.chromium.org/301243018/diff/60001/content/browser/host_zoom_map_impl.cc > File content/browser/host_zoom_map_impl.cc (right): > > https://codereview.chromium.org/301243018/diff/60001/content/browser/host_zoom_map_impl.cc#newcode233 ...
6 years, 6 months ago (2014-06-04 20:32:51 UTC) #9
wjmaclean
On 2014/06/04 20:32:51, wjmaclean wrote: > On 2014/06/04 20:03:39, Peter Kasting wrote: > > > ...
6 years, 6 months ago (2014-06-05 13:15:57 UTC) #10
Peter Kasting
On 2014/06/05 13:15:57, wjmaclean wrote: > What do you think, should we try landing this? ...
6 years, 6 months ago (2014-06-05 17:45:40 UTC) #11
Peter Kasting
(LGTM)
6 years, 6 months ago (2014-06-05 18:15:46 UTC) #12
jam
rubberstamp lgtm
6 years, 6 months ago (2014-06-05 19:06:05 UTC) #13
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 6 months ago (2014-06-05 19:06:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/301243018/80001
6 years, 6 months ago (2014-06-05 19:11:47 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 23:13:35 UTC) #16
Message was sent while issue was closed.
Change committed as 275268

Powered by Google App Engine
This is Rietveld 408576698