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

Issue 320863002: Don't assume WebContents has a LastCommittedEntry when setting zoom. (Closed)

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

Description

Don't assume WebContents has a LastCommittedEntry when setting zoom. In HostZoomMapImpl::SetZoomLevelForWebContents() we currently make the assumption that the WebContents passed in will always have a non-null last-committed navigation entry, but this leads to failures on the fuzzing tests. This CL removes that assumption, and ignores attempts to set zoom if no such entry exists. BUG=382320 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276040

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

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

Messages

Total messages: 12 (0 generated)
wjmaclean
https://codereview.chromium.org/320863002/diff/1/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/320863002/diff/1/content/browser/host_zoom_map_impl.cc#newcode254 content/browser/host_zoom_map_impl.cc:254: url = entry->GetURL(); Actually, this should be GURL url ...
6 years, 6 months ago (2014-06-09 17:35:59 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/320863002/diff/1/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/320863002/diff/1/content/browser/host_zoom_map_impl.cc#newcode245 content/browser/host_zoom_map_impl.cc:245: } else { Tiny nit: For parallel structure ...
6 years, 6 months ago (2014-06-09 18:17:57 UTC) #2
jam
lgtm
6 years, 6 months ago (2014-06-09 20:00:21 UTC) #3
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 6 months ago (2014-06-09 20:20:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/320863002/20001
6 years, 6 months ago (2014-06-09 20:29:26 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 09:00:30 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 12:13:17 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/150242)
6 years, 6 months ago (2014-06-10 12:13:18 UTC) #8
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 6 months ago (2014-06-10 12:29:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/320863002/20001
6 years, 6 months ago (2014-06-10 12:36:38 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 14:41:04 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 15:47:45 UTC) #12
Message was sent while issue was closed.
Change committed as 276040

Powered by Google App Engine
This is Rietveld 408576698