What is delphichromiumembedded for? - delphi

Is this an internet browser component? that is more than the capability of TwebBrowser?
Im using TWebBrowser, and so if Im logged on to a website then I run my Delphi webbrowser to the site, I was already logged-on also, BUT if I logged-on to Mozilla firefox and run my Delphi webBrowser(TwebBrowser) it doesnt know if Im logged-on to the website from mozilla, TwebBrowser only integrate in internet explorer.
Does this Chromiumembedded also can integrate to mozilla or chrome?
thanks

It embeds a Google Chrome browser control in a Delphi form.
TWebBrowser is an embedded Internet Explorer control. It might have access to cookies and other data from your Internet Explorer settings, but it won't have access to any other browsers' settings, including Firefox and Chrome.
The embedded Chrome browser will not have access to the user's Chrome or Firefox settings. Those are entirely separate applications, and your application doesn't get any special standing related to them just because it's using an embedded browser control. If you want to gain access to another application's settings, you'll have to do it the same way anyone else does.

TWebBrowser uses the rendering engine of Internet Explorer, and shares several of its settings (like cookies).
TChromium uses the rendering engine of Chromium (which is the open-source part that Google Chrome is based on), and operates independently. It can't read Firefox's cookies, nor, AFAIK, Chrome's.

Related

Edge browser doesn't support document mode defined in X-UA-Compatible meta tag

My application uses IE=9 document mode thru X-UA-Compatible meta tag and some of application pages uses IE =5 as document mode. Our client moving from IE browser to Edge browser. Looks like edge browser doesn't support document mode defined thru X-UA-Compatible meta tag .Is there any way Edge browser can support IE5 document mode?
You can do it from the Edge browser side.
MS Edge (Chromium) browser comes with the IE mode feature.
IE mode on Microsoft Edge makes it easy to use all of the sites your organization needs in a single browser. It uses the integrated Chromium engine for modern sites, and it uses the Trident MSHTML engine from Internet Explorer 11 (IE11) for legacy sites.
You can configure IE mode by setting a group polices for the MS Edge browser.
Below is the list of relevant policies.
Configure Internet Explorer integration
I suggest you enabled this policy and set its value to Internet Explorer mode.
Send all intranet sites to Internet Explorer
With the help of this policy, all intranet sites will be loaded in the IE mode in the MS Edge browser.
Configure the Enterprise Mode Site List
You can create sitelist.xml and pass the file address in this policy. You can create the sitelist.xml file manually. If you are not familiar with the content of this file then I suggest you download the Enterprise Mode Site List Manager (schema v.2). By using this you can easily create a site list and save it to an XML file by following File-> Save to XML.
while creating the site list using Enterprise Mode Site List Manager, you can choose the desired document mode or enterprise mode.
Sample of site list file:
<site-list version="6">
<created-by>
<tool>EMIESiteListManager</tool>
<version>12.0.0.0</version>
<date-created>02/10/2021 01:33:56</date-created>
</created-by>
<site url="localhost">
<compat-mode>IE5</compat-mode>
<open-in>IE11</open-in>
</site>
</site-list>
After applying the above policies, I try to launch the test site.
You can notice that the browser is MS Edge. Page got loaded in the IE mode and page loaded in the IE 5 mode.
Further, you can try to refer to the policies and make the necessary changes according to your requirement and try to make a test on your side.
Reference:
Does Microsoft Edge support rendering in IE8 mode? Is there any solution for this?
Let us know if you have any further questions regarding this issue, I will try to provide suggestions for it.

Delphi client that runs like it is connected to a web server - without a web server. Is it possible?

I am familiar with programming in Delphi stand-alone applications and web-server applications.
Is it possible to have a Delphi application that when launched gets the browser to handle its output? Without a server being between the user and the application.
The reason I would like to do this is because HTML CSS and so on provide a more familiar user-interface to most people.
You can not "let the browser handle its output" without any HTTP connection, so a local web server, then using regular URIs like http://localhost:888/myDelphiApp/FullURI.
What you can is to embed a Web Browser to your Delphi application, then provide the generated web content not via HTTP, but as local content.
You may use
THtmlViewer Open Source component - which I like very much;
Delphi Chromium Embedded;
WebBrowser Component.
All recognize CSS and HTML content.

TWebBrowser Cannot Open Blogspot Website

I'm using Delphi XE2 in Windows 7 64 bit, I put TWebBrowser component in a Form. I navigate it to a blogspot website, e.g:
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
it shows JavaScript Error (HTML Parsing Error), then I turn Silent properties to True as follow:
Webbrowser1.Silent := true;
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
But the browser cannot open the page properly (only show background image). I tried other blogspot websites and got same problem. Any solution to display blogspot website correctly in TWebBrowser?
Twebbrowser uses IEFRAME
IEFRAME depends on the version of internet explorer you are running on that computer
You can deploy IEFRAME.DLL (in c:windows/system32 )with your application so you can be sure the same version is used everywhere so you wont get inconsistencies between computers.
However newer ones wont work on XP and there are some directx requirements.
A good alternative is
Delphi Embed chromium, it makes your deployed application a lot bigger (+-15MB) but you can be very sure it works everywhere and always (windows 8 to XP) and it will always produce the same page
Also if you have to manipulate the DOM or insert javascript (to communicate with the page)
this will be easier and will work more consistently.
Here is a link for the latest version:
https://code.google.com/p/dcef3/

Loading/launching activex control using NPAPI

I have a mozilla browser(this browser is developed for windows based mobile handsets).I have used NP plugin for rendering flash content on my browser.There are NPAPIs which can be used for controlling the flash window properties.I have used NPAPIs for getting the flash contents from the browser and rendering it on the browser.
Now I want to launch activeX control using the NPAPI.This is required for rendering flash in wince platform which uses activeX to render flash content on nay web page.Does any one know how to launch an activeX control using NPAPI so that the NPPlugin which is implemented for windows phone also works on wince platform.
Thanks in advance,
Snehal
Check out: http://code.google.com/p/ff-activex-host/
Most APIs probably work the same on WinCE, but you'll have to do some tweaking, I'm sure.

How can I get browsers other than IE to accept file urls?

It is not uncommon for our intranet web applications to link to publications, documents, or other resources from our shared network file servers.
In the past, we've had little trouble fashioning links such as the following:
file://fileserver1/folderofgoodies/rules.pdf
\\fileserver1\folderofgoodies\rules.pdf
The reason we had no trouble is because everyone in the building uses IE6 or IE7 (very few have IE8). Both styles of URLs worked fine in Microsoft browsers it seems.
But if you try clicking such links in other browsers, specifically Firefox, nothing happens!
On a new intranet web app I'm developing I've been attempting to ensure cross-browser support, but any links to local computer or local network resources seem to be ignored in at least Firefox 3.5.3, though I admit I haven't yet checked other browsers.
Is there any way I can change the way I link to said files so that browsers like Firefox will accept them? I cannot do anything that requires installing scripts, software, extensions, or any other solution on a per-user/per-computer basis.
I realize the suppression of said links is a security thing, but these links would be originating from only trusted local intranet locations, so...
If this is intranet, you can build a little helper server/page/webservice/whatever to which you will link and pass file name as parameter:
http://server/getlocalfile?path=file://fileserver1/folderofgoodies/rules.pdf
And you will benefit from extended security, by the way.
I think your only option is reconfiguring Firefox, but unfortunately you said you can't do that.
You could just map the file server path as a virtual directory into your intranet site and link via http.
Mozilla applications block links to local files. The only way is to install plugin(s) to Firefox. This link describes some of them.

Resources