* * *

Author Topic: Develop of TWebBrowser Component  (Read 2899 times)

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Develop of TWebBrowser Component
« 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

Thaddy

  • Hero Member
  • *****
  • Posts: 4651
Re: Develop of TWebBrowser Component
« Reply #1 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.

"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Re: Develop of TWebBrowser Component
« Reply #2 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.




Thaddy

  • Hero Member
  • *****
  • Posts: 4651
Re: Develop of TWebBrowser Component
« Reply #3 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.
« Last Edit: July 05, 2017, 11:16:36 am by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Re: Develop of TWebBrowser Component
« Reply #4 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.

avra

  • Hero Member
  • *****
  • Posts: 1150
    • Additional info
Re: Develop of TWebBrowser Component
« Reply #5 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
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Re: Develop of TWebBrowser Component
« Reply #6 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.

Thaddy

  • Hero Member
  • *****
  • Posts: 4651
Re: Develop of TWebBrowser Component
« Reply #7 on: July 05, 2017, 12:12:58 pm »
OAUTH2 is supported out-of--the-box by Freepascal (3.0.X)
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

Thaddy

  • Hero Member
  • *****
  • Posts: 4651
Re: Develop of TWebBrowser Component
« Reply #8 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.
« Last Edit: July 05, 2017, 12:19:55 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

avra

  • Hero Member
  • *****
  • Posts: 1150
    • Additional info
Re: Develop of TWebBrowser Component
« Reply #9 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
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

avra

  • Hero Member
  • *****
  • Posts: 1150
    • Additional info
Re: Develop of TWebBrowser Component
« Reply #10 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  ;)
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Re: Develop of TWebBrowser Component
« Reply #11 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


what i am seeing in
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.

Thaddy

  • Hero Member
  • *****
  • Posts: 4651
Re: Develop of TWebBrowser Component
« Reply #12 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).
« Last Edit: July 05, 2017, 12:35:36 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

tudi_x

  • Sr. Member
  • ****
  • Posts: 348
Re: Develop of TWebBrowser Component
« Reply #13 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

Leledumbo

  • Hero Member
  • *****
  • Posts: 7722
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Develop of TWebBrowser Component
« Reply #14 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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus