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

Issue 7618016: Additional fixes for prerender/instant + browsing history. (Closed)

Created:
9 years, 4 months ago by cbentzel
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, Avi (use Gerrit), brettw-cc_chromium.org
Visibility:
Public.

Description

A number of issues weren't addressed with the earlier patch for prerender + browsing history, particularly for instant pages. - The "remove first entry" option used by instant was not being handled correctly when there was only one committed entry in the NavigationController. - Renderer-issued navigations which were committed in the browser but not yet known by the browser/NavigationController were being incorrectly pruned. This did not happen regularly in the prerender case, but does in the instant case, particularly when changing what's typed in the omnibox. - Some additional sanity testing to make sure that the message is sent to the correct render process. - Additional unit tests are added. BUG=89798 TEST=NavigationControllerTest.CopyStateFromAndPrune*, RenderViewTest.SetHistoryLengthAndPrune. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96724

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes #

Patch Set 3 : New tests #

Patch Set 4 : Added render_view_test #

Patch Set 5 : Small changes #

Total comments: 17

Patch Set 6 : Updates #

Patch Set 7 : Fix browser_tests #

Patch Set 8 : Minor comment fix #

Total comments: 7

Patch Set 9 : Checks for pending_render_view_host_ #

Total comments: 6

Patch Set 10 : Offset navigation disallowed #

Patch Set 11 : Wrong signature #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -57 lines) Patch
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/base/render_view_test.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/render_view_test.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -2 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_unittest.cc View 1 2 6 chunks +14 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -4 lines 1 comment Download
M content/browser/tab_contents/test_tab_contents.h View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -4 lines 0 comments Download
M content/browser/tab_contents/test_tab_contents.cc View 1 2 3 4 5 6 7 8 9 2 chunks +28 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 1 chunk +13 lines, -11 lines 1 comment Download
M content/renderer/render_view.h View 1 2 3 3 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -28 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +160 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
cbentzel
This is incomplete but I wanted you to see the changes I'm making. It's been ...
9 years, 4 months ago (2011-08-11 19:54:17 UTC) #1
Charlie Reis
Some initial thoughts. http://codereview.chromium.org/7618016/diff/1/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/7618016/diff/1/content/browser/tab_contents/tab_contents.cc#newcode606 content/browser/tab_contents/tab_contents.cc:606: // one that needs to be ...
9 years, 4 months ago (2011-08-11 20:49:24 UTC) #2
cbentzel
9 years, 4 months ago (2011-08-12 23:58:55 UTC) #3
cbentzel
http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/test_tab_contents.h File content/browser/tab_contents/test_tab_contents.h (right): http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/test_tab_contents.h#newcode75 content/browser/tab_contents/test_tab_contents.h:75: void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance, I'll need a comment for ...
9 years, 4 months ago (2011-08-13 00:09:27 UTC) #4
Charlie Reis
Just a few quick comments before I have to run. I'll try to take another ...
9 years, 4 months ago (2011-08-13 00:29:04 UTC) #5
cbentzel
http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/navigation_controller.cc File content/browser/tab_contents/navigation_controller.cc (right): http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/navigation_controller.cc#newcode906 content/browser/tab_contents/navigation_controller.cc:906: ++minimum_page_id; On 2011/08/13 00:29:04, creis wrote: > Can you ...
9 years, 4 months ago (2011-08-13 02:19:12 UTC) #6
Charlie Reis
Looking close-- thanks. http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/7618016/diff/8010/content/browser/tab_contents/tab_contents.cc#newcode605 content/browser/tab_contents/tab_contents.cc:605: DCHECK(!site_instance || rvh->site_instance() == site_instance); On ...
9 years, 4 months ago (2011-08-13 06:26:26 UTC) #7
cbentzel
+mmenke,tburkard for the prerender changes. http://codereview.chromium.org/7618016/diff/10017/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/7618016/diff/10017/content/browser/tab_contents/tab_contents.cc#newcode605 content/browser/tab_contents/tab_contents.cc:605: DCHECK(!site_instance || rvh->site_instance() == ...
9 years, 4 months ago (2011-08-13 14:31:13 UTC) #8
Charlie Reis
Have you uploaded the latest changes? I'm still seeing the patch set I looked at ...
9 years, 4 months ago (2011-08-13 16:21:56 UTC) #9
cbentzel
On 2011/08/13 16:21:56, creis wrote: > Have you uploaded the latest changes? I'm still seeing ...
9 years, 4 months ago (2011-08-13 16:41:49 UTC) #10
mmenke
Prerender changes LGTM. We should add some cross-site navigation tests to the prerender tests, too, ...
9 years, 4 months ago (2011-08-13 17:04:24 UTC) #11
Charlie Reis
Looks like the Mac compile (Clang?) needs a few changes. LGTM apart from the questions ...
9 years, 4 months ago (2011-08-13 18:39:24 UTC) #12
cbentzel
Thank you all for the timely and detailed reviews. http://codereview.chromium.org/7618016/diff/11020/content/browser/tab_contents/render_view_host_manager.cc File content/browser/tab_contents/render_view_host_manager.cc (right): http://codereview.chromium.org/7618016/diff/11020/content/browser/tab_contents/render_view_host_manager.cc#newcode667 content/browser/tab_contents/render_view_host_manager.cc:667: ...
9 years, 4 months ago (2011-08-13 21:24:28 UTC) #13
Charlie Reis
LGTM
9 years, 4 months ago (2011-08-13 22:05:41 UTC) #14
darin (slow to review)
OK, LGTM
9 years, 4 months ago (2011-08-14 03:41:37 UTC) #15
commit-bot: I haz the power
Change committed as 96724
9 years, 4 months ago (2011-08-14 16:49:22 UTC) #16
jam
9 years, 4 months ago (2011-08-15 15:59:09 UTC) #17
http://codereview.chromium.org/7618016/diff/12008/content/browser/tab_content...
File content/browser/tab_contents/tab_contents.cc (right):

http://codereview.chromium.org/7618016/diff/12008/content/browser/tab_content...
content/browser/tab_contents/tab_contents.cc:603: // cleanly. Since it's only
used when swapping in instant and prerendered
ditto

http://codereview.chromium.org/7618016/diff/12008/content/common/view_messages.h
File content/common/view_messages.h (right):

http://codereview.chromium.org/7618016/diff/12008/content/common/view_message...
content/common/view_messages.h:747: // Sent to the RenderView when a prerendered
or instant page is committed
content layer doesn't know about prerendering/instant, so the comments shouldn't
mention them.

Powered by Google App Engine
This is Rietveld 408576698