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

Issue 2667303003: Disable subresource filtering on page reloads. (Closed)

Created:
3 years, 10 months ago by Bryan McQuade
Modified:
3 years, 10 months ago
Reviewers:
engedy, Nico
CC:
blundell+watchlist_chromium.org, chromium-reviews, darin-cc_chromium.org, droger+watchlist_chromium.org, jam, sdefresne+watchlist_chromium.org, subresource-filter-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable subresource filtering on page reloads. BUG=688058 Review-Url: https://codereview.chromium.org/2667303003 Cr-Commit-Position: refs/heads/master@{#449091} Committed: https://chromium.googlesource.com/chromium/src/+/0766bcb584f9dc069573be95e06e019b37d280e0

Patch Set 1 #

Patch Set 2 : fix comment #

Patch Set 3 : improve reload detection #

Patch Set 4 : cleanup #

Patch Set 5 : remove whitespace #

Patch Set 6 : add field trial support #

Patch Set 7 : remove browser side nav check #

Patch Set 8 : fix comment #

Patch Set 9 : fix test #

Total comments: 4

Patch Set 10 : address comment #

Patch Set 11 : add browser tests #

Patch Set 12 : suppress activation for subsequent same origin navs in same tab #

Patch Set 13 : rebase #

Total comments: 11

Patch Set 14 : address comments #

Patch Set 15 : address comments #

Patch Set 16 : add dep on ui/base #

Total comments: 1

Patch Set 17 : move ui/base to public_deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -42 lines) Patch
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +92 lines, -6 lines 0 comments Download
M components/subresource_filter/content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -1 line 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +43 lines, -21 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +65 lines, -11 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features_test_support.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features_test_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 85 (65 generated)
Bryan McQuade
PTAL, thanks!
3 years, 10 months ago (2017-02-02 19:35:20 UTC) #17
Bryan McQuade
On 2017/02/02 at 19:35:20, Bryan McQuade wrote: > PTAL, thanks! Note that browser side navigation ...
3 years, 10 months ago (2017-02-03 01:22:27 UTC) #24
Bryan McQuade
On 2017/02/03 at 01:22:27, Bryan McQuade wrote: > On 2017/02/02 at 19:35:20, Bryan McQuade wrote: ...
3 years, 10 months ago (2017-02-03 16:19:02 UTC) #29
engedy
Taking a look now -- in the meantime, could you please add a browser test ...
3 years, 10 months ago (2017-02-03 16:35:37 UTC) #32
engedy
https://codereview.chromium.org/2667303003/diff/160001/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/2667303003/diff/160001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode195 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:195: client_->ToggleNotificationVisibility(false); Note that calling this is not idempotent because ...
3 years, 10 months ago (2017-02-03 17:41:53 UTC) #33
Bryan McQuade
Thanks! Added tests. https://codereview.chromium.org/2667303003/diff/160001/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/2667303003/diff/160001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode195 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:195: client_->ToggleNotificationVisibility(false); On 2017/02/03 at 17:41:52, engedy ...
3 years, 10 months ago (2017-02-03 20:27:19 UTC) #40
Bryan McQuade
I've updated this change to whitelist the origin of domains for reloaded URLs, using the ...
3 years, 10 months ago (2017-02-07 21:03:21 UTC) #46
engedy
LGTM % comments, thanks! https://codereview.chromium.org/2667303003/diff/240001/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/2667303003/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode196 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:196: void ContentSubresourceFilterDriverFactory::Reset() { nit: Trying ...
3 years, 10 months ago (2017-02-08 10:48:32 UTC) #53
Bryan McQuade
Addressed comments, thanks! https://codereview.chromium.org/2667303003/diff/240001/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/2667303003/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode196 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:196: void ContentSubresourceFilterDriverFactory::Reset() { On 2017/02/08 at ...
3 years, 10 months ago (2017-02-08 17:42:21 UTC) #60
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/2667303003/280001
3 years, 10 months ago (2017-02-08 17:44:12 UTC) #63
engedy
https://codereview.chromium.org/2667303003/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc (right): https://codereview.chromium.org/2667303003/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc#newcode552 components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc:552: TEST_F(ContentSubresourceFilterDriverFactoryTest, On 2017/02/08 17:42:21, Bryan McQuade wrote: > On ...
3 years, 10 months ago (2017-02-08 17:47:43 UTC) #64
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/359662)
3 years, 10 months ago (2017-02-08 17:52:58 UTC) #66
Bryan McQuade
thakis, PTAL for dependency on ui/base/page_transition_types.h
3 years, 10 months ago (2017-02-08 18:15:27 UTC) #68
Nico
don't you need to edit some .gn file to add a dep on //ui/base?
3 years, 10 months ago (2017-02-08 18:25:47 UTC) #69
Bryan McQuade
On 2017/02/08 at 18:25:47, thakis wrote: > don't you need to edit some .gn file ...
3 years, 10 months ago (2017-02-08 18:32:15 UTC) #71
Nico
lgtm
3 years, 10 months ago (2017-02-08 18:34:26 UTC) #73
Nico
https://codereview.chromium.org/2667303003/diff/300001/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/2667303003/diff/300001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode20 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:20: #include "ui/base/page_transition_types.h" (since you're including the header in a ...
3 years, 10 months ago (2017-02-08 18:35:17 UTC) #74
Bryan McQuade
On 2017/02/08 at 18:35:17, thakis wrote: > https://codereview.chromium.org/2667303003/diff/300001/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/2667303003/diff/300001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode20 ...
3 years, 10 months ago (2017-02-08 18:42:42 UTC) #76
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/2667303003/320001
3 years, 10 months ago (2017-02-08 21:06:36 UTC) #82
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 21:14:47 UTC) #85
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/0766bcb584f9dc069573be95e06e...

Powered by Google App Engine
This is Rietveld 408576698