Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uses
- ceflib;
- procedure TForm1.ChromiumBeforePopup(Sender: TObject; const browser: ICefBrowser;
- const frame: ICefFrame; const targetUrl, targetFrameName: ustring;
- var popupFeatures: TCefPopupFeatures; var windowInfo: TCefWindowInfo; var client: ICefClient;
- var settings: TCefBrowserSettings; var noJavascriptAccess: Boolean; out Result: Boolean);
- begin
- // returning True to the Result will stop creation of the popup window; you can make a
- // filter just for certain URLs, like e.g. if targetUrl = 'http://example.com' then
- Result := True;
- end;
Advertisement
Add Comment
Please, Sign In to add comment