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

Issue 2242493002: Send RenderViewReady when a RVH is reused and becomes active. (Closed)

Created:
4 years, 4 months ago by alexmos
Modified:
4 years, 4 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send RenderViewReady when a RVH is reused and becomes active. Normally, RenderViewHostDelegate::RenderViewReady is dispatched whenever a RenderView is created from RVHI::CreateRenderView (as soon as its process is ready). However, if we reused a RenderViewHost which was previously swapped out for a new navigation, which made the RenderViewHost active, the RenderViewReady was not dispatched. One of the consumers of the corresponding WebContentsObserver::RenderViewReady method was the SadTabHelper. This meant that if a tab was showing a sad tab, and a subsequent navigation reused a RVH bringing it into an active state, the sad tab was not hidden. To fix this, this CL dispatches RenderViewReady in that case. BUG=591984 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/61e1fcd02e595f2e882f9e702f69f3363ca9ae6b Cr-Commit-Position: refs/heads/master@{#411436}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Charlie's nit and Windows test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -8 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +15 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 2 chunks +43 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
alexmos
Charlie, can you please take a look? This is the short-term fix. Nasko and I ...
4 years, 4 months ago (2016-08-11 18:06:56 UTC) #5
Charlie Reis
LGTM! On 2016/08/11 18:06:56, alexmos wrote: > Charlie, can you please take a look? > ...
4 years, 4 months ago (2016-08-11 18:55:53 UTC) #8
alexmos
Thanks! https://codereview.chromium.org/2242493002/diff/1/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): https://codereview.chromium.org/2242493002/diff/1/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode2862 content/browser/frame_host/render_frame_host_manager_browsertest.cc:2862: base::TERMINATION_STATUS_PROCESS_WAS_KILLED); On 2016/08/11 18:55:52, Charlie Reis wrote: > ...
4 years, 4 months ago (2016-08-11 21:34:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2242493002/20001
4 years, 4 months ago (2016-08-11 21:35:43 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 23:29:14 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 23:32:05 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/61e1fcd02e595f2e882f9e702f69f3363ca9ae6b
Cr-Commit-Position: refs/heads/master@{#411436}

Powered by Google App Engine
This is Rietveld 408576698