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

Issue 2696493003: Introduce SubframeNavigationFilteringThrottle (Closed)

Created:
3 years, 10 months ago by Charlie Harrison
Modified:
3 years, 9 months ago
Reviewers:
engedy, pkalinnikov
CC:
chromium-reviews, nasko+codewatch_chromium.org, darin-cc_chromium.org, jam, subresource-filter-reviews_chromium.org, creis+watch_chromium.org, clamy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce SubframeNavigationFilteringThrottle As of now, it is never injected into the throttle list. Unit tests coming in a followup. BUG=637415 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2696493003 Cr-Commit-Position: refs/heads/master@{#453375} Committed: https://chromium.googlesource.com/chromium/src/+/33e60b30fadf6d9b3b129a884e8b1b2eeec79988

Patch Set 1 #

Patch Set 2 : subframe filtering #

Patch Set 3 : fix test names #

Total comments: 18

Patch Set 4 : pkalinnikov review #

Patch Set 5 : clean up + add subsubframe test #

Patch Set 6 : Augment Call*ForTesting methods #

Patch Set 7 : fix use after stack return, make code nicer #

Total comments: 18

Patch Set 8 : engedy review #

Patch Set 9 : s/proceed2/allowed2/ (trybots prev) #

Total comments: 3

Patch Set 10 : rebase #

Patch Set 11 : slight reworking #

Patch Set 12 : rebase #

Patch Set 13 : remove tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M components/subresource_filter/content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +55 lines, -0 lines 0 comments Download
A components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (39 generated)
Charlie Harrison
Hey engedy@, would you take a look at this at a high level? It differs ...
3 years, 10 months ago (2017-02-13 20:48:07 UTC) #7
engedy
3 years, 10 months ago (2017-02-14 11:00:47 UTC) #9
engedy
Pavel, could you please take a first look?
3 years, 10 months ago (2017-02-14 11:01:29 UTC) #10
pkalinnikov
Some initial comments. Thanks. https://codereview.chromium.org/2696493003/diff/40001/components/subresource_filter/content/browser/async_document_subresource_filter.cc File components/subresource_filter/content/browser/async_document_subresource_filter.cc (right): https://codereview.chromium.org/2696493003/diff/40001/components/subresource_filter/content/browser/async_document_subresource_filter.cc#newcode131 components/subresource_filter/content/browser/async_document_subresource_filter.cc:131: if (activation_state.activation_level != ActivationLevel::DISABLED) { ...
3 years, 10 months ago (2017-02-14 12:11:07 UTC) #11
Charlie Harrison
Thanks for the review. I'm going to try to fix the //content public interface to ...
3 years, 10 months ago (2017-02-14 14:09:39 UTC) #16
Charlie Harrison
+clamy: Here is my initial go at augmenting Call*ForTesting methods on NavigationHandle. LMK what you ...
3 years, 10 months ago (2017-02-14 16:41:54 UTC) #22
engedy
Thanks a lot, really appreciate the thorough unit tests! subresource_filter parts LGTM % comments. https://codereview.chromium.org/2696493003/diff/120001/components/subresource_filter/content/browser/subframe_filtering_navigation_throttle.cc ...
3 years, 10 months ago (2017-02-14 22:04:33 UTC) #29
Charlie Harrison
Thanks! https://codereview.chromium.org/2696493003/diff/120001/components/subresource_filter/content/browser/subframe_filtering_navigation_throttle.cc File components/subresource_filter/content/browser/subframe_filtering_navigation_throttle.cc (right): https://codereview.chromium.org/2696493003/diff/120001/components/subresource_filter/content/browser/subframe_filtering_navigation_throttle.cc#newcode19 components/subresource_filter/content/browser/subframe_filtering_navigation_throttle.cc:19: DCHECK(!handle->IsInMainFrame()); On 2017/02/14 22:04:33, engedy wrote: > nit: ...
3 years, 10 months ago (2017-02-14 23:06:56 UTC) #32
pkalinnikov
LGTM for subresource_filter.
3 years, 10 months ago (2017-02-15 09:27:47 UTC) #33
engedy
Please don't forget to update the CL title and description with the new name.
3 years, 10 months ago (2017-02-15 09:31:28 UTC) #34
Charlie Harrison
On 2017/02/15 09:31:28, engedy wrote: > Please don't forget to update the CL title and ...
3 years, 10 months ago (2017-02-15 14:13:11 UTC) #36
clamy
Thanks! A few comments below. https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h#newcode233 content/browser/frame_host/navigation_handle_impl.h:233: NavigationThrottle::ThrottleCheckResult WillStartRequest( I'm don't ...
3 years, 10 months ago (2017-02-15 16:37:22 UTC) #37
Charlie Harrison
https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h#newcode233 content/browser/frame_host/navigation_handle_impl.h:233: NavigationThrottle::ThrottleCheckResult WillStartRequest( On 2017/02/15 16:37:22, clamy wrote: > I'm ...
3 years, 10 months ago (2017-02-15 16:42:12 UTC) #38
clamy
https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2696493003/diff/160001/content/browser/frame_host/navigation_handle_impl.h#newcode233 content/browser/frame_host/navigation_handle_impl.h:233: NavigationThrottle::ThrottleCheckResult WillStartRequest( On 2017/02/15 16:42:12, Charlie Harrison wrote: > ...
3 years, 10 months ago (2017-02-16 14:10:43 UTC) #43
Charlie Harrison
I've removed the edits to WillStartRequest, etc. and made this CL only touch the testing ...
3 years, 10 months ago (2017-02-16 19:00:47 UTC) #44
Charlie Harrison
On 2017/02/16 19:00:47, Charlie Harrison wrote: > I've removed the edits to WillStartRequest, etc. and ...
3 years, 10 months ago (2017-02-16 21:04:00 UTC) #45
Charlie Harrison
engedy, pkalinnikov, I am going to break this CL apart and land the tests separately ...
3 years, 9 months ago (2017-02-27 21:03:48 UTC) #50
engedy
On 2017/02/27 21:03:48, Charlie Harrison wrote: > engedy, pkalinnikov, I am going to break this ...
3 years, 9 months ago (2017-02-27 21:04:28 UTC) #51
Charlie Harrison
Thanks! Note that I am also planning on doing this for the activation throttle if ...
3 years, 9 months ago (2017-02-27 21:12:03 UTC) #53
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/2696493003/240001
3 years, 9 months ago (2017-02-27 21:12:39 UTC) #56
engedy
On 2017/02/27 21:12:03, Charlie Harrison wrote: > Thanks! Note that I am also planning on ...
3 years, 9 months ago (2017-02-27 21:16:23 UTC) #57
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 23:06:26 UTC) #60
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/33e60b30fadf6d9b3b129a884e8b...

Powered by Google App Engine
This is Rietveld 408576698