Page 1 of 1

BeforePopup respond only IDE DEBUG mode

Posted: Wed Mar 26, 2025 9:10 am
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?

Re: BeforePopup respond only IDE DEBUG mode

Posted: Wed Mar 26, 2025 2:25 pm
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.