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

Issue 2446503002: Fix SubResourceFilter to work with PlzNavigate. (Closed)

Created:
4 years, 2 months ago by jam
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, melandory
CC:
chromium-reviews, jam, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SubResourceFilter to work with PlzNavigate. There are two main fixes: -use the new NavigationHandle callbacks on WebContentsObserver which are compatible with PlzNavigate -update the renderer side so that handles the new order of IPCs: while ReadyToCommitNavigation means the browser side can send its IPC before the internal content ones, with PlzNavigate one content IPC will fire both DidStartProvisionalLoad & DidCommitProvisionalLoad. So add extra logic to the renderer side to handle this. This fixes SubresourceFilterBrowserTest.MainFrameActivation SubresourceFilterBrowserTest.MainFrameActivationOnStartup SubresourceFilterBrowserTest.SubFrameActivation with PlzNavigate. BUG=504347, 653807 Committed: https://crrev.com/8ab445a553266b0b6b6f4eaa6976c6f8e2b4a7b6 Cr-Commit-Position: refs/heads/master@{#427085}

Patch Set 1 #

Patch Set 2 : fix unit tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -458 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +0 lines, -16 lines 0 comments Download
M components/subresource_filter/content/browser/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver.h View 2 chunks +4 lines, -1 line 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 3 chunks +9 lines, -22 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 6 chunks +30 lines, -26 lines 1 comment Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 3 chunks +10 lines, -11 lines 0 comments Download
D components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h View 1 chunk +0 lines, -48 lines 0 comments Download
D components/subresource_filter/content/browser/subresource_filter_navigation_throttle.cc View 1 chunk +0 lines, -42 lines 0 comments Download
D components/subresource_filter/content/browser/subresource_filter_navigation_throttle_unittests.cc View 1 chunk +0 lines, -278 lines 0 comments Download
M components/subresource_filter/content/common/subresource_filter_messages.h View 2 chunks +4 lines, -2 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.h View 3 chunks +4 lines, -1 line 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.cc View 1 4 chunks +21 lines, -4 lines 1 comment Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
jam
https://codereview.chromium.org/2446503002/diff/20001/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/2446503002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode75 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:75: return whitelisted_hosts_.find(url.host()) != whitelisted_hosts_.end(); I hope you don't mind, ...
4 years, 2 months ago (2016-10-24 04:51:20 UTC) #12
melandory
On 2016/10/24 04:51:20, jam wrote: > https://codereview.chromium.org/2446503002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc > File > components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc > (right): > > ...
4 years, 1 month ago (2016-10-24 08:55:42 UTC) #13
melandory
On 2016/10/24 08:55:42, melandory wrote: > On 2016/10/24 04:51:20, jam wrote: > > > https://codereview.chromium.org/2446503002/diff/20001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc ...
4 years, 1 month ago (2016-10-24 09:00:13 UTC) #14
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/2446503002/20001
4 years, 1 month ago (2016-10-24 14:57:28 UTC) #17
jam
+Tom for subresource_filter_messages.h
4 years, 1 month ago (2016-10-24 15:12:42 UTC) #19
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/287794)
4 years, 1 month ago (2016-10-24 15:21:35 UTC) #21
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-24 16:12:00 UTC) #22
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/2446503002/20001
4 years, 1 month ago (2016-10-24 16:20:40 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-24 16:35:14 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 16:50:03 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8ab445a553266b0b6b6f4eaa6976c6f8e2b4a7b6
Cr-Commit-Position: refs/heads/master@{#427085}

Powered by Google App Engine
This is Rietveld 408576698