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

Issue 1978793002: RenderViewImpl::page_id_ isn't initialized for cross-process replacement navigations. (Closed)

Created:
4 years, 7 months ago by Andrey Kraynov
Modified:
4 years, 7 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderViewImpl::page_id_ isn't initialized for cross-process replacement navigations. There can be a situation, when |RenderViewImpl::page_id_| isn't initialized for a navigation that should replace the current entry. And then it will trigger a DCHECK in |RenderFrameImpl::NavigateInternal|. It happens when a new page is loaded with |should_replace_current_entry| flag set to true and a new renderer is used for this navigation (i.e. the new entry uses a different SiteInstance from the previous entry's one). BUG=611679 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/4b2ec6d51e135654911cc38d0193b221ac042a08 Cr-Commit-Position: refs/heads/master@{#394515}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address review remarks #

Total comments: 4

Patch Set 3 : Fix nits and remove testing condition. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -3 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 2 chunks +11 lines, -3 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
Andrey Kraynov
Hi! Here are some tests that fails without my patch, to demonstrate the problem. And ...
4 years, 7 months ago (2016-05-13 08:42:53 UTC) #3
Andrey Kraynov
+ creis@ PTAL
4 years, 7 months ago (2016-05-13 10:16:13 UTC) #6
Charlie Reis
Thanks for tracking this down, and for including a test! LGTM with nits. Can you ...
4 years, 7 months ago (2016-05-13 19:14:32 UTC) #7
Andrey Kraynov
On 2016/05/13 19:14:32, Charlie Reis (slow to reply) wrote: > Thanks for tracking this down, ...
4 years, 7 months ago (2016-05-13 20:28:59 UTC) #8
Andrey Kraynov
I fixed nits. Could you take another look at this CL to verify that I ...
4 years, 7 months ago (2016-05-16 08:03:12 UTC) #9
Charlie Reis
Sorry for the delayed reply. LGTM with one fix below. https://codereview.chromium.org/1978793002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1978793002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode456 ...
4 years, 7 months ago (2016-05-18 17:34:00 UTC) #12
Andrey Kraynov
And thank you again for taking your time! I will try to land this, if ...
4 years, 7 months ago (2016-05-18 18:06:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978793002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1978793002/40001
4 years, 7 months ago (2016-05-18 18:09:44 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-18 19:55:37 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 19:56:45 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4b2ec6d51e135654911cc38d0193b221ac042a08
Cr-Commit-Position: refs/heads/master@{#394515}

Powered by Google App Engine
This is Rietveld 408576698