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.

BeforePopup respond only IDE DEBUG mode

Post Reply
tonzi
Posts: 7
Joined: Mon May 27, 2024 9:31 am

BeforePopup respond only IDE DEBUG mode

Post by tonzi »

It's strange that when I browsed

Code: Select all

https://videovak.com
, I had blocked the ad link in BeforeResourceLoad

Code: Select all

var
  vUrl: string;
  vp: Integer;
begin
  // For simplicity, this demo blocks all popup windows and new tabs
  Result := (targetDisposition in [CEF_WOD_NEW_FOREGROUND_TAB,
    CEF_WOD_NEW_BACKGROUND_TAB, CEF_WOD_NEW_POPUP, CEF_WOD_NEW_WINDOW]);

  vUrl := targetUrl;
  if Result then
    if not(IsConKey(FBlockKeys, vUrl, vp)) and not(SameText(vUrl, 'about:blank'))
    then
      Chromium1.LoadURL(vUrl);
before. After opening the website, I clicked on one of the links and BeforePopup didn't respond. So I broke the point in IDE DEBUG mode, and the BeforePopup opened smoothly in the original window. I don't know why?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: BeforePopup respond only IDE DEBUG mode

Post by salvadordf »

Hi,

It's difficult to guess what's happening without all the source code but that website opens new tabs and it redirects the first tab in the background.

Perhaps the ad blocker is causing this issue.
Post Reply