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

Issue 2677223002: Distinguish between subresource filtering and dryrun matching. (Closed)

Created:
3 years, 10 months ago by Bryan McQuade
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Yoav Weiss, subresource-filter-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Distinguish between subresource filtering and dryrun matching. In order to report page load metrics for an experiment and control population, we need to track page load metrics for affected pages both in cases where filtering is active, and where filtering is in dry run mode. To do this, we extend WebDocumentSubresourceFilter to report not only whether filtering applied, but also whether it would have been appllied in cases where we are in dry run mode. While we're changing the WebDocumentSubresourceFilter API, we address the related issue of not displaying the subresource filtering UI for filtered preloads. This is accomplished by providing separate APIs to get the filtering policy for a resource (a pure policy URL) vs an API to report that a resource loaded by the document was filtered. BUG=689047, 689049 Review-Url: https://codereview.chromium.org/2677223002 Cr-Commit-Position: refs/heads/master@{#448719} Committed: https://chromium.googlesource.com/chromium/src/+/f3455dace4afe149e6bb4d68acb4d4a6f5e2134a

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -65 lines) Patch
M components/subresource_filter/content/common/document_subresource_filter.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M components/subresource_filter/content/common/document_subresource_filter.cc View 1 2 3 4 5 6 3 chunks +16 lines, -10 lines 0 comments Download
M components/subresource_filter/content/common/document_subresource_filter_unittest.cc View 1 2 3 4 5 6 4 chunks +14 lines, -13 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 1 2 3 4 5 11 chunks +54 lines, -25 lines 0 comments Download
M components/test_runner/mock_web_document_subresource_filter.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/test_runner/mock_web_document_subresource_filter.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 1 chunk +20 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 5 chunks +99 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 58 (41 generated)
Bryan McQuade
PTAL, thanks!
3 years, 10 months ago (2017-02-06 16:29:02 UTC) #5
engedy
LGTM % nits and a naming question. Thanks! https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc File components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc (right): https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc#newcode496 components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc:496: // ...
3 years, 10 months ago (2017-02-06 16:56:32 UTC) #9
Bryan McQuade
https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc File components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc (right): https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc#newcode496 components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc:496: // the agent. On 2017/02/06 at 16:56:32, engedy wrote: ...
3 years, 10 months ago (2017-02-06 17:11:56 UTC) #11
Bryan McQuade
https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc File components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc (right): https://codereview.chromium.org/2677223002/diff/1/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc#newcode496 components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc:496: // the agent. On 2017/02/06 at 16:56:32, engedy wrote: ...
3 years, 10 months ago (2017-02-06 17:11:56 UTC) #12
Bryan McQuade
3 years, 10 months ago (2017-02-06 17:11:57 UTC) #13
engedy
Still LGTM % one final nit. Also, in a follow-up CL, do you think you ...
3 years, 10 months ago (2017-02-06 17:20:12 UTC) #15
engedy
could*
3 years, 10 months ago (2017-02-06 17:20:27 UTC) #16
Bryan McQuade
https://codereview.chromium.org/2677223002/diff/20001/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h File third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h (right): https://codereview.chromium.org/2677223002/diff/20001/third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h#newcode20 third_party/WebKit/public/platform/WebDocumentSubresourceFilter.h:20: virtual void reportFilteredLoad() = 0; On 2017/02/06 at 17:20:12, ...
3 years, 10 months ago (2017-02-06 17:53:35 UTC) #19
Bryan McQuade
japhet, PTAL for third_party/WebKit changes rbyers, PTAL for test_runner changes (just API updates to mock ...
3 years, 10 months ago (2017-02-06 17:57:20 UTC) #21
Nate Chapin
lgtm
3 years, 10 months ago (2017-02-06 18:04:02 UTC) #22
Rick Byers
On 2017/02/06 17:57:20, Bryan McQuade wrote: > japhet, PTAL for third_party/WebKit changes > rbyers, PTAL ...
3 years, 10 months ago (2017-02-06 20:33:06 UTC) #25
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/2677223002/40001
3 years, 10 months ago (2017-02-07 12:34:42 UTC) #29
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/358363)
3 years, 10 months ago (2017-02-07 12:43:54 UTC) #31
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/2677223002/100001
3 years, 10 months ago (2017-02-07 17:21:48 UTC) #46
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/358549)
3 years, 10 months ago (2017-02-07 17:28:06 UTC) #48
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/2677223002/120001
3 years, 10 months ago (2017-02-07 20:20:25 UTC) #55
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 20:26:42 UTC) #58
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f3455dace4afe149e6bb4d68acb4...

Powered by Google App Engine
This is Rietveld 408576698