CORB: Preserve test coverage for blocking response headers |
|||
Issue descriptionAn explicit CrossSiteDocumentBlockingTest.BlockHeaders verifies that a response blocked by CORB has stripped down response headers *before* it reaches the renderer process. The test is implemented on top of URLLoaderInterceptor and is apparently broken when trying to test CORB/NetworkService integration - the test hangs in a call to |interceptor.WaitForRequestCompletion()|. Let's use this bug to track re-enabling this test after https://crrev.com/c/1033535 lands.
,
Jun 13 2018
URLLoaderInterceptor works with network service (it's why it was added). I'm not sure what's different with a CORB-blocked request that would change this; i would need to debug this.
,
Jun 13 2018
I think this is a problem with the test, which is constructing URLLoaderInterceptor too late - after the RenderFrameHostImpl under test has been already created. I have a WIP CL with a fix here: https://chromium-review.googlesource.com/1099971
,
Jun 14 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2c68fceed6cc907898d7b071c10cbeb83cfa527f commit 2c68fceed6cc907898d7b071c10cbeb83cfa527f Author: Lukasz Anforowicz <lukasza@chromium.org> Date: Thu Jun 14 15:28:05 2018 Fix CrossSiteDocumentBlockingTest.BlockHeaders test for NetworkService. Before this CL the test was constructing URLLoaderInterceptor too late - after the RenderFrameHostImpl under test has already been created. This CL moves the creation of URLLoaderInterceptor (wrapped in RequestInterceptor) slightly earlier. After this CL the test passes with and without NetworkService. Bug: 846341 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I47fe27b55c341cdf87292a8aede8462921a9cbab Reviewed-on: https://chromium-review.googlesource.com/1099971 Commit-Queue: Ćukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Nasko Oskov <nasko@chromium.org> Cr-Commit-Position: refs/heads/master@{#567273} [modify] https://crrev.com/2c68fceed6cc907898d7b071c10cbeb83cfa527f/content/browser/loader/cross_site_document_blocking_browsertest.cc [modify] https://crrev.com/2c68fceed6cc907898d7b071c10cbeb83cfa527f/testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter
,
Jun 14 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by lukasza@chromium.org
, Jun 12 2018