We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39e288 commit a86e8a5Copy full SHA for a86e8a5
CefSharp.Wpf/ChromiumWebBrowser.cs
@@ -2157,6 +2157,12 @@ private void OnMouseButton(MouseButtonEventArgs e)
2157
/// <param name="url">The URL to be loaded.</param>
2158
public void Load(string url)
2159
{
2160
+ if (!InternalIsBrowserInitialized())
2161
+ {
2162
+ throw new Exception("The browser has not been initialized. Load can only be called" +
2163
+ "after the underlying CEF browser is initialized (CefLifeSpanHandler::OnAfterCreated).");
2164
+ }
2165
+
2166
// Added null check -> binding-triggered changes of Address will lead to a nullref after Dispose has been called
2167
// or before OnApplyTemplate has been called
2168
if (browser != null)
0 commit comments