mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Merge pull request #1268 from amaitland/fix/schemeregistration
Register Custom Schemes in all sub processes
This commit is contained in:
@@ -16,6 +16,7 @@ namespace CefSharp.Example
|
||||
public const string DefaultUrl = "custom://cefsharp/home.html";
|
||||
public const string BindingTestUrl = "custom://cefsharp/BindingTest.html";
|
||||
public const string PluginsTestUrl = "custom://cefsharp/plugins.html";
|
||||
public const string PopupTestUrl = "custom://cefsharp/PopupTest.html";
|
||||
public const string TestResourceUrl = "http://test/resource/load";
|
||||
public const string RenderProcessCrashedUrl = "http://processcrashed";
|
||||
public const string TestUnicodeResourceUrl = "http://test/resource/loadUnicode";
|
||||
@@ -119,6 +120,12 @@ namespace CefSharp.Example
|
||||
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory()
|
||||
});
|
||||
|
||||
settings.RegisterScheme(new CefCustomScheme
|
||||
{
|
||||
SchemeName = CefSharpSchemeHandlerFactory.SchemeNameTest,
|
||||
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory()
|
||||
});
|
||||
|
||||
settings.RegisterExtension(new CefExtension("cefsharp/example", Resources.extension));
|
||||
|
||||
Cef.OnContextInitialized = delegate
|
||||
|
||||
Reference in New Issue
Block a user