Add NetworkService support for chrome and chrome-devtools schemes (see issue #2622).

Known behavior changes:
- Unsupported chrome hosts no longer redirect to chrome://version.

To test: All tests pass with NetworkService disabled. WebUITest.* and V8Test.*
tests pass with NetworkService enabled.
This commit is contained in:
Marshall Greenblatt
2019-04-30 16:45:13 -04:00
parent 9fd6c8a1ee
commit 370cc028cb
11 changed files with 460 additions and 331 deletions

View File

@@ -123,16 +123,6 @@ class WebUITestHandler : public TestHandler {
// Test hosts with special behaviors.
// Non-existing URLs should redirect to chrome://version/.
TEST(WebUITest, doesnotexist) {
UrlList url_list;
url_list.push_back("chrome://doesnotexist/");
CefRefPtr<WebUITestHandler> handler = new WebUITestHandler(url_list);
handler->set_expected_url("chrome://version/");
handler->ExecuteTest();
ReleaseAndWaitForDestructor(handler);
}
// about:* URIs should redirect to chrome://*.
TEST(WebUITest, about) {
UrlList url_list;