Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35c997f

Browse files
committed
Core - Make LegacyJavascriptBindingEnabled obsolete
Will likely be removed in the future as it's been replaced. Setting after creating your ChromiumWebBrowser instance also doesn't work Issue #2977
1 parent c43aec1 commit 35c997f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CefSharp/CefSharpSettings.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ static CefSharpSettings()
2525
}
2626

2727
/// <summary>
28-
/// Objects registered using RegisterJsObject and RegisterAsyncJsObject
28+
/// Objects registered using <see cref="IJavascriptObjectRepository.Register"/>
2929
/// will be automatically bound when a V8Context is created. (Soon as the Javascript
3030
/// context is created for a browser). This behaviour is like that seen with Javascript
3131
/// Binding in version 57 and earlier.
32-
/// NOTE: Set this before your first call to RegisterJsObject or RegisterAsyncJsObject
32+
/// NOTE: MUST be set before creating your first ChromiumWebBrowser instance.
3333
/// </summary>
34+
[Obsolete("Use chromiumWebBrowser.JavascriptObjectRepository.Settings.LegacyBindingEnabled = true; instead." +
35+
"Must be called before creating your first ChromiumWebBrowser instance." +
36+
"See https://github.com/cefsharp/CefSharp/issues/2977 for details.")]
3437
public static bool LegacyJavascriptBindingEnabled { get; set; }
3538

3639
#if !NETCOREAPP

0 commit comments

Comments
 (0)