Description
override LifeSpanHandler.OnBeforePopup throws exception
System.Exception: 'returning true cancels popup creation, if you return true newBrowser should be set to null.Previously no exception was thrown in this instance, this exception has been added to reduce the number of support requests from people returning true and setting newBrowser and expecting popups to work.'
From docu:
newBrowser EXPERIMENTAL - A newly created browser that will host the popup. Set to null for default behaviour.
To cancel creation of the popup window return true otherwise return false.
Source: https://cefsharp.github.io/api/94.4.x/html/M_CefSharp_ILifeSpanHandler_OnBeforePopup.htm
if I set the newBrowser
to a new browser und return true
I expect that the request will be handled in the specified new browser (tab) and no popop is opened.
instead I get an exception "to reduce the number of support requests" What??
Either the docu is wrong or it is a bug because it does not work as described in the docu.
I have also tried to return false
, but then a new popop is opened, but this is not desired.
If the newBrowser
property doesn`t work for this case yet, it should be documented instead than just throwing an exception.