Solved

TWebBrowser and IE9

Posted on 2011-03-23
5
739 Views
Last Modified: 2012-06-27
I've been using very simple code in my program to either show a lock or unlock graphic when a web page is loaded.

procedure Tform.WebBrowser1SetSecureLockIcon(ASender: TObject;
  SecureLockIcon: Integer);
begin
  if (securelockicon = secureLockIconUnsecure) then
      unlock.Visible:=true
     else
      lock.Visible:=true;
end;

Open in new window


Since upgrading to IE9 the component always returns secureLockIconUnsecure.  Is there a workaround for fix for this?
0
Comment
Question by:DSOM
  • 2
5 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35205688
In the IE there are some settings that you can change which will make the SecureLock disappear:
http://www.todayinwindows.com/2011/02/remove-those-only-secure-content-is-displayed-popups-in-internet-explorer/

Did you check the Security Settings whether you are disabling/enabling one or more of the options that do this?

In the IE it can be easily solved by reset the settings:
http://windows.microsoft.com/en-NZ/windows7/Change-Internet-Explorer-9-Security-settings
0
 

Author Comment

by:DSOM
ID: 35206810
Unfortunately, these steps would need to be completed by hundreds of customers to be effective.  I was hoping there was a programmatic setting related to TWebBrowser.  For now I have simply removed the lock/unlock function.
0
 
LVL 24

Accepted Solution

by:
jimyX earned 500 total points
ID: 35208769
You can set all those options by using the Windows Registry:
http://support.microsoft.com/kb/182569

I am using Windows XP (I am sure you are using Win 7, so the should be similar), so it is under:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3

For example to change the value of "Display mixed content", set the DWORD Value "1609" as follows:
0 = Enabled
1 = Prompt
2 = NON-Selected
3 = Disable

So the idea is to set the registry by your application.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35452389
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now