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

Issue 6532031: Fix for swapping in prerendered RenderViews with provisional data sources (Closed)

Created:
9 years, 10 months ago by mmenke
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, jam
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, gavinp
Visibility:
Public.

Description

The RenderView currently only updates the navigation state for the currently displayed data source in OnDisplayPrerenderedPage. If there's a provisional data source, it still thinks its being prerendered when it becomes the main data source. This CL fixes that issue. To do this, it moves the |is_prerendering_| flag over to the RenderView. While not a strictly necessary design change, things are a bit less bug-prone this way. Also changes how |was_started_as_prerender| is set. BUG=73173 TEST=none, yet (manual test: Go to http://peter.sh and refresh it a few times, with prerender enabled and a debug build. Notice lack of DCHECK assertion in OnDisplayPrerenderedPage) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75903

Patch Set 1 : '' #

Patch Set 2 : Fix double setting of was_started_as_prerender #

Patch Set 3 : Remove some unneeded code #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -44 lines) Patch
M chrome/renderer/navigation_state.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/renderer/navigation_state.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/renderer/render_view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 5 chunks +22 lines, -27 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
mmenke
I'm not quite sure how to create a browser test for this without having some ...
9 years, 10 months ago (2011-02-17 22:16:12 UTC) #1
cbentzel
LGTM What are the cases where double-counting will happen? http://codereview.chromium.org/6532031/diff/8001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6532031/diff/8001/chrome/renderer/render_view.cc#newcode4715 chrome/renderer/render_view.cc:4715: ...
9 years, 10 months ago (2011-02-18 13:56:47 UTC) #2
mmenke
On 2011/02/18 13:56:47, cbentzel wrote: > LGTM > > What are the cases where double-counting ...
9 years, 10 months ago (2011-02-18 14:53:04 UTC) #3
jam
I don't understand this code, but changes to RV are fine to me.
9 years, 10 months ago (2011-02-18 23:07:19 UTC) #4
mmenke
On 2011/02/18 23:07:19, John Abd-El-Malek wrote: > I don't understand this code, but changes to ...
9 years, 10 months ago (2011-02-18 23:20:20 UTC) #5
mmenke
On 2011/02/18 23:20:20, Matt Menke wrote: > On 2011/02/18 23:07:19, John Abd-El-Malek wrote: > > ...
9 years, 10 months ago (2011-02-18 23:41:02 UTC) #6
jam
9 years, 10 months ago (2011-02-23 17:44:38 UTC) #7
thanks for the explanation :)

Powered by Google App Engine
This is Rietveld 408576698