mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Don't change the .Address property when (among other things) you display DevTools.
This commit is contained in:
@@ -124,7 +124,11 @@ namespace CefSharp
|
||||
|
||||
void ClientAdapter::OnAddressChange(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& address)
|
||||
{
|
||||
if (frame->IsMain())
|
||||
// If it's our toplevel browser frame then change the browser control's
|
||||
// address property.
|
||||
if (browser->GetIdentifier() == _cefBrowser->GetIdentifier()
|
||||
&& frame->IsMain()
|
||||
&& frame->GetParent() == nullptr)
|
||||
{
|
||||
_browserControl->SetAddress(StringUtils::ToClr(address));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user