Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question