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

Issue 2609403007: predictors: browser test for client-side redirect. (Closed)

Created:
3 years, 11 months ago by alexilin
Modified:
3 years, 11 months ago
Reviewers:
Benoit L
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: browser test for client-side redirect. ResourcePrefetchPredictor doesn't receive the information from observers about redirects initiated from javascript. However such redirects initiate the new navigation that treated by predictor as usual. This browser test documents the current behavior that could be a subject of change. Also, this CL changes all existing redirect tests to be cross-host. Redirect to the same host could be ambiguous because of host-based learning. BUG=650253 Review-Url: https://codereview.chromium.org/2609403007 Cr-Commit-Position: refs/heads/master@{#442259} Committed: https://chromium.googlesource.com/chromium/src/+/7e5dcb16fb03140fb729fbf58b03bb02ebe9df0e

Patch Set 1 #

Total comments: 16

Patch Set 2 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -37 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc View 1 16 chunks +109 lines, -33 lines 0 comments Download
M chrome/test/data/predictors/html_subresources.html View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/predictors/javascript_redirect.html View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/predictors/javascript_redirect.js View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
alexilin
Hi Benoit, I hope you rest well! As you can remember we've discussed with Camille ...
3 years, 11 months ago (2017-01-05 17:11:46 UTC) #3
Benoit L
Thanks! Only nits. Can you also add a comment in the predictor to note that ...
3 years, 11 months ago (2017-01-09 14:31:47 UTC) #4
alexilin
https://codereview.chromium.org/2609403007/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2609403007/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode389 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:389: predictor_->StartPrefetching(main_frame_url, PrefetchOrigin::EXTERNAL); On 2017/01/09 14:31:47, Benoit L wrote: > ...
3 years, 11 months ago (2017-01-09 15:08:16 UTC) #5
Benoit L
Thanks! lgtm https://codereview.chromium.org/2609403007/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2609403007/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode389 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:389: predictor_->StartPrefetching(main_frame_url, PrefetchOrigin::EXTERNAL); On 2017/01/09 15:08:15, alexilin wrote: ...
3 years, 11 months ago (2017-01-09 15:21:03 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/2609403007/20001
3 years, 11 months ago (2017-01-09 16:15:36 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 16:20:35 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7e5dcb16fb03140fb729fbf58b03...

Powered by Google App Engine
This is Rietveld 408576698