Code Monkey home page Code Monkey logo

Comments (4)

salvadordf avatar salvadordf commented on June 10, 2024 1

I just uploaded a new demo called JSExtensionSubProcess.

It has a JSExtension_sp project that creates the executable for the CEF subprocesses and I moved all the code from GlobalCEFApp.OnWebKitInitialized to that project.

In the case of MacOS, you should move the code in GlobalCEFApp.OnWebKitInitialized to the AppHelper project.

Also try calling Chromium1.ShowDevTools with a nil value for the aDevTools parameter. This will create the devtools in a new window handled by CEF.

from cef4delphi.

salvadordf avatar salvadordf commented on June 10, 2024

Are you using Delphi or Lazarus?

MacOS has several projects and the JS extension runs in the render process. Move the code in GlobalCEFApp.OnWebKitInitialized to the render project.

I would recommend creating a Windows demo with a different executable for the CEF subprocesses. Move the GlobalCEFApp.OnWebKitInitialized code to the subprocess project and check if it works in Windows.

from cef4delphi.

bamsey2k1 avatar bamsey2k1 commented on June 10, 2024

I'm using Lazarus which is installed on Mac. I've modified ExternalPumpBrowser demo to show You how I made it.
ExternalPumpBrowser.zip

In this example You will find both inconveniences I've mentioned above.

from cef4delphi.

bamsey2k1 avatar bamsey2k1 commented on June 10, 2024

So I have moved GlobalCEFApp.OnWebKitInitialized to AppHelper and it worked :)
ShowDevTools with a nil value also worked which is fine, but shame it doesn't work like on Windows.
Nevertheless thank for help in solving my issue :)

from cef4delphi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.