chrome: cefclient: Add default handler for request tests (see issue #3444)

Support loading of request tests (e.g. http://tests/other_tests) inside default
browsers created via "New window" and "New incognito window" commands.
This commit is contained in:
Marshall Greenblatt
2023-02-17 15:55:12 -05:00
parent d4c8104ca8
commit 565ad7bb99
7 changed files with 160 additions and 13 deletions

View File

@@ -772,10 +772,12 @@ void SetupResourceManager(CefRefPtr<CefResourceManager> resource_manager,
string_pages.insert(kTestGetSourcePage);
string_pages.insert(kTestGetTextPage);
// Add provider for string resources.
resource_manager->AddProvider(
new StringResourceProvider(string_pages, string_resource_map), 0,
std::string());
if (string_resource_map) {
// Add provider for string resources.
resource_manager->AddProvider(
new StringResourceProvider(string_pages, string_resource_map), 0,
std::string());
}
// Add provider for bundled resource files.
#if defined(OS_WIN)