-
Notifications
You must be signed in to change notification settings - Fork 121
Accessing low level Chromium API using ChromiumFx WebEngine
David Desmaisons edited this page Feb 1, 2017
·
2 revisions
Neutronium provides some hooks when you need to access some low-level Chromium API
Neutronium ChromiumFx application: ChromiumFxWebBrowserApp
provides a UpdateLineCommandArg
method that when overrided allow to provide custom command line switch.
This method receives a [CfxOnBeforeCommandLineProcessingEventArgs] (http://chromiumfx.bitbucket.org/api/html/T_Chromium_Event_CfxOnBeforeCommandLineProcessingEventArgs.htm) instance as argument.
Exemple to disable same-origin-policy:
protected override void UpdateLineCommandArg(CfxOnBeforeCommandLineProcessingEventArgs beforeLineCommand)
{
beforeLineCommand.CommandLine.AppendSwitch("disable-web-security");
}
See example solution Example.ChromiumFX.Vue.SOP for complete example.
ChromiumFxWebBrowserApp
provides a UpdateChromiumSettings
method that when overrided allow to update ChromiumFxSetting.
protected override void UpdateChromiumSettings(CfxSettings settings)
{
// edit settings here
}