Lazarus

Miscellaneous => Jobs => Topic started by: tudi_x on July 05, 2017, 10:17:08 am

Title: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 10:17:08 am
hi,
please advise if it would be possible to develop a TWebBrowser sort of component/package.
the component should be cross platform and the code would be open sourced and easily installed through a lpk approach.

please pm me with your offer and estimation for completion.

thank you
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 10:50:47 am
hi,
please advise if it would be possible to develop a TWebBrowser sort of component/package.
the component should be cross platform and the code would be open sourced and easily installed through a lpk approach.

please pm me with your offer and estimation for completion.

thank you
I need approximately 30 full time developers, 5 testers, two project managers and a budget for 2 years if that is within your limits.
I can't guarantee it is finished on time and on budget....

Just kidding, there are already many such packages available, like chromium, which has also pascal bindings.

Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 11:05:06 am
i do not need a 300 mb deployment like the chromium solution.

twebbrowser on delphi is adding around 8 mb and is a component you just stick on your project. that is what i think we need as community also.



Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 11:10:03 am
i do not need a 300 mb deployment like the chromium solution.

twebbrowser on delphi is adding around 8 mb and is a component you just stick on your project. that is what i think we need as community also.

"twebbrowser on delphi is adding around 8 mb" is a blatant lie misunderstanding (that's the kind phrasing  >:D >:D) : That's just the Pascal COM bindings for the full internet explorer which is much bigger than chromium.
Chromium can be statically linked. Something that is not even possible with internet explorer, which is also not cross platform.

Writing a full cross platform feature complete TWebBrowser component is possible, but requires the resources I demanded as "kidding". It is the truth.
You can come close by using the chromium bndings. Don't be stupid! >:(

There are lightweight solutions available for HTML but those are NOT full featured webbrowsers.
Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 11:24:23 am
as said, a 300 mb deployment for the chromium resources does not fit my business model.

i currently do not have the skills to integrate with the chromium bindings.

as a note, your language is quite bad.
most probably the second project manager you would need is to just handle the bad communication with you.
Title: Re: Develop of TWebBrowser Component
Post by: avra on July 05, 2017, 11:45:16 am
please advise if it would be possible to develop a TWebBrowser sort of component/package.
Maybe something mentioned here fits your needs:
http://wiki.freepascal.org/Webbrowser#Integrate_web_browser_component_in_application
Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 11:54:15 am
thank you.
i need the functionality for ouath2.

from the options in the link:
- thtml viewer solution does not render nicely the page/css

- fpCEF3 as per what i have read does not integrate with lazarus 1.6.4 and anyway the deployment would reach 300 mb due to the chromium dll's

- gecko port 2 does not work. 1 is old

- lazactivex does not look cross platform

- laz web kit looks not maintained and old.
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 12:12:58 pm
OAUTH2 is supported out-of--the-box by Freepascal (3.0.X)
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 12:14:54 pm
as said, a 300 mb deployment for the chromium resources does not fit my business model.

i currently do not have the skills to integrate with the chromium bindings.

as a note, your language is quite bad.
most probably the second project manager you would need is to just handle the bad communication with you.
My language is simply frank. I like to communicate very directly if I think somebody is really off-track.
It is NOT bad. It is direct. Because what you wrote was garbage: you didn't realize you just linked in a full internet explorer.....

But everybody -including me- has the right to be stupid.
Title: Re: Develop of TWebBrowser Component
Post by: avra on July 05, 2017, 12:23:23 pm
i need the functionality for ouath2.
I think I saw some ouath2 support for Indy:
https://www.google.rs/search?q=ouath2+delphi

Quote
- gecko port 2 does not work. 1 is old
Yes, Mozilla abandoned gecko some time ago but if you don't need new features then you should probably just post what problems you face and maybe someone might be able to help.

Quote
- laz web kit looks not maintained and old.
Well, then you could try offering a bounty to update lazwebkit. This looks to me like your best bet if you need modern browser features which is not based on Chrome.
http://wiki.lazarus.freepascal.org/Bounties
Title: Re: Develop of TWebBrowser Component
Post by: avra on July 05, 2017, 12:24:57 pm
OAUTH2 is supported out-of--the-box by Freepascal (3.0.X)
This answer is more usefull then my own  ;)
Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 12:25:59 pm
thank you for the ouath2 insight

please advise or point me to a link on how the application would actually call the default browser on linux without showing the url where the access is made in order for the user to allow access - i did not find the url hide in
http://wiki.freepascal.org/Webbrowser
 (http://wiki.freepascal.org/Webbrowser)

what i am seeing in
https://github.com/rvk01/google-oauth2/blob/master/google_oauth2.pas
 (https://github.com/rvk01/google-oauth2/blob/master/google_oauth2.pas) in line 503 is actually an ole object which i think is not cross platform.
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 12:33:19 pm
Yes TWebBrowser is Windows only! And links in Internet explorer. If you want a cross-platform solution, use chromium. Or the TurboPower control.
You can handle the authentication using fp-web or the google package (BOTH support OAUTH2, the latter through google, though, both are cross platform).
Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 12:39:26 pm
as a note i see in delphi the twebbrowser component as cross platform in firemonkey.

i will look in turbopower.

thank you
Title: Re: Develop of TWebBrowser Component
Post by: Leledumbo on July 05, 2017, 12:52:05 pm
as a note i see in delphi the twebbrowser component as cross platform in firemonkey.
The same method: it wraps native OS browser, whose existence is guaranteed on Android/iOS/Windows/OS X, but not on Linux.
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 12:53:33 pm
Yup. Also not cross-platform if linux is not supported. Which it isn't.
Title: Re: Develop of TWebBrowser Component
Post by: tudi_x on July 05, 2017, 01:06:00 pm
tokyo supports linux at least as per their features matrix.
check 3rd line, enterprise

https://www.embarcadero.com/docs/rad-studio-feature-matrix.pdf
 (https://www.embarcadero.com/docs/rad-studio-feature-matrix.pdf)

the web site edn still shows as per berlin.
Title: Re: Develop of TWebBrowser Component
Post by: marcov on July 05, 2017, 01:09:30 pm
tokyo supports linux at least as per their features matrix.
check 3rd line, enterprise

https://www.embarcadero.com/docs/rad-studio-feature-matrix.pdf
 (https://www.embarcadero.com/docs/rad-studio-feature-matrix.pdf)

the web site edn still shows as per berlin.

Yeah, but they don't say "firemonkey support" for it. Server apps and standalone apps (whatever that may be).

And they only support two distros.
Title: Re: Develop of TWebBrowser Component
Post by: Thaddy on July 05, 2017, 01:15:56 pm
Marco, he wants a webbrowser, cross platform, written in Object Pascal  and in less than ~100.000 lines of code. Full featured webbrowers have 1.000.000 lines of code or a lot more...
He is being silly.

At least we know how to use the bindings and forget about writing the whole shebang ourselves.
Title: Re: Develop of TWebBrowser Component
Post by: Leledumbo on July 05, 2017, 01:26:14 pm
tokyo supports linux at least as per their features matrix.
check 3rd line, enterprise
No mention of TWebBrowser. Even when they do, what is the Linux native browser? Unless they really really think Ubuntu and Red Hat (which comes with several web browsers) only, uncustomized by user, then they might assume Firefox. But once user uninstalls Firefox, then the app will no longer work. In the end, at best they will do what fpCEF does: bundling the whole browser runtime packages, which if you do that now, your app is futureproof. The choice is yours.
Title: Re: Develop of TWebBrowser Component
Post by: avra on July 05, 2017, 03:30:02 pm
I have just searched the net and every modern web browser component I could find for java and c# at the end embeds one of the standard browsers.
I wonder why...  ::)
Title: Re: Develop of TWebBrowser Component
Post by: RAW on July 05, 2017, 04:44:40 pm
The main problem I see is the security problematic...
You cannot create your own browser and think you are done. I know a lot of security issues are depending on new features, but not all. You have to do all the testing yourself and that will never end... Much easier to use a Firefox browser for example even if this browser is not perfect...  :D

At least there is something you can do (*.cfg file, AddOns, about:config)...
Title: Re: Develop of TWebBrowser Component
Post by: BitBitter on October 22, 2017, 12:08:44 am
Chrome seems to the popular bloated browser built in spyware for marketing.  I did search on it FPC and they do make one for it with the price

https://github.com/dliw/fpCEF3


SrIron is identical to chrome has same source code without the spyware.  Maybe FPC community should reach out to SrIron community to make standard component base on SrIron for FPC. 

Title: Re: Develop of TWebBrowser Component
Post by: Phil on October 22, 2017, 12:28:19 am
TWebBrowser is available for Lazarus Qt (4) and Cocoa widgetsets:

https://macpgmr.github.io/

It wraps the browser control provided by Qt and Cocoa.

See readme.txt file and example PasMap app for more.

Title: Re: Develop of TWebBrowser Component
Post by: RAW on October 22, 2017, 12:34:27 am
Quote
Chrome seems to the popular bloated browser built in spyware for marketing.
Spyware is almost everywhere: Free Email Account, Free Windows 10, Free Browser, Free Amazon Account, Free Handy.... They know what people do... who cares!...  :)
Title: Re: Develop of TWebBrowser Component
Post by: BitBitter on October 22, 2017, 01:09:15 am
Too many moving parts to TwebBrowser.  If I had a crystal ball I won't see it all without losing sight of project.  However it may have merits in the future to integration local run app with remote server.

FPC just needs drop in component with modern features to start with for client browser.  Rest of would be nice feature as enhancement to make it standout.

Maybe two component can be made one for the Server and other one for the client.   :-\
Title: Re: Develop of TWebBrowser Component
Post by: Phil on October 22, 2017, 01:15:31 am
Too many moving parts to TwebBrowser.  If I had a crystal ball I won't see it all without losing sight of project.  However it may have merits in the future to integration local run app with remote server.

FPC just needs drop in component with modern features to start with for client browser.  Rest of would be nice feature as enhancement to make it standout.

Maybe two component can be made one for the Server and other one for the client.   :-\

Sorry, I don't follow what you're getting at. Maybe you could expand on it a bit, give some examples, be more specific.
Title: Re: Develop of TWebBrowser Component
Post by: BitBitter on October 22, 2017, 02:56:16 am
Pretend we are using Gecko's  for understanding the process.  We just drop in the component into our project (hoping already built into FPC in next release).  All we have to do is change the properties to browse different sites.  The browsers will display, play sound, video correctly on cross platform as basic features properly compile as binary native to the target OS.

We don't have to spend endless time to figure out Geckos not support or version 2 doesn't work.  Or digging for documentation reading them only to find out thats no longer supported.   

Having these basic features in FPC as standard will build confident to explore other options.  Currently my mind is swimming in maze of dead end options that always comes with poisonous pill.   


I could see myself in future to use Twebbrowser for what it has to offer.  I won't invest anytime into without having basic feature available not support in the future.

 
Title: Re: Develop of TWebBrowser Component
Post by: BitBitter on October 22, 2017, 05:24:33 am
I have to agree with RAW.  spyware is everywhere maybe its easier to sell to the trend they are getting their information from other sources.
Title: Re: Develop of TWebBrowser Component
Post by: avra on October 22, 2017, 11:56:51 am
Chrome seems to the popular bloated browser built in spyware for marketing.  I did search on it FPC and they do make one for it with the price
https://github.com/dliw/fpCEF3
SrIron is identical to chrome has same source code without the spyware.  Maybe FPC community should reach out to SrIron community to make standard component base on SrIron for FPC.
You have mixed Chrome and Chromium. They are not the same. Chrome, Opera, Vivaldi, Iron, Torch and may others are based on Chromium. Chrome is spying, Chromium is not spying. fpCEF3 is based on Chromium, so it is safe to use.
Title: Re: Develop of TWebBrowser Component
Post by: BitBitter on October 22, 2017, 04:39:28 pm
Chrome spy with open policy that they spy.  Chromium spy less but with loopholes according to many blogs. 

Besides Chromium getting caught red handed with their microphone spying and streaming that audio back to google (not chrome), they have some code in there to gather information.

 I don't have first hand experience on this matter.  I am generalize it base on blogs I read while doing research.  At the end the product is free.  As RAW said they all are spying.
TinyPortal © 2005-2018