I
I
inetinf2017-12-28 15:11:58
Delphi
inetinf, 2017-12-28 15:11:58

TChromium and onBeforePopup - Delphi how to prevent new windows from being created?

good day
i block new windows
procedure MainThread.mainchromeBeforePopup(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame; const targetUrl,
targetFrameName: ustring; targetDisposition: TCefWindowOpenDisposition;
userGesture: Boolean; var popupFeatures: TCefPopupFeatures;
var windowInfo: TCefWindowInfo ; var client: ICefClient;
var settings: TCefBrowserSettings; var noJavascriptAccess: Boolean;
out Result: Boolean);
start
Result:=True;
end;
but message windows are also blocked. How can this be avoided

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question