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

Issue 2455653005: Revert "Revert of [NoStatePrefetch] Kill renderer after preload scanning (patchset #12 id:240001 of… (Closed)

Created:
4 years, 1 month ago by pasko
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+prerender_chromium.org, blink-reviews-dom_chromium.org, tburkard+watch_chromium.org, sof, eae+blinkwatch, Yoav Weiss, gavinp+prer_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: [NoStatePrefetch] Kill renderer after preload scanning Remove the inherently flaky test NoStatePrefetchBrowserTest.OpenTaskManagerBeforePrefetch and revert the following revert: > 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} > Committed: https://crrev.com/f69bf24f0861768f03628206668ddb84f55dc8d4 > Cr-Commit-Position: refs/heads/master@{#427974} TBR=jochen@chromium.org,csharrison@chromium.org,mattcary@chromium.org,mkwst@chromium.org,pasko@chromium.org BUG=632361, 649632 Committed: https://crrev.com/07afa9f65f71178f9be52e2738303eee3c9fdb0d Cr-Commit-Position: refs/heads/master@{#428027}

Patch Set 1 : original #

Patch Set 2 : Remove NoStatePrefetchBrowserTest.OpenTaskManagerBeforePrefetch #

Patch Set 3 : rebased #

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

Dependent Patchsets:

Messages

Total messages: 18 (10 generated)
pasko
droger: please do a sanity check others: this will be trivial and TBR
4 years, 1 month ago (2016-10-27 11:56:58 UTC) #4
droger
lgtm Why remove over disable? There is no hope to make it work?
4 years, 1 month ago (2016-10-27 11:58:59 UTC) #5
pasko
On 2016/10/27 11:58:59, droger wrote: > lgtm > > Why remove over disable? There is ...
4 years, 1 month ago (2016-10-27 12:20:00 UTC) #6
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/2455653005/20001
4 years, 1 month ago (2016-10-27 12:43:13 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/browser/prerender/prerender_final_status.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 1 month ago (2016-10-27 13:18:07 UTC) #11
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/2455653005/40001
4 years, 1 month ago (2016-10-27 13:30:07 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/07afa9f65f71178f9be52e2738303eee3c9fdb0d Cr-Commit-Position: refs/heads/master@{#428027}
4 years, 1 month ago (2016-10-27 15:03:07 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 15:03:13 UTC) #18
Message was sent while issue was closed.
Failed to apply the patch.
On branch working_branch
Your branch is up-to-date with 'origin/refs/pending/heads/master'.
nothing to commit, working tree clean

Powered by Google App Engine
This is Rietveld 408576698