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

Issue 6334131: Turn off safebrowsing for PREFETCH requests (Closed)

Created:
9 years, 10 months ago by gavinp
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Turn off safebrowsing for PREFETCH requests Safe browsing doesn't need to be on for prefetch requests, since they go directly to cache. BUG=56582 TEST=SafeBrowsingServiceTest.Prefetch Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77640

Patch Set 1 : clean up the test a bit #

Patch Set 2 : now stop dangerous requests #

Patch Set 3 : fix includes, reorder includes #

Total comments: 8

Patch Set 4 : remediate to cbentzel + lzheng review #

Total comments: 7

Patch Set 5 : remediate to reviews #

Patch Set 6 : remove extra braces #

Total comments: 2

Patch Set 7 : improve browser test #

Total comments: 1

Patch Set 8 : clean up unit test, per pending fix to 75507 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -3 lines) Patch
M chrome/browser/renderer_host/safe_browsing_resource_handler.cc View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/test/data/safe_browsing/prefetch_malware.html View 1 chunk +38 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
gavinp
Prefetch requests cache warm only, and safebrowsing interstitials were blocking the requesting page. This patch ...
9 years, 10 months ago (2011-02-05 04:26:02 UTC) #1
gavinp
I want to double check we're not letting downloads through before I land this.
9 years, 10 months ago (2011-02-05 13:59:21 UTC) #2
gavinp
And I have; we don't get download treatment. Prefetch documents don't get separated for downloads, ...
9 years, 10 months ago (2011-02-05 18:44:49 UTC) #3
cbentzel
I'm a bit concerned about this bypassing safebrowsing checks. Does this get populated in the ...
9 years, 10 months ago (2011-02-06 10:32:03 UTC) #4
gavinp
On 2011/02/06 10:32:03, cbentzel wrote: > I'm a bit concerned about this bypassing safebrowsing checks. ...
9 years, 10 months ago (2011-02-07 03:38:49 UTC) #5
cbentzel
On 2011/02/07 03:38:49, gavinp wrote: > On 2011/02/06 10:32:03, cbentzel wrote: > > I'm a ...
9 years, 10 months ago (2011-02-07 22:33:11 UTC) #6
gavinp
This new change moves the stomping down into the safe_browsing_resource_handler, where it stomps on the ...
9 years, 10 months ago (2011-02-18 19:02:05 UTC) #7
cbentzel
Added lzheng for the safebrowsing changes. http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/resource_dispatcher_host.cc File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/resource_dispatcher_host.cc#newcode496 chrome/browser/renderer_host/resource_dispatcher_host.cc:496: if (safe_browsing_->enabled()) Nit: ...
9 years, 10 months ago (2011-02-22 15:56:03 UTC) #8
lzheng
Thanks for adding me. A small suggestion. http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/safe_browsing_resource_handler.cc File chrome/browser/renderer_host/safe_browsing_resource_handler.cc (right): http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/safe_browsing_resource_handler.cc#newcode182 chrome/browser/renderer_host/safe_browsing_resource_handler.cc:182: Instead of ...
9 years, 10 months ago (2011-02-22 19:07:18 UTC) #9
gavinp
Remediated to the latest set of reviews. Thanks! http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/resource_dispatcher_host.cc File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/6334131/diff/14003/chrome/browser/renderer_host/resource_dispatcher_host.cc#newcode496 chrome/browser/renderer_host/resource_dispatcher_host.cc:496: if ...
9 years, 10 months ago (2011-02-22 22:51:33 UTC) #10
lzheng
http://codereview.chromium.org/6334131/diff/10008/chrome/browser/renderer_host/safe_browsing_resource_handler.cc File chrome/browser/renderer_host/safe_browsing_resource_handler.cc (right): http://codereview.chromium.org/6334131/diff/10008/chrome/browser/renderer_host/safe_browsing_resource_handler.cc#newcode169 chrome/browser/renderer_host/safe_browsing_resource_handler.cc:169: next_handler_->OnResponseCompleted( I read your reply to Chris's question, but ...
9 years, 10 months ago (2011-02-23 02:19:12 UTC) #11
rvargas (doing something else)
http://codereview.chromium.org/6334131/diff/10008/chrome/browser/renderer_host/safe_browsing_resource_handler.cc File chrome/browser/renderer_host/safe_browsing_resource_handler.cc (right): http://codereview.chromium.org/6334131/diff/10008/chrome/browser/renderer_host/safe_browsing_resource_handler.cc#newcode169 chrome/browser/renderer_host/safe_browsing_resource_handler.cc:169: next_handler_->OnResponseCompleted( On 2011/02/23 02:19:12, lzheng wrote: > I read ...
9 years, 10 months ago (2011-02-23 03:49:51 UTC) #12
gavinp
Thanks for the reviews, especially Lei & Ricardo for pointing out how weird my explicit ...
9 years, 9 months ago (2011-03-07 23:26:39 UTC) #13
rvargas (doing something else)
The cancel logic LGTM.
9 years, 9 months ago (2011-03-08 01:50:39 UTC) #14
lzheng
I like this change. Thanks. http://codereview.chromium.org/6334131/diff/27005/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): http://codereview.chromium.org/6334131/diff/27005/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode406 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:406: // After adding the ...
9 years, 9 months ago (2011-03-08 18:01:34 UTC) #15
gavinp
I added another browser test per Lei's suggestion, but I exposed a bug in ui_test_utils::NavigateToURL. ...
9 years, 9 months ago (2011-03-08 22:33:03 UTC) #16
gavinp
I've now uploaded http://codereview.chromium.org/6662001/ , which fixes the race our browser test was tickling; so ...
9 years, 9 months ago (2011-03-09 21:55:20 UTC) #17
lzheng
9 years, 9 months ago (2011-03-09 22:31:39 UTC) #18
LGTM.

On 2011/03/09 21:55:20, gavinp wrote:
> I've now uploaded http://codereview.chromium.org/6662001/ , which fixes the
race
> our browser test was tickling; so this new diff is what I hope to land if that
> gets in.
> 
> What do you think?

Powered by Google App Engine
This is Rietveld 408576698