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

Issue 2452313002: Revert of [NoStatePrefetch] Kill renderer after preload scanning (Closed)

Created:
4 years, 1 month ago by foolip
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+prer_chromium.org, gavinp+prerender_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, loading-reviews+parser_chromium.org, loading-reviews_chromium.org, nasko+codewatch_chromium.org, rwlbuis, sof, tburkard+watch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of [NoStatePrefetch] Kill renderer after preload scanning (patchset #12 id:240001 of https://codereview.chromium.org/2411863002/ ) Reason for revert: "NoStatePrefetchBrowserTest.OpenTaskManagerBeforePrefetch" became flaky shortly after this landed. BUG=659697 Original issue's description: > [NoStatePrefetch] Kill renderer after preload scanning > > The design doc is linked in the first bug. Main goal: remove Prerender. > > Currently NoState Prefetch uses the same logic to manage renderers as the > PrerenderManager. Prefetch code is still living in PrerenderManager, separating > the code from there is planned after we finalize on how much of the > functionality of PrerenderManager is needed. > > This is the first tweak in the renderer lifetime: the renderer asks to be killed > as soon as the main resource is fully preload-scanned and all possible > subresources are requested, special Prerendering FinalStatus is recorded to allow: > * testing > * provide a hint that a new prefetch can be started soon > > Browsertest changes: > > * TestPrerender now keeps FinalStatus for longer, to be able to verify that it > is correct even after the TestPrerenderContents is destroyed. > > * Prefetch browsertests wait only for creation of PrerenderContents, Prerender > tests have more waiting for page loads on top of that > > * PrerenderTestUrlImpl is removed to eliminate one hop through protected method > in the parent class, which also simplified the prefetch side of the tests: no > need to mention how many page loads to wait for > > * Disabled two tests that load a non-HTML document, correctly killing the > renderer will be done in later changes. > > BUG=632361, 649632 > > Committed: https://crrev.com/66351bd0a0fc8740749663fe765a301e1a175538 > Cr-Commit-Position: refs/heads/master@{#427678} TBR=jochen@chromium.org,csharrison@chromium.org,droger@chromium.org,mattcary@chromium.org,mkwst@chromium.org,pasko@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=632361, 649632 Committed: https://crrev.com/f69bf24f0861768f03628206668ddb84f55dc8d4 Cr-Commit-Position: refs/heads/master@{#427974}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -294 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 2 chunks +13 lines, -35 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_final_status.cc View 1 chunk +56 lines, -57 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/prerender/prerender_message_filter.h View 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_message_filter.cc View 5 chunks +1 line, -20 lines 0 comments Download
M chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc View 19 chunks +74 lines, -81 lines 0 comments Download
M chrome/browser/prerender/prerender_test_utils.h View 9 chunks +34 lines, -28 lines 0 comments Download
M chrome/browser/prerender/prerender_test_utils.cc View 8 chunks +34 lines, -27 lines 0 comments Download
M chrome/common/prerender_messages.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/prerender/prerender_dispatcher.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/prerender/prerender_dispatcher.cc View 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebPrerenderingSupport.h View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
foolip
Created Revert of [NoStatePrefetch] Kill renderer after preload scanning
4 years, 1 month ago (2016-10-27 09:07:12 UTC) #2
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/2452313002/1
4 years, 1 month ago (2016-10-27 09:07:35 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-27 09:08:42 UTC) #5
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 09:11:00 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f69bf24f0861768f03628206668ddb84f55dc8d4
Cr-Commit-Position: refs/heads/master@{#427974}

Powered by Google App Engine
This is Rietveld 408576698