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

Issue 2339733003: Transform redirect chains for the Safe Browsing subresource filter. (Closed)

Created:
4 years, 3 months ago by engedy
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transform redirect chains for the Safe Browsing subresource filter. There has been a discrepancy between how the subresource filter and the rest of Safe Browsing defines the meaning of `redirect urls`. For the redirect chain A -> B -> C, the SafeBrowsingResourceThrottle considers A as the |original_url| and [B, C] as |redirect_urls|. In contrast, the subresource filter expects C as the resource URL and [A, B] as redirect URLs. This CL performs the correct transformation on the |redirect_urls| list before passing it from the SafeBrowsingResourceThrottle to the subresource filter. Plus, it also avoid calling out to the ContentSubresourceFilterDriverFactory in case the unsafe resource is not a main frame document. BUG=646800, 609747 Committed: https://crrev.com/6cd4e4e728fa5d61e4ae886a8574bc4c893784e1 Cr-Commit-Position: refs/heads/master@{#419373}

Patch Set 1 #

Patch Set 2 : Obtain reference to factory within is-subresource check. #

Total comments: 2

Patch Set 3 : Use std::prev(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M chrome/browser/renderer_host/safe_browsing_resource_throttle.cc View 1 2 2 chunks +23 lines, -7 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
engedy
@Tanja, Nathan, could you please take a close look? In a follow-up CL, I am ...
4 years, 3 months ago (2016-09-14 12:41:26 UTC) #7
melandory
On 2016/09/14 12:41:26, engedy wrote: > @Tanja, Nathan, could you please take a close look? ...
4 years, 3 months ago (2016-09-14 13:51:12 UTC) #10
Nathan Parker
https://codereview.chromium.org/2339733003/diff/40001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2339733003/diff/40001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode318 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:318: --resource.redirect_urls.end()); How does decrement work on a const iterator? ...
4 years, 3 months ago (2016-09-15 21:19:45 UTC) #11
Nathan Parker
oops, I now see your comment about adding tests later. nm on that.
4 years, 3 months ago (2016-09-15 21:20:23 UTC) #12
engedy
https://codereview.chromium.org/2339733003/diff/40001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc File chrome/browser/renderer_host/safe_browsing_resource_throttle.cc (right): https://codereview.chromium.org/2339733003/diff/40001/chrome/browser/renderer_host/safe_browsing_resource_throttle.cc#newcode318 chrome/browser/renderer_host/safe_browsing_resource_throttle.cc:318: --resource.redirect_urls.end()); On 2016/09/15 21:19:45, Nathan Parker wrote: > How ...
4 years, 3 months ago (2016-09-16 09:04:43 UTC) #15
Nathan Parker
lgtm
4 years, 3 months ago (2016-09-16 17:50:20 UTC) #18
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/2339733003/60001
4 years, 3 months ago (2016-09-16 18:26:33 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/261253)
4 years, 3 months ago (2016-09-16 18:38:11 UTC) #23
engedy
Scott, could you please review for OWNER's approval?
4 years, 3 months ago (2016-09-16 19:33:49 UTC) #25
sky
+mmenke
4 years, 3 months ago (2016-09-16 21:35:00 UTC) #28
mmenke
On 2016/09/16 21:35:00, sky wrote: > +mmenke LGTM
4 years, 3 months ago (2016-09-16 21:47:10 UTC) #29
sky
Rubber stamp until Matt lands OWNERS/move LGTM
4 years, 3 months ago (2016-09-16 21:55:53 UTC) #30
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/2339733003/60001
4 years, 3 months ago (2016-09-17 05:59:30 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-17 19:37:40 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-17 19:40:56 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6cd4e4e728fa5d61e4ae886a8574bc4c893784e1
Cr-Commit-Position: refs/heads/master@{#419373}

Powered by Google App Engine
This is Rietveld 408576698