Network Service causes NavigateToURL() to fail in content_browsertests |
||
Issue descriptionThis may or may not be the same as bug 770621 . I was trying to land a change (https://chromium-review.googlesource.com/c/chromium/src/+/936661) which adds cross-site isolation testing in content_browsertests. It works perfectly except with --enable-features=NetworkService. This is for the WebContentsVideoCaptureDeviceBrowserTest* tests in content_browsertests. These tests use the net::EmbeddedTestServer along with a custom HTTP handler to vend custom resources for various fake URLs. The URLs are in different domains, and this is to ensure separate render processes are launched for the iframes within the main documents. Main symptoms of the problem point to missing implementation: 1. The following message is displayed in the content_shell window (this test enables pixel output, allowing the message to be seen on-screen): Could not load the requested resource. Error code: -11 (net::ERR_NOT_IMPLEMENTED) 2. All tests fail because NavigateToURL() (in content/public/test/content_browser_test_utils.h) is returning false: ../../content/browser/media/capture/web_contents_video_capture_device_browsertest.cc:404: Failure Value of: NavigateToURL(shell(), embedded_test_server()->GetURL( kSingleFrameHostname, kSingleFramePath)) Actual: false Expected: true 3. Some tests also report that ExecuteScript() (in content/public/test/browser_test_utils.h) is returning false: [150642:150642:0227/211538.030517:FATAL:web_contents_video_capture_device_browsertest.cc(192)] Check failed: ExecuteScript(shell()->web_contents(), script).
,
Feb 28 2018
NavigateToURL works with network service (i.e. we're passing 95% of browser tests and most use it).
,
Feb 28 2018
I've added a comment in the code review about how to fix this |
||
►
Sign in to add a comment |
||
Comment 1 by nasko@chromium.org
, Feb 28 2018