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

Issue 2060313002: Navigation throttle for the Safe Browsing Subresource Filter. (Closed)

Created:
4 years, 6 months ago by melandory
Modified:
4 years, 5 months ago
Reviewers:
clamy, engedy
CC:
nasko, Mike West, battre, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@pre-tab-activation
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Navigation throttle for the Safe Browsing Subresource Filter. Adds the SubresourceFilterNavigationThrottle which is responsible for tracking the redirects, which is happening after Safe Browsing detects that the page which is being load contains deceptive embedded content and appends such redirects to the per-tab list. After navigation is finished, SubresourceFilterNavigationThrottle passes information if deceptive embedded content should be filtered. BUG=609747 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/fd0013bc02112d3c70bdce2bac249f31685042dc Cr-Commit-Position: refs/heads/master@{#406840}

Patch Set 1 : Navigation throttle for the Safe Browsing Subresource Filter. #

Total comments: 1

Patch Set 2 : Comment to SubresourceFilterNavigationThrotle explaining its purpose. #

Total comments: 40

Patch Set 3 : comments #

Patch Set 4 : comments #

Total comments: 10

Patch Set 5 : rebase && comments #

Total comments: 4

Patch Set 6 : clamy@ comments #

Total comments: 40

Patch Set 7 : some battre@ comments #

Total comments: 26

Patch Set 8 : adressing engedy@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -12 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M components/subresource_filter.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -5 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -5 lines 0 comments Download
A components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A components/subresource_filter/content/browser/subresource_filter_navigation_throttle.cc View 1 2 3 4 5 6 7 1 chunk +67 lines, -0 lines 0 comments Download
A components/subresource_filter/content/browser/subresource_filter_navigation_throttle_unittests.cc View 1 2 3 4 5 6 7 1 chunk +280 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 99 (64 generated)
melandory
clamy@chromium.org and nasko@chromium.org for navigation throttle parts, engedy@ for subresource filter parts.
4 years, 6 months ago (2016-06-13 15:06:11 UTC) #3
melandory
clamy@chromium.org and nasko@chromium.org for navigation throttle parts, engedy@ for subresource filter parts.
4 years, 6 months ago (2016-06-13 15:06:14 UTC) #4
melandory
friendly ping
4 years, 6 months ago (2016-06-14 13:17:41 UTC) #6
melandory
Please take a look, thanks!
4 years, 6 months ago (2016-06-15 09:33:27 UTC) #7
clamy
Thanks! https://codereview.chromium.org/2060313002/diff/60001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2060313002/diff/60001/content/public/browser/navigation_handle.h#newcode126 content/public/browser/navigation_handle.h:126: // called before ReadyToCommitNavigation is dispatched. This is ...
4 years, 6 months ago (2016-06-15 10:03:41 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060313002/80001
4 years, 6 months ago (2016-06-23 10:21:29 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/2387)
4 years, 6 months ago (2016-06-23 10:24:43 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060313002/160001
4 years, 6 months ago (2016-06-23 13:15:57 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/233154)
4 years, 6 months ago (2016-06-23 13:29:18 UTC) #23
melandory
On 2016/06/23 13:29:18, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 6 months ago (2016-06-23 21:05:31 UTC) #29
engedy
Looking good, there is one thing I would like to understand and test more, which ...
4 years, 6 months ago (2016-06-23 22:34:18 UTC) #30
melandory
clamy@, can you also take a look?
4 years, 6 months ago (2016-06-24 10:22:40 UTC) #31
clamy
https://codereview.chromium.org/2060313002/diff/260001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2060313002/diff/260001/chrome/browser/chrome_content_browser_client.cc#newcode2903 chrome/browser/chrome_content_browser_client.cc:2903: if (handle->IsInMainFrame() && handle->GetURL().SchemeIsHTTPOrHTTPS()) { Put a TODO indicating ...
4 years, 6 months ago (2016-06-24 12:13:38 UTC) #32
Mike West
Quick drive-by: https://codereview.chromium.org/2060313002/diff/260001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2060313002/diff/260001/content/browser/frame_host/navigation_handle_impl.cc#newcode186 content/browser/frame_host/navigation_handle_impl.cc:186: CHECK(state_ >= READY_TO_COMMIT || state_ == WILL_PROCESS_RESPONSE) ...
4 years, 6 months ago (2016-06-24 14:46:32 UTC) #34
melandory
https://codereview.chromium.org/2060313002/diff/260001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2060313002/diff/260001/chrome/browser/chrome_content_browser_client.cc#newcode2903 chrome/browser/chrome_content_browser_client.cc:2903: if (handle->IsInMainFrame() && handle->GetURL().SchemeIsHTTPOrHTTPS()) { On 2016/06/24 12:13:38, clamy ...
4 years, 6 months ago (2016-06-25 01:46:11 UTC) #35
melandory
clamy@, PTAL. Thanks!
4 years, 5 months ago (2016-06-27 13:22:20 UTC) #36
clamy
@melandory: I'm waiting for an agreement on https://codereview.chromium.org/2097083002/ and its landing since your CL will ...
4 years, 5 months ago (2016-06-27 13:24:59 UTC) #37
melandory
On 2016/06/27 13:24:59, clamy wrote: > @melandory: I'm waiting for an agreement on > https://codereview.chromium.org/2097083002/ ...
4 years, 5 months ago (2016-06-27 13:29:40 UTC) #38
Mike West
On 2016/06/27 at 13:29:40, melandory wrote: > On 2016/06/27 13:24:59, clamy wrote: > > @melandory: ...
4 years, 5 months ago (2016-06-28 11:07:35 UTC) #39
nasko
https://codereview.chromium.org/2060313002/diff/300001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2060313002/diff/300001/chrome/browser/chrome_content_browser_client.cc#newcode2907 chrome/browser/chrome_content_browser_client.cc:2907: // pre-PlzNavigate world (tracking bug: crbug.com/621856). nit: https://crbug... https://codereview.chromium.org/2060313002/diff/300001/components/subresource_filter/content/browser/subresource_filter_navigation_throttle.cc ...
4 years, 5 months ago (2016-06-28 22:12:36 UTC) #40
melandory
PTAL, thanks https://codereview.chromium.org/2060313002/diff/300001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2060313002/diff/300001/chrome/browser/chrome_content_browser_client.cc#newcode2907 chrome/browser/chrome_content_browser_client.cc:2907: // pre-PlzNavigate world (tracking bug: crbug.com/621856). On ...
4 years, 5 months ago (2016-07-01 07:10:49 UTC) #42
clamy
Thanks! Lgtm with nits. https://codereview.chromium.org/2060313002/diff/340001/components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h File components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h (right): https://codereview.chromium.org/2060313002/diff/340001/components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h#newcode27 components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h:27: // doesn't nit: line break ...
4 years, 5 months ago (2016-07-01 11:48:51 UTC) #43
melandory
Dominic, can you take a look (unfortunately, engedy@ did already one pass, but since I'm ...
4 years, 5 months ago (2016-07-01 12:05:02 UTC) #45
battre
Hi. Sorry, I have a ton of nits and some suggested refactorings that would make ...
4 years, 5 months ago (2016-07-01 15:51:37 UTC) #46
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-18 13:40:08 UTC) #50
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-18 13:46:20 UTC) #56
melandory
https://codereview.chromium.org/2060313002/diff/360001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2060313002/diff/360001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode35 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:35: // WebContents and manufactures the per-frame ContentSubresourceFilterDrivers. On 2016/07/01 ...
4 years, 5 months ago (2016-07-18 15:16:48 UTC) #57
melandory
engedy@, can you please take a look?
4 years, 5 months ago (2016-07-19 09:35:10 UTC) #60
engedy
LGTM on components/subresource_filter/ % comments. https://codereview.chromium.org/2060313002/diff/360001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/2060313002/diff/360001/components/components_tests.gyp#newcode811 components/components_tests.gyp:811: 'subresource_filter/content/browser/subresource_filter_navigation_throttle_unittests.cc', nit: s/unittests/unittest/ https://codereview.chromium.org/2060313002/diff/360001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc ...
4 years, 5 months ago (2016-07-19 11:27:03 UTC) #61
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 12:16:58 UTC) #64
melandory
https://codereview.chromium.org/2060313002/diff/440001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2060313002/diff/440001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode60 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:60: OnMainResourceMatchedSafeBrowsingBlacklist( On 2016/07/19 11:27:02, engedy wrote: > Could you ...
4 years, 5 months ago (2016-07-20 13:17:35 UTC) #68
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 13:17:40 UTC) #70
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/2060313002/540001
4 years, 5 months ago (2016-07-21 14:09:17 UTC) #96
commit-bot: I haz the power
Committed patchset #8 (id:540001)
4 years, 5 months ago (2016-07-21 14:12:25 UTC) #97
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 14:14:36 UTC) #99
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fd0013bc02112d3c70bdce2bac249f31685042dc
Cr-Commit-Position: refs/heads/master@{#406840}

Powered by Google App Engine
This is Rietveld 408576698