Use IsPopup instead.

This commit is contained in:
rassilon
2015-03-21 10:02:30 -04:00
parent 40f45b4183
commit 460cca4e5c
+1 -5
View File
@@ -124,11 +124,7 @@ namespace CefSharp
void ClientAdapter::OnAddressChange(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& address)
{
// 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)
if (!browser->IsPopup())
{
_browserControl->SetAddress(StringUtils::ToClr(address));
}