Skip to content

Feature to run Python code in the renderer process and call synchronously CEF API such as V8/DOM and others #320

Open

Activity

  1. BrenBarn commented on May 5, 2017

    @BrenBarn

    Would this feature allow manipulation of the DOM directly from Python? Right now the need to constantly shunt everything through JavaScript kind of undercuts the utility of being able to embed the browser. It would be nice to be able to do all the actual DOM manipulation in Python, without having to sully ourselves with JS at all :-).

  2. cztomczak commented on May 5, 2017

    @cztomczak
    OwnerAuthor

    CEF DOM API is very limited, many things are still required to be done using Javascript. CEF DOM API functions can be found in cef_dom.h header file: https://github.com/cztomczak/cefpython/blob/master/src/include/cef_dom.h

    Most of Python code is running in application's main process. The Python code running in the Renderer process can communicate only asynchronously with the Python code in the main process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions