Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Avoid opening window outside app

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Avoid opening window outside app

Post by thefunkyjoint »

Sometimes my app is opening another window with a blue Chrome icon, as the image below shows :

I could not yet identify when and why this happens. Any way to avoid this ?

https://ibb.co/rwnZGy4
sodlf159
Posts: 90
Joined: Thu Nov 09, 2023 1:55 pm

Re: Avoid opening window outside app

Post by sodlf159 »

I can't see the picture. Can you upload it again?
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Avoid opening window outside app

Post by salvadordf »

Implement TChromium.OnChromeCommand, add a breakpoint and see the command_id value before that window opens.

The MiniBrowser blocks some Chromium windows like this :
https://github.com/salvadordf/CEF4Delphi/blob/f062dad2fd5873dd3a04f323a3d68c18b813c2c8/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L561
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Avoid opening window outside app

Post by thefunkyjoint »

Thank you, i just implemented this and will monitor to see if it fixes the issue :D
Post Reply