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

Issue 1900583002: Abandon prerenders upon render thread shutdown. (Closed)

Created:
4 years, 8 months ago by sof
Modified:
4 years, 8 months ago
Reviewers:
tkent, haraken, gavinp, cbentzel
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, gavinp+prerender_chromium.org, tburkard+watch_chromium.org, Yoav Weiss, gavinp+prer_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Abandon prerenders upon render thread shutdown. Have PrerenderDispatcher abandon its current prerenders when the renderer is about to shut down -- doing so later isn't supported as Blink is about to disappear. Along with this, on the Blink side, weaken the reference that a Prerender object keep to its PrerenderClient. The latter should keep the former alive, but not vice versa -- if no one is referring to the client within Blink, it can be GCed. This avoids prolonged retention of prerendering Blink objects. R= BUG=604325 Committed: https://crrev.com/dee5cd76d7b11963fc8f404db008f169bef62b74 Cr-Commit-Position: refs/heads/master@{#387912}

Patch Set 1 #

Total comments: 1

Patch Set 2 : abandon prerenders upon PrerenderDispatcher::OnRenderProcessShutdown() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M chrome/renderer/prerender/prerender_dispatcher.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/prerender/prerender_dispatcher.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/Prerender.h View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 18 (6 generated)
sof
please take a look. This prevents shutdown crashes upon e.g. the user closing the browser. ...
4 years, 8 months ago (2016-04-18 11:33:53 UTC) #2
haraken
Another option would be to make RenderThreadImpl::shutdown call detachRenderer before it calls blink::shutdown?
4 years, 8 months ago (2016-04-18 12:50:41 UTC) #3
sof
On 2016/04/18 12:50:41, haraken wrote: > Another option would be to make RenderThreadImpl::shutdown call detachRenderer ...
4 years, 8 months ago (2016-04-18 13:05:25 UTC) #4
sof
On 2016/04/18 13:05:25, sof wrote: > On 2016/04/18 12:50:41, haraken wrote: > > Another option ...
4 years, 8 months ago (2016-04-18 13:21:59 UTC) #5
haraken
LGTM
4 years, 8 months ago (2016-04-18 14:23:39 UTC) #7
sof
+cbentzel@ to reviewer list - ptal? (not sure if gavinp@ is actively reviewing atm.)
4 years, 8 months ago (2016-04-18 14:44:56 UTC) #9
gavinp
On 2016/04/18 14:44:56, sof wrote: > +cbentzel@ to reviewer list - ptal? (not sure if ...
4 years, 8 months ago (2016-04-18 15:16:09 UTC) #10
gavinp
lgtm.
4 years, 8 months ago (2016-04-18 15:17:42 UTC) #11
sof
On 2016/04/18 15:17:42, gavinp wrote: > lgtm. many thanks
4 years, 8 months ago (2016-04-18 15:29:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900583002/20001
4 years, 8 months ago (2016-04-18 15:29:56 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-18 15:33:51 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 15:35:19 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dee5cd76d7b11963fc8f404db008f169bef62b74
Cr-Commit-Position: refs/heads/master@{#387912}

Powered by Google App Engine
This is Rietveld 408576698