1

In a Delphi XE8 VCL Form project using TEmbeddedWB, in EmbeddedWB1 for security reasons I set both DontExecuteActiveX and DontDownloadActiveX properties to True:

enter image description here

I have also disabled dialog-boxes in EmbeddedWB1 by setting EmbeddedWB1.DialogBoxes.DisableAll to True:

enter image description here

However, when I navigate to a page like:
https://www.iplocation.net/
or:
http://www.hostip.info/
I still get ActiveX warning dialog boxes:

One or more ActiveX controls could not be displayed because either: 1) Your current security settings prohibit running ActiveX controls on this page, or 2) You have blocked a publisher of one of the controls. As a result, the page might not display correctly.

So how can I suppress these dialog boxes?

user1580348
  • 5,721
  • 4
  • 43
  • 105
  • I am not sure if it's the same with TEmbeddedWB, but with TWebBrowser, if you do a "Doc.DesignMode := 'on'; " on the IHtmlDocument2 interface of the document in the browser, it suppresses pop-up warnings about js errors. Might be worth seeing if it does similar for your ActiveX warnings. If you find that it does, I'll post it as an answer. – MartynA Aug 04 '15 at 18:27

1 Answers1

1

Locate Your EmbeddedWB component -> Events -> OnScriptError: fill these lines here:

continuescript:=true;
showdialog:=false;

It's much better that turnin on "Silent" mode, some webpages not loading correctly with "Silent:=True" parameter...

Hope it helps

IanF
  • 45
  • 8