New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 817217 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug
Proj-Servicification



Sign in to add a comment

Network Service causes NavigateToURL() to fail in content_browsertests

Project Member Reported by m...@chromium.org, Feb 28 2018

Issue description

This 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). 

 

Comment 1 by nasko@chromium.org, Feb 28 2018

Cc: jam@chromium.org

Comment 2 by jam@chromium.org, Feb 28 2018

NavigateToURL works with network service (i.e. we're passing 95% of browser tests and most use it).

Comment 3 by jam@chromium.org, Feb 28 2018

Status: WontFix (was: Untriaged)
I've added a comment in the code review about how to fix this

Sign in to add a comment