Skip to content

Commit 03bd81c

Browse files
committed
OffScreen - Add xml doc comment to constructor
Add note about legacy binding and creating the browser
1 parent 454fdb8 commit 03bd81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CefSharp.OffScreen/ChromiumWebBrowser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ public class ChromiumWebBrowser : IRenderWebBrowser
268268
public bool CanExecuteJavascriptInMainFrame { get; private set; }
269269

270270
/// <summary>
271-
/// Create a new OffScreen Chromium Browser
271+
/// Create a new OffScreen Chromium Browser. If you use <see cref="CefSharpSettings.LegacyJavascriptBindingEnabled"/> = true then you must
272+
/// set <paramref name="automaticallyCreateBrowser"/> to false and call <see cref="CreateBrowser"/> after the objects are registered.
272273
/// </summary>
273274
/// <param name="address">Initial address (url) to load</param>
274275
/// <param name="browserSettings">The browser settings to use. If null, the default settings are used.</param>
@@ -375,7 +376,6 @@ protected virtual void Dispose(bool disposing)
375376
/// </summary>
376377
/// <param name="windowHandle">Window handle if any, IntPtr.Zero is the default</param>
377378
/// <exception cref="System.Exception">An instance of the underlying offscreen browser has already been created, this method can only be called once.</exception>
378-
379379
public void CreateBrowser(IntPtr windowHandle)
380380
{
381381
if (browserCreated)

0 commit comments

Comments
 (0)