Events raised in wrong browser when opening popup #4445
Closed
aimcosoftware
started this conversation in
General
Replies: 1 comment 24 replies
-
If I understand you correctly then this sounds like the Using protected override bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser)
{
if (browser.IsPopup)
{
// default popups e.g. DevTools need to return false
// so WM_CLOSE is sent to close the window.
return false;
}
// Return true to cancel the close message being sent
return true;
}
That should hopefully be fixed by #4443 |
Beta Was this translation helpful? Give feedback.
24 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
ChromiumWebBrowser
with handlers, includingDisplayHandler
attached.calling
window.open()
creates a native window as expected, but handler events for the popup are sent to the opener. If the opener has aLifespanHandler
, closing the native popup, raisesDoClose()
on it.It doesn't raise
ChromiumWebBrowser
events, e.g.Browser.FrameLoadStart()
, is not raised, only attached handler events.Opening DevTools on the popup, opens the URL of the popup, not DevTools.
This also happens if you supply
newBrowser
inOnBeforePopup
.Parent browser initialization
LifespanHandler
Beta Was this translation helpful? Give feedback.
All reactions